Skip to content

Commit 37d974f

Browse files
committed
remove seemingly unnecessary call to encode_predicates
1 parent 6b33f47 commit 37d974f

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/librustc_metadata/encoder.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -767,10 +767,6 @@ impl<'a, 'tcx, 'encoder> ItemContentBuilder<'a, 'tcx, 'encoder> {
767767
if let Some(ii) = impl_item_opt {
768768
encode_attributes(self.rbml_w, &ii.attrs);
769769
encode_defaultness(self.rbml_w, ii.defaultness);
770-
} else {
771-
// TODO this looks bogus and unnecessary
772-
self.encode_predicates(&ecx.tcx.lookup_predicates(associated_type.def_id),
773-
tag_item_generics);
774770
}
775771

776772
if let Some(ty) = associated_type.ty {

0 commit comments

Comments
 (0)