File tree 1 file changed +1
-7
lines changed
src/librustc_mir/transform
1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ pub fn is_min_const_fn(
21
21
| Predicate :: RegionOutlives ( _)
22
22
| Predicate :: TypeOutlives ( _)
23
23
| Predicate :: WellFormed ( _)
24
+ | Predicate :: Projection ( _)
24
25
| Predicate :: ConstEvaluatable ( ..) => continue ,
25
26
| Predicate :: ObjectSafe ( _) => {
26
27
bug ! ( "object safe predicate on function: {:#?}" , predicate)
@@ -29,13 +30,6 @@ pub fn is_min_const_fn(
29
30
bug ! ( "closure kind predicate on function: {:#?}" , predicate)
30
31
}
31
32
Predicate :: Subtype ( _) => bug ! ( "subtype predicate on function: {:#?}" , predicate) ,
32
- Predicate :: Projection ( _) => {
33
- let span = tcx. def_span ( current) ;
34
- // we'll hit a `Predicate::Trait` later which will report an error
35
- tcx. sess
36
- . delay_span_bug ( span, "projection without trait bound" ) ;
37
- continue ;
38
- }
39
33
Predicate :: Trait ( pred) => {
40
34
if Some ( pred. def_id ( ) ) == tcx. lang_items ( ) . sized_trait ( ) {
41
35
continue ;
You can’t perform that action at this time.
0 commit comments