diff options
| author | Michael Goulet <michael@errs.io> | 2024-06-16 21:35:16 -0400 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-06-16 21:35:21 -0400 |
| commit | 342c1b03d6d0f9aa1e8119a2556d819af024faaf (patch) | |
| tree | 6e2b506491d9600f743918a7cec85bfe2757b12b /compiler/rustc_middle/src/query/keys.rs | |
| parent | 55cac26a9ef17da1c9c77c0816e88e178b7cc5dd (diff) | |
| download | rust-342c1b03d6d0f9aa1e8119a2556d819af024faaf.tar.gz rust-342c1b03d6d0f9aa1e8119a2556d819af024faaf.zip | |
Rename InstanceDef -> InstanceKind
Diffstat (limited to 'compiler/rustc_middle/src/query/keys.rs')
| -rw-r--r-- | compiler/rustc_middle/src/query/keys.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_middle/src/query/keys.rs b/compiler/rustc_middle/src/query/keys.rs index 5452e1dff3e..add88491f84 100644 --- a/compiler/rustc_middle/src/query/keys.rs +++ b/compiler/rustc_middle/src/query/keys.rs @@ -62,7 +62,7 @@ impl Key for () { } } -impl<'tcx> Key for ty::InstanceDef<'tcx> { +impl<'tcx> Key for ty::InstanceKind<'tcx> { type Cache<V> = DefaultCache<Self, V>; fn default_span(&self, tcx: TyCtxt<'_>) -> Span { @@ -70,7 +70,7 @@ impl<'tcx> Key for ty::InstanceDef<'tcx> { } } -impl<'tcx> AsLocalKey for ty::InstanceDef<'tcx> { +impl<'tcx> AsLocalKey for ty::InstanceKind<'tcx> { type LocalKey = Self; #[inline(always)] |
