File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -838,7 +838,7 @@ impl Clean<Option<Lifetime>> for ty::Region {
838
838
pub enum WherePredicate {
839
839
BoundPredicate { ty : Type , bounds : Vec < TyParamBound > } ,
840
840
RegionPredicate { lifetime : Lifetime , bounds : Vec < Lifetime > } ,
841
- EqPredicate { lhs : Type , rhs : Type }
841
+ EqPredicate { lhs : Type , rhs : Type } ,
842
842
}
843
843
844
844
impl Clean < WherePredicate > for hir:: WherePredicate {
@@ -906,12 +906,9 @@ impl<'tcx> Clean<WherePredicate> for ty::EquatePredicate<'tcx> {
906
906
}
907
907
908
908
impl < ' tcx > Clean < WherePredicate > for ty:: SubtypePredicate < ' tcx > {
909
- fn clean ( & self , cx : & DocContext ) -> WherePredicate {
910
- let ty:: SubtypePredicate { a_is_expected : _, a, b } = * self ;
911
- WherePredicate :: EqPredicate { // TODO This is obviously wrong :P
912
- lhs : a. clean ( cx) ,
913
- rhs : b. clean ( cx)
914
- }
909
+ fn clean ( & self , _cx : & DocContext ) -> WherePredicate {
910
+ panic ! ( "subtype predicates are an internal rustc artifact \
911
+ and should not be seen by rustdoc")
915
912
}
916
913
}
917
914
You can’t perform that action at this time.
0 commit comments