Skip to content

Commit ea6b18e

Browse files
committed
Removed redundant generics visits
1 parent a9924c6 commit ea6b18e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/librustc_resolve/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1844,7 +1844,6 @@ impl<'a> Resolver<'a> {
18441844

18451845
for trait_item in trait_items {
18461846
this.check_proc_macro_attrs(&trait_item.attrs);
1847-
this.visit_generics(&trait_item.generics);
18481847

18491848
match trait_item.node {
18501849
TraitItemKind::Const(ref ty, ref default) => {
@@ -2056,7 +2055,6 @@ impl<'a> Resolver<'a> {
20562055
this.with_current_self_type(self_type, |this| {
20572056
for impl_item in impl_items {
20582057
this.check_proc_macro_attrs(&impl_item.attrs);
2059-
this.visit_generics(&impl_item.generics);
20602058
this.resolve_visibility(&impl_item.vis);
20612059
match impl_item.node {
20622060
ImplItemKind::Const(..) => {

0 commit comments

Comments
 (0)