Skip to content

Commit

Permalink
Update compiletests.
Browse files Browse the repository at this point in the history
  • Loading branch information
LegNeato committed Dec 17, 2023
1 parent bcebce2 commit 33b6e0c
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 9 deletions.
8 changes: 4 additions & 4 deletions tests/ui/dis/ptr_copy.normal.stderr
Original file line number Diff line number Diff line change
@@ -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::<f32>`
--> $CORE_SRC/intrinsics.rs:2762:21
--> $CORE_SRC/intrinsics.rs:2779:21
|
2762 | pub const unsafe fn copy<T>(src: *const T, dst: *mut T, count: usize) {
2779 | pub const unsafe fn copy<T>(src: *const T, dst: *mut T, count: usize) {
| ^^^^
note: called by `ptr_copy::copy_via_raw_ptr`
--> $DIR/ptr_copy.rs:28:18
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/dis/ptr_read.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/dis/ptr_read_method.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/dis/ptr_write.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/dis/ptr_write_method.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 10 additions & 1 deletion tests/ui/lang/core/ptr/allocate_const_scalar.stderr
Original file line number Diff line number Diff line change
@@ -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`
Expand All @@ -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

11 changes: 11 additions & 0 deletions tests/ui/lang/core/ptr/allocate_vec_like.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
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

0 comments on commit 33b6e0c

Please sign in to comment.