about summary refs log tree commit diff
path: root/src/librustdoc/html
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2022-11-25 11:26:36 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2022-12-01 17:04:02 +0300
commit6cd4dd3091dfe0ce4a728bd9ae177361fba23736 (patch)
tree79c7ac3b2466884bcb5725a99d7433de0192457d /src/librustdoc/html
parent9c0bc3028a575eece6d4e8fbc6624cb95b9c9893 (diff)
downloadrust-6cd4dd3091dfe0ce4a728bd9ae177361fba23736.tar.gz
rust-6cd4dd3091dfe0ce4a728bd9ae177361fba23736.zip
rustc_hir: Relax lifetime requirements on `Visitor::visit_path`
Diffstat (limited to 'src/librustdoc/html')
-rw-r--r--src/librustdoc/html/render/span_map.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/render/span_map.rs b/src/librustdoc/html/render/span_map.rs
index 151ec2b28ad..b898db24246 100644
--- a/src/librustdoc/html/render/span_map.rs
+++ b/src/librustdoc/html/render/span_map.rs
@@ -140,7 +140,7 @@ impl<'tcx> Visitor<'tcx> for SpanMapVisitor<'tcx> {
         self.tcx.hir()
     }
 
-    fn visit_path(&mut self, path: &'tcx rustc_hir::Path<'tcx>, _id: HirId) {
+    fn visit_path(&mut self, path: &rustc_hir::Path<'tcx>, _id: HirId) {
         if self.handle_macro(path.span) {
             return;
         }