File tree 2 files changed +24
-0
lines changed
tests/ui/lint/keyword-idents
2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change
1
+ // Submodule file used by test `../multi-file.rs`.
2
+
3
+ // Keywords reserved from Rust 2018:
4
+ fn async ( ) { }
5
+ fn await ( ) { }
6
+ fn try ( ) { }
7
+ fn dyn ( ) { }
8
+
9
+ // Keywords reserved from Rust 2024:
10
+ fn gen ( ) { }
Original file line number Diff line number Diff line change
1
+ #![ deny( keyword_idents) ] // Should affect the submodule, but doesn't.
2
+ //@ edition: 2015
3
+ //@ known-bug: #132218
4
+ //@ check-pass (known bug; should be check-fail)
5
+
6
+ // Because `keyword_idents_2018` and `keyword_idents_2024` are pre-expansion
7
+ // lints, configuring them via lint attributes doesn't propagate to submodules
8
+ // in other files.
9
+ // <https://github.com/rust-lang/rust/issues/132218>
10
+
11
+ #[ path = "./auxiliary/multi_file_submod.rs" ]
12
+ mod multi_file_submod;
13
+
14
+ fn main ( ) { }
You can’t perform that action at this time.
0 commit comments