about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/nonstandard_style.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-11-03 21:47:56 +0000
committerMichael Goulet <michael@errs.io>2024-11-04 04:45:52 +0000
commitbe4b0261c2d1beb2676bab585556b8893d1cee1a (patch)
tree412544ad28a0e8efe90d8af3ca01be24053ebe25 /compiler/rustc_lint/src/nonstandard_style.rs
parent8e6af16192b754f86defbad2bdb76940cb15c901 (diff)
downloadrust-be4b0261c2d1beb2676bab585556b8893d1cee1a.tar.gz
rust-be4b0261c2d1beb2676bab585556b8893d1cee1a.zip
ty::KContainer -> ty::AssocItemContainer::K
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 c5f0b94327f..4d8ebf2909e 100644
--- a/compiler/rustc_lint/src/nonstandard_style.rs
+++ b/compiler/rustc_lint/src/nonstandard_style.rs
@@ -26,8 +26,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::TraitContainer => MethodLateContext::TraitAutoImpl,
-        ty::ImplContainer => match cx.tcx.impl_trait_ref(item.container_id(cx.tcx)) {
+        ty::AssocItemContainer::Trait => MethodLateContext::TraitAutoImpl,
+        ty::AssocItemContainer::Impl => match cx.tcx.impl_trait_ref(item.container_id(cx.tcx)) {
             Some(_) => MethodLateContext::TraitImpl,
             None => MethodLateContext::PlainImpl,
         },