]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_ast_lowering/src/lifetime_collector.rs
Rollup merge of #101802 - chriss0612:const_fn_trait_ref_impls, r=fee1-dead
[rust.git] / compiler / rustc_ast_lowering / src / lifetime_collector.rs
index 8c67cebae55aff7aa67b77100e544dc1e26ee545..914fc5f58da140a7110f3a380b9e0788ad4db42c 100644 (file)
@@ -63,9 +63,9 @@ fn visit_lifetime(&mut self, lifetime: &'ast Lifetime, _: LifetimeCtxt) {
         self.record_lifetime_use(*lifetime);
     }
 
-    fn visit_path_segment(&mut self, path_span: Span, path_segment: &'ast PathSegment) {
-        self.record_elided_anchor(path_segment.id, path_span);
-        visit::walk_path_segment(self, path_span, path_segment);
+    fn visit_path_segment(&mut self, path_segment: &'ast PathSegment) {
+        self.record_elided_anchor(path_segment.id, path_segment.ident.span);
+        visit::walk_path_segment(self, path_segment);
     }
 
     fn visit_poly_trait_ref(&mut self, t: &'ast PolyTraitRef) {