about summary refs log tree commit diff
path: root/compiler/rustc_lint/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2025-07-17 15:54:33 +0000
committerbors <bors@rust-lang.org>2025-07-17 15:54:33 +0000
commit9cd918bcbbc26deb005eb4e1bd9a445380195e56 (patch)
tree6465cc8c8b8760820ca29717e9fa4d981e5de8ce /compiler/rustc_lint/src
parentbf5e6cc7a7a7eb03e3ed9b875d76530eddd47d5f (diff)
parent69326878eeabb713e2d4a85215b87f18e498313c (diff)
downloadrust-9cd918bcbbc26deb005eb4e1bd9a445380195e56.tar.gz
rust-9cd918bcbbc26deb005eb4e1bd9a445380195e56.zip
Auto merge of #143879 - fee1-dead-contrib:push-lrlpoouyqqry, r=fmease
parse `const trait Trait`

r? oli-obk or anyone from project-const-traits

cc `@rust-lang/project-const-traits`
Diffstat (limited to 'compiler/rustc_lint/src')
-rw-r--r--compiler/rustc_lint/src/multiple_supertrait_upcastable.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_lint/src/multiple_supertrait_upcastable.rs b/compiler/rustc_lint/src/multiple_supertrait_upcastable.rs
index 3cc55eaa0f2..5513c703f1d 100644
--- a/compiler/rustc_lint/src/multiple_supertrait_upcastable.rs
+++ b/compiler/rustc_lint/src/multiple_supertrait_upcastable.rs
@@ -39,7 +39,7 @@ impl<'tcx> LateLintPass<'tcx> for MultipleSupertraitUpcastable {
         let def_id = item.owner_id.to_def_id();
         // NOTE(nbdd0121): use `dyn_compatibility_violations` instead of `is_dyn_compatible` because
         // the latter will report `where_clause_object_safety` lint.
-        if let hir::ItemKind::Trait(_, _, ident, ..) = item.kind
+        if let hir::ItemKind::Trait(_, _, _, ident, ..) = item.kind
             && cx.tcx.is_dyn_compatible(def_id)
         {
             let direct_super_traits_iter = cx