diff options
| author | tiif <pekyuan@gmail.com> | 2025-07-14 13:38:19 +0000 |
|---|---|---|
| committer | tiif <pekyuan@gmail.com> | 2025-07-15 13:48:30 +0000 |
| commit | 7356ff7517f4d95583f8fd6d631441893c87dd3f (patch) | |
| tree | 113b85abcc797328526ba9a84c1cce7f3158df75 /compiler/rustc_lint/src | |
| parent | dd067a689a05e50b80206536de22a2400277a7f8 (diff) | |
| download | rust-7356ff7517f4d95583f8fd6d631441893c87dd3f.tar.gz rust-7356ff7517f4d95583f8fd6d631441893c87dd3f.zip | |
Implement other logics
Diffstat (limited to 'compiler/rustc_lint/src')
| -rw-r--r-- | compiler/rustc_lint/src/builtin.rs | 3 |
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(..) |
