diff options
| author | bors <bors@rust-lang.org> | 2021-06-05 11:12:57 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-06-05 11:12:57 +0000 |
| commit | 5ea19239d9d6f49fdd76513a36386d7e83708e3f (patch) | |
| tree | c42ec722628d5c53a02327b90894b6de848fc1b8 /compiler/rustc_passes/src | |
| parent | 34b9932f5c0f519d6b9b9f95f21723142c5dc877 (diff) | |
| parent | 1384200b1c2f69808dd16df1e967ef4e8a31dfdd (diff) | |
| download | rust-5ea19239d9d6f49fdd76513a36386d7e83708e3f.tar.gz rust-5ea19239d9d6f49fdd76513a36386d7e83708e3f.zip | |
Auto merge of #86001 - richkadel:revert-85617-rustin-patch-fix, r=Mark-Simulacrum
Revert "shrinking the deprecated method span" Reverts rust-lang/rust#85617 Fixes: #86000 r? `@Mark-Simulacrum`
Diffstat (limited to 'compiler/rustc_passes/src')
| -rw-r--r-- | compiler/rustc_passes/src/stability.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/compiler/rustc_passes/src/stability.rs b/compiler/rustc_passes/src/stability.rs index 29a0a3c48e5..f41e0e03706 100644 --- a/compiler/rustc_passes/src/stability.rs +++ b/compiler/rustc_passes/src/stability.rs @@ -828,11 +828,7 @@ impl Visitor<'tcx> for Checker<'tcx> { fn visit_path(&mut self, path: &'tcx hir::Path<'tcx>, id: hir::HirId) { if let Some(def_id) = path.res.opt_def_id() { - let method_span = match path.segments { - [.., _, last] => Some(last.ident.span), - _ => None, - }; - self.tcx.check_stability(def_id, Some(id), path.span, method_span) + self.tcx.check_stability(def_id, Some(id), path.span, None) } intravisit::walk_path(self, path) } |
