Skip to content

Commit 863e96d

Browse files
committed
Auto merge of rust-lang#107507 - BoxyUwU:deferred_projection_equality, r=lcnr
Implement `deferred_projection_equality` for erica solver Somewhat of a revival of rust-lang#96912. When relating projections now emit an `AliasEq` obligation instead of attempting to determine equality of projections that may not be as normalized as possible (i.e. because of lazy norm, or just containing inference variables that prevent us from resolving an impl). Only do this when the new solver is enabled
2 parents e7fe1f9 + cd3bcbb commit 863e96d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clippy_utils/src/qualify_min_const_fn.rs

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ pub fn is_min_const_fn<'tcx>(tcx: TyCtxt<'tcx>, body: &Body<'tcx>, msrv: &Msrv)
3636
| ty::PredicateKind::ConstEvaluatable(..)
3737
| ty::PredicateKind::ConstEquate(..)
3838
| ty::PredicateKind::TypeWellFormedFromEnv(..) => continue,
39+
ty::PredicateKind::AliasEq(..) => panic!("alias eq predicate on function: {predicate:#?}"),
3940
ty::PredicateKind::ObjectSafe(_) => panic!("object safe predicate on function: {predicate:#?}"),
4041
ty::PredicateKind::ClosureKind(..) => panic!("closure kind predicate on function: {predicate:#?}"),
4142
ty::PredicateKind::Subtype(_) => panic!("subtype predicate on function: {predicate:#?}"),

0 commit comments

Comments
 (0)