Implement const effect predicate in new solver
This commit is contained in:
@@ -1554,7 +1554,9 @@ impl<'tcx> LateLintPass<'tcx> for TrivialConstraints {
|
||||
// Ignore bounds that a user can't type
|
||||
| ClauseKind::WellFormed(..)
|
||||
// FIXME(generic_const_exprs): `ConstEvaluatable` can be written
|
||||
| ClauseKind::ConstEvaluatable(..) => continue,
|
||||
| ClauseKind::ConstEvaluatable(..)
|
||||
// Users don't write this directly, only via another trait ref.
|
||||
| ty::ClauseKind::HostEffect(..) => continue,
|
||||
};
|
||||
if predicate.is_global() {
|
||||
cx.emit_span_lint(TRIVIAL_BOUNDS, span, BuiltinTrivialBounds {
|
||||
|
||||
Reference in New Issue
Block a user