Closed palfrey closed 5 years ago
Is there a way to use #[allow(deprecated)]
to silence this warning?
@daaku Add an exclamation mark. #![allow(deprecated)]
worked for me.
Adding it on the mod
declaration worked, like such:
#[allow(deprecated)]
mod errors {
This error occurs in stable 1.33, so I imagine a lot more people will experience it.
Adding it on the
mod
declaration worked, like such:#[allow(deprecated)] mod errors {
~You can make it even tighter and put it just on the error_chain
macro:~
#[allow(deprecated)] // WORKAROUND https://github.com/rust-lang-nursery/error-chain/issues/254
error_chain! {
(edit: nevermind I did something wrong and I see now that that doesn't silence the warnings.)
None of these worked for me. I just hope that error-chain will be updated so that the warning isn't needed.
@mark-summerfield #255 should fix all this once merged, but we're having issues finding a maintainer to look at it
Expanding it out with
RUSTFLAGS="-Z external-macro-backtrace"
got me