Skip to content

Commit

Permalink
Update compiler/rustc_passes/src/stability.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Joe ST <joe@fbstj.net>
  • Loading branch information
semicoleon and fbstj authored Jun 3, 2022
1 parent 9ee234e commit 6e53402
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_passes/src/stability.rs
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,7 @@ impl<'tcx> Visitor<'tcx> for Checker<'tcx> {
/// Check whether a path is a `use` item that has been marked as unstable.
fn is_unstable_reexport<'tcx>(tcx: TyCtxt<'tcx>, id: hir::HirId) -> bool {
// Get the LocalDefId so we can lookup the item to check the kind.
let Some(def_id) = tcx.hir().opt_local_def_id(id) else { return false};
let Some(def_id) = tcx.hir().opt_local_def_id(id) else { return false; };

let Some(stab) = tcx.stability().local_stability(def_id) else {
return false;
Expand Down

0 comments on commit 6e53402

Please sign in to comment.