rust-lang-deprecated / error-chain

Error boilerplate for Rust
Apache License 2.0
728 stars 111 forks source link

Rust 2018 macro export pain #288

Closed AndyGauge closed 4 years ago

AndyGauge commented 4 years ago

We need to add #[macro_export(local_inner_macros)] so in Rust 2018, this syntax works:

use error_chain::error_chain;

see https://github.com/rust-lang/rust/issues/57013

AndyGauge commented 4 years ago

https://github.com/rust-lang-nursery/rust-cookbook/pull/565

AndyGauge commented 4 years ago

This appears to have been resolved in https://github.com/rust-lang-nursery/error-chain/commit/e6d0b2c017e70ae92d52ef833b336705917c0ae3

AndyGauge commented 4 years ago

I was seeing 2018 edition problems in a v 0.11 use case. Upgrading to 0.12 resolved this problem.