]> git.proxmox.com Git - rustc.git/blobdiff - compiler/rustc_middle/src/ich/impls_syntax.rs
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / compiler / rustc_middle / src / ich / impls_syntax.rs
index bfbe15749ee1c8ca2f42e272a74fb707ef8a9fb2..31374429940cafaf14beae40478d35f7a96bf49e 100644 (file)
@@ -45,7 +45,11 @@ impl<'ctx> rustc_ast::HashStableContext for StableHashingContext<'ctx> {
             item.hash_stable(self, hasher);
             style.hash_stable(self, hasher);
             span.hash_stable(self, hasher);
-            tokens.as_ref().expect_none("Tokens should have been removed during lowering!");
+            assert_matches!(
+                tokens.as_ref(),
+                None,
+                "Tokens should have been removed during lowering!"
+            );
         } else {
             unreachable!();
         }