]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/consts/miri_unleashed/mutable_const2.stderr
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / consts / miri_unleashed / mutable_const2.stderr
index 3eb8e0ec182881c4cbaace481293ae85f1a5a82b..39027dd2b4103907f97e2cf03d3597b4f318516e 100644 (file)
@@ -4,13 +4,15 @@ warning: skipping const checks
 LL | const MUTABLE_BEHIND_RAW: *mut i32 = &UnsafeCell::new(42) as *const _ as *mut _;
    |                                      ^^^^^^^^^^^^^^^^^^^^
 
+warning: 1 warning emitted
+
 error: internal compiler error: mutable allocation in constant
   --> $DIR/mutable_const2.rs:15:1
    |
 LL | const MUTABLE_BEHIND_RAW: *mut i32 = &UnsafeCell::new(42) as *const _ as *mut _;
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
-thread 'rustc' panicked at 'no errors encountered even though `delay_span_bug` issued', src/librustc_errors/lib.rs:355:17
+thread 'rustc' panicked at 'no errors encountered even though `delay_span_bug` issued', src/librustc_errors/lib.rs:366:17
 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
 
 error: internal compiler error: unexpected panic