Skip to content

Commit cd3bcbb

Browse files
committed
add AliasEq to PredicateKind
1 parent 821199c commit cd3bcbb

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)