fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
1016 B27 linesraw
1warning: skipping const checks
2  --> $DIR/mutable_const2.rs:15:38
3   |
4LL | const MUTABLE_BEHIND_RAW: *mut i32 = &UnsafeCell::new(42) as *const _ as *mut _;
5   |                                      ^^^^^^^^^^^^^^^^^^^^
6
7warning: 1 warning emitted
8
9error: internal compiler error: mutable allocation in constant
10  --> $DIR/mutable_const2.rs:15:1
11   |
12LL | const MUTABLE_BEHIND_RAW: *mut i32 = &UnsafeCell::new(42) as *const _ as *mut _;
13   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14
15thread 'rustc' panicked at 'no errors encountered even though `delay_span_bug` issued', src/librustc_errors/lib.rs:366:17
16note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
17
18error: internal compiler error: unexpected panic
19
20note: the compiler unexpectedly panicked. this is a bug.
21
22note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
23
24note: rustc VERSION running on TARGET
25
26note: compiler flags: FLAGS
27