File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ fn check_duplicated_attr(
3636 }
3737 let Some ( ident) = attr. ident ( ) else { return } ;
3838 let name = ident. name ;
39- if name == sym:: doc || name == sym:: cfg_attr || name == sym:: rustc_on_unimplemented {
39+ if name == sym:: doc || name == sym:: cfg_attr || name == sym:: rustc_on_unimplemented || name == sym :: reason {
4040 // FIXME: Would be nice to handle `cfg_attr` as well. Only problem is to check that cfg
4141 // conditions are the same.
4242 // `#[rustc_on_unimplemented]` contains duplicated subattributes, that's expected.
Original file line number Diff line number Diff line change @@ -27,4 +27,8 @@ trait Abc {}
2727#[ proc_macro_attr:: duplicated_attr( ) ] // Should not warn!
2828fn babar ( ) { }
2929
30+ #[ allow( missing_docs, reason = "library for internal use only" ) ]
31+ #[ allow( exported_private_dependencies, reason = "library for internal use only" ) ]
32+ fn duplicate_reason ( ) { }
33+
3034fn main ( ) { }
You can’t perform that action at this time.
0 commit comments