diff --git a/src/librustc_metadata/encoder.rs b/src/librustc_metadata/encoder.rs index 791d090273f..420dfbc58bf 100644 --- a/src/librustc_metadata/encoder.rs +++ b/src/librustc_metadata/encoder.rs @@ -767,10 +767,6 @@ impl<'a, 'tcx, 'encoder> ItemContentBuilder<'a, 'tcx, 'encoder> { if let Some(ii) = impl_item_opt { encode_attributes(self.rbml_w, &ii.attrs); encode_defaultness(self.rbml_w, ii.defaultness); - } else { - // TODO this looks bogus and unnecessary - self.encode_predicates(&ecx.tcx.lookup_predicates(associated_type.def_id), - tag_item_generics); } if let Some(ty) = associated_type.ty {