From 2e4c27e8d0a8962123b0806510195ab1eeed225b Mon Sep 17 00:00:00 2001 From: Christian Legnitto Date: Sun, 17 Dec 2023 14:22:33 -0400 Subject: [PATCH] Update compiletests. --- tests/ui/dis/ptr_copy.normal.stderr | 8 ++++---- tests/ui/dis/ptr_read.stderr | 2 +- tests/ui/dis/ptr_read_method.stderr | 2 +- tests/ui/dis/ptr_write.stderr | 2 +- tests/ui/dis/ptr_write_method.stderr | 2 +- tests/ui/lang/core/ptr/allocate_const_scalar.stderr | 11 ++++++++++- tests/ui/lang/core/ptr/allocate_vec_like.stderr | 10 ++++++++++ 7 files changed, 28 insertions(+), 9 deletions(-) create mode 100644 tests/ui/lang/core/ptr/allocate_vec_like.stderr diff --git a/tests/ui/dis/ptr_copy.normal.stderr b/tests/ui/dis/ptr_copy.normal.stderr index 7182c5f4ba..76c49bd4e5 100644 --- a/tests/ui/dis/ptr_copy.normal.stderr +++ b/tests/ui/dis/ptr_copy.normal.stderr @@ -1,13 +1,13 @@ error: cannot memcpy dynamically sized data - --> $CORE_SRC/intrinsics.rs:2776:9 + --> $CORE_SRC/intrinsics.rs:2793:9 | -2776 | copy(src, dst, count) +2793 | copy(src, dst, count) | ^^^^^^^^^^^^^^^^^^^^^ | note: used from within `core::intrinsics::copy::` - --> $CORE_SRC/intrinsics.rs:2762:21 + --> $CORE_SRC/intrinsics.rs:2779:21 | -2762 | pub const unsafe fn copy(src: *const T, dst: *mut T, count: usize) { +2779 | pub const unsafe fn copy(src: *const T, dst: *mut T, count: usize) { | ^^^^ note: called by `ptr_copy::copy_via_raw_ptr` --> $DIR/ptr_copy.rs:28:18 diff --git a/tests/ui/dis/ptr_read.stderr b/tests/ui/dis/ptr_read.stderr index c4f70a0853..17cc16c310 100644 --- a/tests/ui/dis/ptr_read.stderr +++ b/tests/ui/dis/ptr_read.stderr @@ -2,7 +2,7 @@ %4 = OpFunctionParameter %5 %6 = OpFunctionParameter %5 %7 = OpLabel -OpLine %8 1200 8 +OpLine %8 1215 8 %9 = OpLoad %10 %4 OpLine %11 7 13 OpStore %6 %9 diff --git a/tests/ui/dis/ptr_read_method.stderr b/tests/ui/dis/ptr_read_method.stderr index c4f70a0853..17cc16c310 100644 --- a/tests/ui/dis/ptr_read_method.stderr +++ b/tests/ui/dis/ptr_read_method.stderr @@ -2,7 +2,7 @@ %4 = OpFunctionParameter %5 %6 = OpFunctionParameter %5 %7 = OpLabel -OpLine %8 1200 8 +OpLine %8 1215 8 %9 = OpLoad %10 %4 OpLine %11 7 13 OpStore %6 %9 diff --git a/tests/ui/dis/ptr_write.stderr b/tests/ui/dis/ptr_write.stderr index f2f9af23c9..a34bffdedc 100644 --- a/tests/ui/dis/ptr_write.stderr +++ b/tests/ui/dis/ptr_write.stderr @@ -4,7 +4,7 @@ %7 = OpLabel OpLine %8 7 35 %9 = OpLoad %10 %4 -OpLine %11 1400 8 +OpLine %11 1415 8 OpStore %6 %9 OpNoLine OpReturn diff --git a/tests/ui/dis/ptr_write_method.stderr b/tests/ui/dis/ptr_write_method.stderr index 2141c5964c..c6607d192d 100644 --- a/tests/ui/dis/ptr_write_method.stderr +++ b/tests/ui/dis/ptr_write_method.stderr @@ -4,7 +4,7 @@ %7 = OpLabel OpLine %8 7 37 %9 = OpLoad %10 %4 -OpLine %11 1400 8 +OpLine %11 1415 8 OpStore %6 %9 OpNoLine OpReturn diff --git a/tests/ui/lang/core/ptr/allocate_const_scalar.stderr b/tests/ui/lang/core/ptr/allocate_const_scalar.stderr index df6374b37b..b52a31b6a3 100644 --- a/tests/ui/lang/core/ptr/allocate_const_scalar.stderr +++ b/tests/ui/lang/core/ptr/allocate_const_scalar.stderr @@ -1,3 +1,12 @@ +warning: the feature `ptr_internals` is internal to the compiler or standard library + --> $DIR/allocate_const_scalar.rs:6:12 + | +6 | #![feature(ptr_internals)] + | ^^^^^^^^^^^^^ + | + = note: using it is strongly discouraged + = note: `#[warn(internal_features)]` on by default + error: pointer has non-null integer address | note: used from within `allocate_const_scalar::main` @@ -11,5 +20,5 @@ note: called by `main` 15 | pub fn main(output: &mut Unique<[u8; 4]>) { | ^^^^ -error: aborting due to 1 previous error +error: aborting due to 1 previous error; 1 warning emitted diff --git a/tests/ui/lang/core/ptr/allocate_vec_like.stderr b/tests/ui/lang/core/ptr/allocate_vec_like.stderr new file mode 100644 index 0000000000..13389cd5c0 --- /dev/null +++ b/tests/ui/lang/core/ptr/allocate_vec_like.stderr @@ -0,0 +1,10 @@ +warning: the feature `ptr_internals` is internal to the compiler or standard library + --> $DIR/allocate_vec_like.rs:4:12 + | +4 | #![feature(ptr_internals)] + | ^^^^^^^^^^^^^ + | + = note: using it is strongly discouraged + = note: `#[warn(internal_features)]` on by default + +warning: 1 warning emitted