File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -116,22 +116,14 @@ impl Clean<Option<GenericBound>> for hir::GenericBound<'_> {
116
116
)
117
117
}
118
118
hir::GenericBound::Trait(ref t, modifier) => {
119
- // `T: ~const Drop` is not equivalent to `T: Drop`, and we don't currently document `~const` bounds
120
- // because of its experimental status, so just don't show these.
121
119
// `T: ~const Destruct` is hidden because `T: Destruct` is a no-op.
122
120
if modifier == hir::TraitBoundModifier::MaybeConst
123
- && [cx.tcx.lang_items().drop_trait(), cx.tcx.lang_items().destruct_trait()]
124
- .iter()
125
- .any(|tr| *tr == Some(t.trait_ref.trait_def_id().unwrap()))
121
+ && cx.tcx.lang_items().destruct_trait()
122
+ == Some(t.trait_ref.trait_def_id().unwrap())
126
123
{
127
124
return None;
128
125
}
129
126
130
- #[cfg(bootstrap)]
131
- {
132
- // FIXME: remove `lang_items().drop_trait()` from above logic,
133
- // as well as the comment about `~const Drop` because it was renamed to `Destruct`.
134
- }
135
127
GenericBound::TraitBound(t.clean(cx), modifier)
136
128
}
137
129
})
You can’t perform that action at this time.
0 commit comments