We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db07174 commit 4631579Copy full SHA for 4631579
src/librustc_mir/transform/promote_consts.rs
@@ -529,7 +529,9 @@ impl<'tcx> Validator<'_, 'tcx> {
529
// https://github.com/rust-lang/rust/pull/74945#discussion_r463063247
530
// There may be opportunity for generalization, but this needs to be
531
// accounted for.
532
- if proj_base.is_empty() && !self.tcx.is_thread_local_static(did) {
+ if proj_base.is_empty()
533
+ && !self.tcx.is_thread_local_static(did)
534
+ {
535
not_promotable = false;
536
}
537
0 commit comments