Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 6987217

Browse files
committed
Lazily resolve type-alias-impl-trait defining uses
by using an opaque type obligation to bubble up comparisons between opaque types and other types Also uses proper obligation causes so that the body id works, because out of some reason nll uses body ids for logic instead of just diagnostics.
1 parent c7b7b53 commit 6987217

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clippy_utils/src/qualify_min_const_fn.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ pub fn is_min_const_fn<'a, 'tcx>(tcx: TyCtxt<'tcx>, body: &'a Body<'tcx>, msrv:
3232
| ty::PredicateKind::Projection(_)
3333
| ty::PredicateKind::ConstEvaluatable(..)
3434
| ty::PredicateKind::ConstEquate(..)
35+
| ty::PredicateKind::OpaqueType(..)
3536
| ty::PredicateKind::TypeWellFormedFromEnv(..) => continue,
3637
ty::PredicateKind::ObjectSafe(_) => panic!("object safe predicate on function: {:#?}", predicate),
3738
ty::PredicateKind::ClosureKind(..) => panic!("closure kind predicate on function: {:#?}", predicate),

0 commit comments

Comments
 (0)