Skip to content

Commit 4631579

Browse files
rustfmt
1 parent db07174 commit 4631579

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/librustc_mir/transform/promote_consts.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,9 @@ impl<'tcx> Validator<'_, 'tcx> {
529529
// https://github.com/rust-lang/rust/pull/74945#discussion_r463063247
530530
// There may be opportunity for generalization, but this needs to be
531531
// accounted for.
532-
if proj_base.is_empty() && !self.tcx.is_thread_local_static(did) {
532+
if proj_base.is_empty()
533+
&& !self.tcx.is_thread_local_static(did)
534+
{
533535
not_promotable = false;
534536
}
535537
}

0 commit comments

Comments
 (0)