Revert "shrinking the deprecated method span"
This commit is contained in:
parent
595088d602
commit
2a6dd25265
7 changed files with 131 additions and 163 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue