Skip to content

Commit

Permalink
Removed redundant generics visits
Browse files Browse the repository at this point in the history
  • Loading branch information
sunjay committed Sep 25, 2017
1 parent a9924c6 commit ea6b18e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/librustc_resolve/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1844,7 +1844,6 @@ impl<'a> Resolver<'a> {

for trait_item in trait_items {
this.check_proc_macro_attrs(&trait_item.attrs);
this.visit_generics(&trait_item.generics);

match trait_item.node {
TraitItemKind::Const(ref ty, ref default) => {
Expand Down Expand Up @@ -2056,7 +2055,6 @@ impl<'a> Resolver<'a> {
this.with_current_self_type(self_type, |this| {
for impl_item in impl_items {
this.check_proc_macro_attrs(&impl_item.attrs);
this.visit_generics(&impl_item.generics);
this.resolve_visibility(&impl_item.vis);
match impl_item.node {
ImplItemKind::Const(..) => {
Expand Down

0 comments on commit ea6b18e

Please sign in to comment.