Don't report deprecation lints in derive expansions

This commit is contained in:
Oliver Scherer 2019-03-16 22:33:15 +01:00
parent 2c8bbf50db
commit a69e12c21b
4 changed files with 38 additions and 2 deletions

View file

@ -0,0 +1,9 @@
// compile-pass
#![deny(deprecated)]
#[deprecated = "oh no"]
#[derive(Default)]
struct X;
fn main() {}

View file

@ -0,0 +1,9 @@
// compile-pass
#![forbid(deprecated)]
#[deprecated = "oh no"]
#[derive(Default)]
struct X;
fn main() {}