X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=compiler%2Frustc_lint%2Fsrc%2Fbuiltin.rs;h=734b32bb92f1e88d4233b44de19690cc1769bbc1;hb=2fe9f763d08cf493896262da0533fd1a3c8ae3dd;hp=9b24f43f7fd32863ee49eb55202815df76ff6d26;hpb=4484165cbd729907e5ee3a4b09d3012e1908f25c;p=rust.git diff --git a/compiler/rustc_lint/src/builtin.rs b/compiler/rustc_lint/src/builtin.rs index 9b24f43f7fd..734b32bb92f 100644 --- a/compiler/rustc_lint/src/builtin.rs +++ b/compiler/rustc_lint/src/builtin.rs @@ -2833,7 +2833,7 @@ fn structurally_same_type_impl<'tcx>( return true; } let tcx = cx.tcx; - if a == b || rustc_middle::ty::TyS::same_type(a, b) { + if a == b { // All nominally-same types are structurally same, too. true } else {