Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/unstable-reexport' into unstable…
Browse files Browse the repository at this point in the history
…-reexport
  • Loading branch information
semicoleon committed Jun 4, 2022
2 parents d536c18 + 6e53402 commit 95edcb0
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 @@ -828,7 +828,7 @@ impl<'tcx> Visitor<'tcx> for Checker<'tcx> {
/// See issue #94972 for details on why this is a special case
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 95edcb0

Please sign in to comment.