]> git.lizzy.rs Git - rust.git/commitdiff
Avoid remapping paths back to `$SRC_DIR` in CI
authorOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>
Wed, 7 Dec 2022 09:19:49 +0000 (09:19 +0000)
committerOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>
Wed, 7 Dec 2022 09:19:49 +0000 (09:19 +0000)
src/test/ui/consts/missing_span_in_backtrace.rs
src/test/ui/consts/missing_span_in_backtrace.stderr

index 444a2c553b2de7c9f9c81f45fa568711b2cbdbbb..2db54db4af1ca5dccaafa2ca9176df5f9ad23afb 100644 (file)
@@ -1,4 +1,4 @@
-// compile-flags: -Z simulate-remapped-rust-src-base=/rustc/xyz -Z translate-remapped-path-to-local-path=no
+// compile-flags: -Z simulate-remapped-rust-src-base=/rustc/xyz -Z translate-remapped-path-to-local-path=no -Z ui-testing=no
 // normalize-stderr-test "alloc[0-9]+" -> "ALLOC_ID"
 
 #![feature(const_swap)]
index 32fdcc365be7f766acb133d6f222e90827f78ca8..579c8da1e8f97571b02fc8fec0fa6d9616a2502f 100644 (file)
@@ -16,11 +16,11 @@ note: inside `swap_nonoverlapping::<MaybeUninit<u8>>`
 note: inside `X`
   --> $DIR/missing_span_in_backtrace.rs:17:9
    |
-LL | /         ptr::swap_nonoverlapping(
-LL | |             &mut ptr1 as *mut _ as *mut MaybeUninit<u8>,
-LL | |             &mut ptr2 as *mut _ as *mut MaybeUninit<u8>,
-LL | |             mem::size_of::<&i32>(),
-LL | |         );
+17 | /         ptr::swap_nonoverlapping(
+18 | |             &mut ptr1 as *mut _ as *mut MaybeUninit<u8>,
+19 | |             &mut ptr2 as *mut _ as *mut MaybeUninit<u8>,
+20 | |             mem::size_of::<&i32>(),
+21 | |         );
    | |_________^
 
 error: aborting due to previous error