diff options
| author | Yuki Okushi <jtitor@2k36.org> | 2021-05-12 07:18:00 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-12 07:18:00 +0900 |
| commit | 649b385471097fb03bdd204fd4f921eab3feb9c9 (patch) | |
| tree | 132fd7853962db9ee90882bc0ef71f51eeb46f9b /compiler/rustc_passes/src | |
| parent | 40be1d3152542470ec5955a1bd03de4e2c87053d (diff) | |
| parent | 7c5bc204fa8cbfdbfe3a560aa3a3acc3b44ca116 (diff) | |
| download | rust-649b385471097fb03bdd204fd4f921eab3feb9c9.tar.gz rust-649b385471097fb03bdd204fd4f921eab3feb9c9.zip | |
Rollup merge of #85018 - hi-rustin:rustin-patch-84637, r=estebank
shrinking the deprecated method span close https://github.com/rust-lang/rust/issues/84637
Diffstat (limited to 'compiler/rustc_passes/src')
| -rw-r--r-- | compiler/rustc_passes/src/stability.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_passes/src/stability.rs b/compiler/rustc_passes/src/stability.rs index 9c4f9b1198c..6b1813fba76 100644 --- a/compiler/rustc_passes/src/stability.rs +++ b/compiler/rustc_passes/src/stability.rs @@ -739,7 +739,7 @@ impl Visitor<'tcx> for Checker<'tcx> { None => return, }; let def_id = DefId { krate: cnum, index: CRATE_DEF_INDEX }; - self.tcx.check_stability(def_id, Some(item.hir_id()), item.span); + self.tcx.check_stability(def_id, Some(item.hir_id()), item.span, None); } // For implementations of traits, check the stability of each item @@ -783,7 +783,7 @@ impl Visitor<'tcx> for Checker<'tcx> { .map(|item| item.def_id); if let Some(def_id) = trait_item_def_id { // Pass `None` to skip deprecation warnings. - self.tcx.check_stability(def_id, None, impl_item.span); + self.tcx.check_stability(def_id, None, impl_item.span, None); } } } @@ -832,7 +832,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() { - self.tcx.check_stability(def_id, Some(id), path.span) + self.tcx.check_stability(def_id, Some(id), path.span, None) } intravisit::walk_path(self, path) } |
