We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ee234e commit 6e53402Copy full SHA for 6e53402
compiler/rustc_passes/src/stability.rs
@@ -827,7 +827,7 @@ impl<'tcx> Visitor<'tcx> for Checker<'tcx> {
827
/// Check whether a path is a `use` item that has been marked as unstable.
828
fn is_unstable_reexport<'tcx>(tcx: TyCtxt<'tcx>, id: hir::HirId) -> bool {
829
// 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};
+ let Some(def_id) = tcx.hir().opt_local_def_id(id) else { return false; };
831
832
let Some(stab) = tcx.stability().local_stability(def_id) else {
833
return false;
0 commit comments