diff options
| author | Cameron Steffen <cam.steffen94@gmail.com> | 2025-08-13 14:14:37 -0500 |
|---|---|---|
| committer | Cameron Steffen <cam.steffen94@gmail.com> | 2025-09-12 15:10:30 -0500 |
| commit | 5590e55b03722fb7da2d965478deb4b5d62bf97a (patch) | |
| tree | 689804c6035a4f3b696e97b417ac3e30bc572737 /compiler/rustc_middle/src/ty/mod.rs | |
| parent | 16c218c57ff83c82ba58753c3a67f697e260adc1 (diff) | |
| download | rust-5590e55b03722fb7da2d965478deb4b5d62bf97a.tar.gz rust-5590e55b03722fb7da2d965478deb4b5d62bf97a.zip | |
Rename AssocItemContainer -> AssocContainer
Diffstat (limited to 'compiler/rustc_middle/src/ty/mod.rs')
| -rw-r--r-- | compiler/rustc_middle/src/ty/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_middle/src/ty/mod.rs b/compiler/rustc_middle/src/ty/mod.rs index 5a4ebfe28a4..a34bf9b5297 100644 --- a/compiler/rustc_middle/src/ty/mod.rs +++ b/compiler/rustc_middle/src/ty/mod.rs @@ -1937,7 +1937,7 @@ impl<'tcx> TyCtxt<'tcx> { /// Returns the trait item that is implemented by the given item `DefId`. pub fn trait_item_of(self, def_id: impl IntoQueryParam<DefId>) -> Option<DefId> { let assoc = self.opt_associated_item(def_id.into_query_param())?; - if assoc.container != AssocItemContainer::Impl { + if assoc.container != AssocContainer::Impl { return None; } assoc.trait_item_def_id @@ -2158,7 +2158,7 @@ impl<'tcx> TyCtxt<'tcx> { let Some(item) = self.opt_associated_item(def_id) else { return false; }; - if item.container != ty::AssocItemContainer::Impl { + if item.container != ty::AssocContainer::Impl { return false; } |
