Skip to content

Commit 7662731

Browse files
committed
Fix formatting.
1 parent ee43034 commit 7662731

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

compiler/rustc_passes/src/stability.rs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -231,13 +231,14 @@ fn lookup_const_stability(tcx: TyCtxt<'_>, def_id: LocalDefId) -> Option<ConstSt
231231
let mut const_stab = const_stab
232232
.map(|const_stab| ConstStability::from_partial(const_stab, const_stability_indirect));
233233

234-
// If this is a const fn but not annotated with stability markers, see if we can inherit regular stability.
234+
// If this is a const fn but not annotated with stability markers, see if we can inherit
235+
// regular stability.
235236
if let Some(fn_sig) = tcx.hir_node_by_def_id(def_id).fn_sig()
236-
&& fn_sig.header.is_const()
237-
&& const_stab.is_none()
238-
// We only ever inherit unstable features.
239-
&& let Some(inherit_regular_stab) = tcx.lookup_stability(def_id)
240-
&& inherit_regular_stab.is_unstable()
237+
&& fn_sig.header.is_const()
238+
&& const_stab.is_none()
239+
// We only ever inherit unstable features.
240+
&& let Some(inherit_regular_stab) = tcx.lookup_stability(def_id)
241+
&& inherit_regular_stab.is_unstable()
241242
{
242243
const_stab = Some(ConstStability {
243244
// We subject these implicitly-const functions to recursive const stability.

0 commit comments

Comments
 (0)