From 4631579b000b006ed3eba7d3f80bbfece02579bc Mon Sep 17 00:00:00 2001 From: Ding Xiang Fei Date: Fri, 31 Jul 2020 11:58:49 +0800 Subject: [PATCH] rustfmt --- src/librustc_mir/transform/promote_consts.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/librustc_mir/transform/promote_consts.rs b/src/librustc_mir/transform/promote_consts.rs index ca79cb3cc0a9..f68473480630 100644 --- a/src/librustc_mir/transform/promote_consts.rs +++ b/src/librustc_mir/transform/promote_consts.rs @@ -529,7 +529,9 @@ impl<'tcx> Validator<'_, 'tcx> { // https://github.com/rust-lang/rust/pull/74945#discussion_r463063247 // There may be opportunity for generalization, but this needs to be // accounted for. - if proj_base.is_empty() && !self.tcx.is_thread_local_static(did) { + if proj_base.is_empty() + && !self.tcx.is_thread_local_static(did) + { not_promotable = false; } }