We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
cfg
1 parent 8787a12 commit b08043eCopy full SHA for b08043e
src/librustc_passes/ast_validation.rs
@@ -19,6 +19,7 @@
19
use rustc::lint;
20
use rustc::session::Session;
21
use syntax::ast::*;
22
+use syntax::attr;
23
use syntax::parse::token::{self, keywords};
24
use syntax::visit::{self, Visitor};
25
use syntax_pos::Span;
@@ -168,6 +169,10 @@ impl<'a> Visitor for AstValidator<'a> {
168
169
}
170
171
172
+ ItemKind::Mod(_) => {
173
+ // Ensure that `path` attributes on modules are recorded as used (c.f. #35584).
174
+ attr::first_attr_value_str_by_name(&item.attrs, "path");
175
+ }
176
_ => {}
177
178
0 commit comments