You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: `#[derive]` for custom traits is not stable enough for use. It is deprecated and will be removed in v1.15 (see issue #29644)
--> src\main.rs:4:17
|
4 | #[derive(Debug, error_chain)]
| ^^^^^^^^^^^
|
= help: add #![feature(custom_derive)] to the crate attributes to enable
error: aborting due to previous error
derive-error-chain exports a proc macro named error_chain. error-chain exports a regular macro named error_chain.
Everything's fine if the order of the extern crate statements is reversed, or error-chain's import does not have #[macro_use].
The text was updated successfully, but these errors were encountered:
Unfortunately macro_rules, proc-macro derives, and future proc-macros share the same namespace. So I don't think there is a way to fix this besides renaming one of the macros.
…eyfried
Expand derive macros in the MacroExpander
This removes the expand_derives function, and sprinkles the functionality throughout the Invocation Collector, Expander and Resolver.
Fixesrust-lang#39326
r? @jseyfried
rustc 1.16.0-nightly (7821a9b 2017-01-23)
main.rs
Cargo.toml
cargo build
gives:derive-error-chain
exports a proc macro namederror_chain
.error-chain
exports a regular macro namederror_chain
.Everything's fine if the order of the
extern crate
statements is reversed, orerror-chain
's import does not have#[macro_use]
.The text was updated successfully, but these errors were encountered: