Skip to content

Commit 6e53402

Browse files
semicoleonfbstj
andauthored
Update compiler/rustc_passes/src/stability.rs
Co-authored-by: Joe ST <[email protected]>
1 parent 9ee234e commit 6e53402

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
@@ -827,7 +827,7 @@ impl<'tcx> Visitor<'tcx> for Checker<'tcx> {
827827
/// Check whether a path is a `use` item that has been marked as unstable.
828828
fn is_unstable_reexport<'tcx>(tcx: TyCtxt<'tcx>, id: hir::HirId) -> bool {
829829
// Get the LocalDefId so we can lookup the item to check the kind.
830-
let Some(def_id) = tcx.hir().opt_local_def_id(id) else { return false};
830+
let Some(def_id) = tcx.hir().opt_local_def_id(id) else { return false; };
831831

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

0 commit comments

Comments
 (0)