We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac655d2 commit 32446f8Copy full SHA for 32446f8
src/librustdoc/clean/mod.rs
@@ -2770,6 +2770,14 @@ impl<'tcx> Clean<Type> for Ty<'tcx> {
2770
return None;
2771
};
2772
2773
+ if let Some(sized) = cx.tcx.lang_items().sized_trait() {
2774
+ if trait_ref.def_id() == sized {
2775
+ return None;
2776
+ }
2777
2778
+
2779
+ // FIXME(Manishearth) handle cases which aren't Sized
2780
2781
let bounds = bounds.predicates.iter().filter_map(|pred|
2782
if let ty::Predicate::Projection(proj) = *pred {
2783
let proj = proj.skip_binder();
0 commit comments