Skip to content

Commit b318344

Browse files
committed
Try using lookup_stability instead
1 parent a84656e commit b318344

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_passes/src/stability.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ impl<'tcx> MissingStabilityAnnotations<'tcx> {
607607
}
608608

609609
fn check_private_stability(&self, hir_id: HirId, span: Span) {
610-
let stab = self.tcx.stability().local_stability(hir_id);
610+
let stab = self.tcx.lookup_stability(self.tcx.hir().local_def_id(hir_id));
611611
let is_error = stab.is_some() && !self.access_levels.is_reachable(hir_id);
612612
if is_error {
613613
let def_id = self.tcx.hir().local_def_id(hir_id);

0 commit comments

Comments
 (0)