This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
test/rustdoc/const-generics Expand file tree Collapse file tree 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> {
350350 ty:: PredicateKind :: RegionOutlives ( pred) => pred. clean ( cx) ,
351351 ty:: PredicateKind :: TypeOutlives ( pred) => pred. clean ( cx) ,
352352 ty:: PredicateKind :: Projection ( pred) => Some ( pred. clean ( cx) ) ,
353+ ty:: PredicateKind :: ConstEvaluatable ( ..) => None ,
353354
354355 ty:: PredicateKind :: Subtype ( ..)
355356 | ty:: PredicateKind :: WellFormed ( ..)
356357 | ty:: PredicateKind :: ObjectSafe ( ..)
357358 | ty:: PredicateKind :: ClosureKind ( ..)
358- | ty:: PredicateKind :: ConstEvaluatable ( ..)
359359 | ty:: PredicateKind :: ConstEquate ( ..)
360360 | ty:: PredicateKind :: TypeWellFormedFromEnv ( ..) => panic ! ( "not user writable" ) ,
361361 }
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