Skip to content

Commit 5fec618

Browse files
nikomatsakisMark-Simulacrum
authored andcommitted
introduce a Coerce predicate
1 parent 4123fed commit 5fec618

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clippy_utils/src/qualify_min_const_fn.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ pub fn is_min_const_fn(tcx: TyCtxt<'tcx>, body: &'a Body<'tcx>, msrv: Option<&Ru
3636
ty::PredicateKind::ObjectSafe(_) => panic!("object safe predicate on function: {:#?}", predicate),
3737
ty::PredicateKind::ClosureKind(..) => panic!("closure kind predicate on function: {:#?}", predicate),
3838
ty::PredicateKind::Subtype(_) => panic!("subtype predicate on function: {:#?}", predicate),
39+
ty::PredicateKind::Coerce(_) => {
40+
panic!("coerce predicate on function: {:#?}", predicate)
41+
},
3942
ty::PredicateKind::Trait(pred) => {
4043
if Some(pred.def_id()) == tcx.lang_items().sized_trait() {
4144
continue;

0 commit comments

Comments
 (0)