Skip to content

Commit 91d2ce3

Browse files
authored
Rollup merge of rust-lang#103488 - oli-obk:impl_trait_for_tait, r=lcnr
Allow opaque types in trait impl headers and rely on coherence to reject unsound cases r? ````@lcnr```` fixes rust-lang#99840
2 parents b33afd6 + 386d0a5 commit 91d2ce3

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
@@ -37,6 +37,7 @@ pub fn is_min_const_fn<'tcx>(tcx: TyCtxt<'tcx>, body: &Body<'tcx>, msrv: Option<
3737
ty::PredicateKind::ClosureKind(..) => panic!("closure kind predicate on function: {predicate:#?}"),
3838
ty::PredicateKind::Subtype(_) => panic!("subtype predicate on function: {predicate:#?}"),
3939
ty::PredicateKind::Coerce(_) => panic!("coerce predicate on function: {predicate:#?}"),
40+
ty::PredicateKind::Ambiguous => panic!("ambiguous predicate on function: {predicate:#?}"),
4041
}
4142
}
4243
match predicates.parent {

0 commit comments

Comments
 (0)