Commit 9d66d5f
committed
Document that extern statics are never eligible for promotion
Reference update for rust-lang/rust#157641: a borrow of an extern
static is never eligible for constant promotion, even when the
reference itself is never read from.1 parent 86635e3 commit 9d66d5f
1 file changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
378 | 378 | | |
379 | 379 | | |
380 | 380 | | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
381 | 392 | | |
382 | 393 | | |
383 | 394 | | |
| |||
648 | 659 | | |
649 | 660 | | |
650 | 661 | | |
| 662 | + | |
651 | 663 | | |
652 | 664 | | |
653 | 665 | | |
| |||
0 commit comments