File tree 2 files changed +6
-1
lines changed
test/rustdoc/const-generics 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -350,12 +350,12 @@ impl<'a> Clean<Option<WherePredicate>> for ty::Predicate<'a> {
350
350
ty:: PredicateKind :: RegionOutlives ( pred) => pred. clean ( cx) ,
351
351
ty:: PredicateKind :: TypeOutlives ( pred) => pred. clean ( cx) ,
352
352
ty:: PredicateKind :: Projection ( pred) => Some ( pred. clean ( cx) ) ,
353
+ ty:: PredicateKind :: ConstEvaluatable ( ..) => None ,
353
354
354
355
ty:: PredicateKind :: Subtype ( ..)
355
356
| ty:: PredicateKind :: WellFormed ( ..)
356
357
| ty:: PredicateKind :: ObjectSafe ( ..)
357
358
| ty:: PredicateKind :: ClosureKind ( ..)
358
- | ty:: PredicateKind :: ConstEvaluatable ( ..)
359
359
| ty:: PredicateKind :: ConstEquate ( ..)
360
360
| ty:: PredicateKind :: TypeWellFormedFromEnv ( ..) => panic ! ( "not user writable" ) ,
361
361
}
Original file line number Diff line number Diff line change
1
+ #![ crate_name = "foo" ]
2
+ #![ feature( const_evaluatable_checked, const_generics) ]
3
+ #![ allow( incomplete_features) ]
4
+ // make sure that `ConstEvaluatable` predicates dont cause rustdoc to ICE #77647
5
+ pub struct Ice < const N : usize > where [ ( ) ; N + 1 ] : ;
You can’t perform that action at this time.
0 commit comments