Remove generic-impl rendering filter

This commit is contained in:
Guillaume Gomez 2018-07-24 00:23:03 +02:00
parent 6eb0b05017
commit ef7d6fcbd1

View File

@ -139,7 +139,6 @@ impl<'a, 'tcx, 'rcx> AutoTraitFinder<'a, 'tcx, 'rcx> {
let mut traits = Vec::new();
if self.cx.crate_name != Some("core".to_string()) &&
self.cx.access_levels.borrow().is_doc_reachable(def_id) {
if let ty::TyAdt(_adt, _) = ty.sty {
let real_name = name.clone().map(|name| Ident::from_str(&name));
let param_env = self.cx.tcx.param_env(def_id);
for &trait_def_id in self.cx.all_traits.iter() {
@ -228,7 +227,6 @@ impl<'a, 'tcx, 'rcx> AutoTraitFinder<'a, 'tcx, 'rcx> {
});
}
}
}
debug!(
"get_auto_trait_impls(def_id={:?}, def_ctor=..., generics={:?}",