Skip to content

Commit

Permalink
remove seemingly unnecessary call to encode_predicates
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis committed Aug 17, 2016
1 parent 6b33f47 commit 37d974f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/librustc_metadata/encoder.rs
Expand Up @@ -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 {
Expand Down

0 comments on commit 37d974f

Please sign in to comment.