summary refs log tree commit diff
path: root/compiler/rustc_lint/src
diff options
context:
space:
mode:
authortiif <pekyuan@gmail.com>2025-07-14 13:38:19 +0000
committertiif <pekyuan@gmail.com>2025-07-15 13:48:30 +0000
commit7356ff7517f4d95583f8fd6d631441893c87dd3f (patch)
tree113b85abcc797328526ba9a84c1cce7f3158df75 /compiler/rustc_lint/src
parentdd067a689a05e50b80206536de22a2400277a7f8 (diff)
downloadrust-7356ff7517f4d95583f8fd6d631441893c87dd3f.tar.gz
rust-7356ff7517f4d95583f8fd6d631441893c87dd3f.zip
Implement other logics
Diffstat (limited to 'compiler/rustc_lint/src')
-rw-r--r--compiler/rustc_lint/src/builtin.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_lint/src/builtin.rs b/compiler/rustc_lint/src/builtin.rs
index 255ff56f62b..8244f0bed4c 100644
--- a/compiler/rustc_lint/src/builtin.rs
+++ b/compiler/rustc_lint/src/builtin.rs
@@ -1519,8 +1519,9 @@ impl<'tcx> LateLintPass<'tcx> for TrivialConstraints {
                     ClauseKind::TypeOutlives(..) |
                     ClauseKind::RegionOutlives(..) => "lifetime",
 
+                    ClauseKind::UnstableFeature(_)
                     // `ConstArgHasType` is never global as `ct` is always a param
-                    ClauseKind::ConstArgHasType(..)
+                    | ClauseKind::ConstArgHasType(..)
                     // Ignore projections, as they can only be global
                     // if the trait bound is global
                     | ClauseKind::Projection(..)