diff options
| author | Michael Goulet <michael@errs.io> | 2025-03-26 00:15:24 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2025-03-26 00:15:34 +0000 |
| commit | 4b22ac5296a7a40aebfc997eec122fbfe50164da (patch) | |
| tree | 8c9acb3026a002ce562b918cdc5b381bb9904d9d /compiler/rustc_middle/src/ty | |
| parent | 48994b1674b3212d27b5e83841c0966bc2b4be43 (diff) | |
| download | rust-4b22ac5296a7a40aebfc997eec122fbfe50164da.tar.gz rust-4b22ac5296a7a40aebfc997eec122fbfe50164da.zip | |
Ensure define_opaque is accounted for in HIR hash
Diffstat (limited to 'compiler/rustc_middle/src/ty')
| -rw-r--r-- | compiler/rustc_middle/src/ty/context.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/ty/context.rs b/compiler/rustc_middle/src/ty/context.rs index f54dd2b0040..834d1f2a4a8 100644 --- a/compiler/rustc_middle/src/ty/context.rs +++ b/compiler/rustc_middle/src/ty/context.rs @@ -1288,7 +1288,8 @@ impl<'tcx> TyCtxtFeed<'tcx, LocalDefId> { let bodies = Default::default(); let attrs = hir::AttributeMap::EMPTY; - let (opt_hash_including_bodies, _) = self.tcx.hash_owner_nodes(node, &bodies, &attrs.map); + let (opt_hash_including_bodies, _) = + self.tcx.hash_owner_nodes(node, &bodies, &attrs.map, attrs.define_opaque); let node = node.into(); self.opt_hir_owner_nodes(Some(self.tcx.arena.alloc(hir::OwnerNodes { opt_hash_including_bodies, |
