|
1 | 1 | use crate::ty::subst::SubstsRef; |
2 | | -use crate::ty::{CanonicalUserTypeAnnotation, GeneratorSubsts, Ty}; |
| 2 | +use crate::ty::{CanonicalUserTypeAnnotation, Ty}; |
3 | 3 | use crate::mir::*; |
4 | 4 | use syntax_pos::Span; |
5 | 5 |
|
@@ -230,12 +230,6 @@ macro_rules! make_mir_visitor { |
230 | 230 | self.super_substs(substs); |
231 | 231 | } |
232 | 232 |
|
233 | | - fn visit_generator_substs(&mut self, |
234 | | - substs: & $($mutability)? GeneratorSubsts<'tcx>, |
235 | | - _: Location) { |
236 | | - self.super_generator_substs(substs); |
237 | | - } |
238 | | - |
239 | 233 | fn visit_local_decl(&mut self, |
240 | 234 | local: Local, |
241 | 235 | local_decl: & $($mutability)? LocalDecl<'tcx>) { |
@@ -628,7 +622,7 @@ macro_rules! make_mir_visitor { |
628 | 622 | generator_substs, |
629 | 623 | _movability, |
630 | 624 | ) => { |
631 | | - self.visit_generator_substs(generator_substs, location); |
| 625 | + self.visit_substs(generator_substs, location); |
632 | 626 | } |
633 | 627 | } |
634 | 628 |
|
@@ -846,10 +840,6 @@ macro_rules! make_mir_visitor { |
846 | 840 | fn super_substs(&mut self, _substs: & $($mutability)? SubstsRef<'tcx>) { |
847 | 841 | } |
848 | 842 |
|
849 | | - fn super_generator_substs(&mut self, |
850 | | - _substs: & $($mutability)? GeneratorSubsts<'tcx>) { |
851 | | - } |
852 | | - |
853 | 843 | // Convenience methods |
854 | 844 |
|
855 | 845 | fn visit_location(&mut self, body: & $($mutability)? Body<'tcx>, location: Location) { |
|
0 commit comments