rust-lang-deprecated / error-chain

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

backtrace name collision #270

Open AndyGauge opened 4 years ago

AndyGauge commented 4 years ago

https://travis-ci.com/rust-lang-nursery/error-chain/jobs/240939141#L293

error: a method with this name may be added to the standard library in the future

--> src/lib.rs:657:41

|

657 | if let Some(backtrace) = self.0.backtrace() {

|                                         ^^^^^^^^^

|

= note: `-D unstable-name-collisions` implied by `-D warnings`

= warning: once this method is added to the standard library, the ambiguity may cause an error or change in behavior!

= note: for more information, see issue #48919 <https://github.com/rust-lang/rust/issues/48919>

= help: call with fully qualified syntax `ChainedError::backtrace(...)` to keep using the current method

= help: add `#![feature(backtrace)]` to the crate attributes to enable `std::error::Error::backtrace`
palfrey commented 4 years ago

This should be fixed by https://github.com/rust-lang-nursery/error-chain/pull/279