about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/nonstandard_style.rs
diff options
context:
space:
mode:
authorCameron Steffen <cam.steffen94@gmail.com>2025-08-13 14:14:37 -0500
committerCameron Steffen <cam.steffen94@gmail.com>2025-09-12 15:10:30 -0500
commit5590e55b03722fb7da2d965478deb4b5d62bf97a (patch)
tree689804c6035a4f3b696e97b417ac3e30bc572737 /compiler/rustc_lint/src/nonstandard_style.rs
parent16c218c57ff83c82ba58753c3a67f697e260adc1 (diff)
downloadrust-5590e55b03722fb7da2d965478deb4b5d62bf97a.tar.gz
rust-5590e55b03722fb7da2d965478deb4b5d62bf97a.zip
Rename AssocItemContainer -> AssocContainer
Diffstat (limited to 'compiler/rustc_lint/src/nonstandard_style.rs')
-rw-r--r--compiler/rustc_lint/src/nonstandard_style.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_lint/src/nonstandard_style.rs b/compiler/rustc_lint/src/nonstandard_style.rs
index 65075cfecfa..7b8f17ef93c 100644
--- a/compiler/rustc_lint/src/nonstandard_style.rs
+++ b/compiler/rustc_lint/src/nonstandard_style.rs
@@ -30,8 +30,8 @@ pub(crate) enum MethodLateContext {
 pub(crate) fn method_context(cx: &LateContext<'_>, id: LocalDefId) -> MethodLateContext {
     let item = cx.tcx.associated_item(id);
     match item.container {
-        ty::AssocItemContainer::Trait => MethodLateContext::TraitAutoImpl,
-        ty::AssocItemContainer::Impl => match cx.tcx.impl_trait_ref(item.container_id(cx.tcx)) {
+        ty::AssocContainer::Trait => MethodLateContext::TraitAutoImpl,
+        ty::AssocContainer::Impl => match cx.tcx.impl_trait_ref(item.container_id(cx.tcx)) {
             Some(_) => MethodLateContext::TraitImpl,
             None => MethodLateContext::PlainImpl,
         },