We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
lookup_stability
1 parent a84656e commit b318344Copy full SHA for b318344
compiler/rustc_passes/src/stability.rs
@@ -607,7 +607,7 @@ impl<'tcx> MissingStabilityAnnotations<'tcx> {
607
}
608
609
fn check_private_stability(&self, hir_id: HirId, span: Span) {
610
- let stab = self.tcx.stability().local_stability(hir_id);
+ let stab = self.tcx.lookup_stability(self.tcx.hir().local_def_id(hir_id));
611
let is_error = stab.is_some() && !self.access_levels.is_reachable(hir_id);
612
if is_error {
613
let def_id = self.tcx.hir().local_def_id(hir_id);
0 commit comments