Skip to content

Commit dd5afb9

Browse files
committed
add macro_ns to use checking
1 parent 98a8263 commit dd5afb9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

clippy_lints/src/disallowed_modules.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ impl<'tcx> LateLintPass<'tcx> for DisallowedModules {
135135
match item.kind {
136136
ItemKind::Use(path, UseKind::Single(_) | UseKind::Glob)
137137
if self.check_path_segments(cx, path.segments.iter(), path.span).is_some()
138-
&& let Some(res) = path.res.type_ns =>
138+
&& let Some(res) = path.res.type_ns.or(path.res.macro_ns) =>
139139
{
140140
self.check_res_emit(cx, &res, path.span);
141141
},

0 commit comments

Comments
 (0)