Add Clause::ConstArgHasType
variant
This commit is contained in:
parent
9556b56dbd
commit
e919d7e348
24 changed files with 68 additions and 6 deletions
|
@ -1595,6 +1595,8 @@ impl<'tcx> LateLintPass<'tcx> for TrivialConstraints {
|
|||
Clause(Clause::TypeOutlives(..)) |
|
||||
Clause(Clause::RegionOutlives(..)) => "lifetime",
|
||||
|
||||
// `ConstArgHasType` is never global as `ct` is always a param
|
||||
Clause(Clause::ConstArgHasType(..)) |
|
||||
// Ignore projections, as they can only be global
|
||||
// if the trait bound is global
|
||||
Clause(Clause::Projection(..)) |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue