File tree 2 files changed +5
-1
lines changed
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(
36
36
}
37
37
let Some ( ident) = attr. ident ( ) else { return } ;
38
38
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 {
40
40
// FIXME: Would be nice to handle `cfg_attr` as well. Only problem is to check that cfg
41
41
// conditions are the same.
42
42
// `#[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 {}
27
27
#[ proc_macro_attr:: duplicated_attr( ) ] // Should not warn!
28
28
fn babar ( ) { }
29
29
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
+
30
34
fn main ( ) { }
You can’t perform that action at this time.
0 commit comments