Don't trigger missing_const_for_fn in external macros

As reported in #3841. Only fixes the part where it triggers on the
`derive`.
This commit is contained in:
Philipp Hansch 2019-03-04 22:56:33 +01:00 committed by Manish Goregaokar
parent 2b189d2d11
commit e29559fdfd
2 changed files with 6 additions and 2 deletions

View file

@ -55,3 +55,7 @@ trait Foo {
33
}
}
// Don't lint in external macros (derive)
#[derive(PartialEq, Eq)]
struct Point(isize, isize);