]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_lint/src/builtin.rs
Rollup merge of #92802 - compiler-errors:deduplicate-stack-trace, r=oli-obk
[rust.git] / compiler / rustc_lint / src / builtin.rs
index 9b24f43f7fd32863ee49eb55202815df76ff6d26..734b32bb92f1e88d4233b44de19690cc1769bbc1 100644 (file)
@@ -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 {