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.
special_module_name
1 parent f479289 commit 4fdf43fCopy full SHA for 4fdf43f
compiler/rustc_lint/src/builtin.rs
@@ -3299,7 +3299,11 @@ declare_lint_pass!(SpecialModuleName => [SPECIAL_MODULE_NAME]);
3299
impl EarlyLintPass for SpecialModuleName {
3300
fn check_crate(&mut self, cx: &EarlyContext<'_>, krate: &ast::Crate) {
3301
for item in &krate.items {
3302
- if let ast::ItemKind::Mod(..) = item.kind {
+ if let ast::ItemKind::Mod(
3303
+ _,
3304
+ ast::ModKind::Unloaded | ast::ModKind::Loaded(_, ast::Inline::No, _),
3305
+ ) = item.kind
3306
+ {
3307
if item.attrs.iter().any(|a| a.has_name(sym::path)) {
3308
continue;
3309
}
0 commit comments