We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b2642f commit db07174Copy full SHA for db07174
src/librustc_mir/transform/promote_consts.rs
@@ -526,7 +526,7 @@ impl<'tcx> Validator<'_, 'tcx> {
526
// The reason is because promotion will be illegal if field
527
// accesses preceed the dereferencing.
528
// Discussion can be found at
529
- // https://github.com/rust-lang/rust/pull/74945#discussion_r463063247
+ // 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) {
0 commit comments