]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_type_ir/src/sty.rs
Rollup merge of #103122 - ouz-a:mir-technical-debt, r=oli-obk
[rust.git] / compiler / rustc_type_ir / src / sty.rs
index 6d54924e515fca03c725680bf81b3aecda1a0682..a4fb1480fa4487c06cd51cd6c40d59fe3a3c2e16 100644 (file)
@@ -1332,8 +1332,8 @@ fn hash_stable(
             RePlaceholder(p) => {
                 p.hash_stable(hcx, hasher);
             }
-            ReVar(reg) => {
-                reg.hash_stable(hcx, hasher);
+            ReVar(_) => {
+                panic!("region variables should not be hashed: {self:?}")
             }
         }
     }