Skip to content

Commit 892e468

Browse files
committed
Removed redundant generics visits
1 parent e03447d commit 892e468

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/librustc_resolve/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1863,7 +1863,6 @@ impl<'a> Resolver<'a> {
18631863

18641864
for trait_item in trait_items {
18651865
this.check_proc_macro_attrs(&trait_item.attrs);
1866-
this.visit_generics(&trait_item.generics);
18671866

18681867
match trait_item.node {
18691868
TraitItemKind::Const(ref ty, ref default) => {
@@ -2075,7 +2074,6 @@ impl<'a> Resolver<'a> {
20752074
this.with_current_self_type(self_type, |this| {
20762075
for impl_item in impl_items {
20772076
this.check_proc_macro_attrs(&impl_item.attrs);
2078-
this.visit_generics(&impl_item.generics);
20792077
this.resolve_visibility(&impl_item.vis);
20802078
match impl_item.node {
20812079
ImplItemKind::Const(..) => {

0 commit comments

Comments
 (0)