Skip to content

Commit 5afd05a

Browse files
committed
Test if this pr causes these FN
1 parent 902cef4 commit 5afd05a

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

clippy_lints/src/std_instead_of_core.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,6 @@ impl<'tcx> LateLintPass<'tcx> for StdReexports {
127127
&& !matches!(def_kind, DefKind::Macro(_))
128128
&& let Some(last_segment) = path.segments.last()
129129
{
130-
if let Res::Def(DefKind::Mod, crate_def_id) = first_segment.res
131-
&& let crate_name = cx.tcx.crate_name(crate_def_id.krate)
132-
&& crate_name != first_segment.ident.name
133-
{
134-
return;
135-
}
136-
137130
let (lint, used_mod, replace_with) = match first_segment.ident.name {
138131
sym::std => match cx.tcx.crate_name(def_id.krate) {
139132
sym::core => (STD_INSTEAD_OF_CORE, "std", "core"),

0 commit comments

Comments
 (0)