Skip to content

Commit d18558f

Browse files
committed
Update compiletests.
1 parent bcebce2 commit d18558f

File tree

7 files changed

+28
-9
lines changed

7 files changed

+28
-9
lines changed

tests/ui/dis/ptr_copy.normal.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
error: cannot memcpy dynamically sized data
2-
--> $CORE_SRC/intrinsics.rs:2776:9
2+
--> $CORE_SRC/intrinsics.rs:2793:9
33
|
4-
2776 | copy(src, dst, count)
4+
2793 | copy(src, dst, count)
55
| ^^^^^^^^^^^^^^^^^^^^^
66
|
77
note: used from within `core::intrinsics::copy::<f32>`
8-
--> $CORE_SRC/intrinsics.rs:2762:21
8+
--> $CORE_SRC/intrinsics.rs:2779:21
99
|
10-
2762 | pub const unsafe fn copy<T>(src: *const T, dst: *mut T, count: usize) {
10+
2779 | pub const unsafe fn copy<T>(src: *const T, dst: *mut T, count: usize) {
1111
| ^^^^
1212
note: called by `ptr_copy::copy_via_raw_ptr`
1313
--> $DIR/ptr_copy.rs:28:18

tests/ui/dis/ptr_read.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
%4 = OpFunctionParameter %5
33
%6 = OpFunctionParameter %5
44
%7 = OpLabel
5-
OpLine %8 1200 8
5+
OpLine %8 1215 8
66
%9 = OpLoad %10 %4
77
OpLine %11 7 13
88
OpStore %6 %9

tests/ui/dis/ptr_read_method.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
%4 = OpFunctionParameter %5
33
%6 = OpFunctionParameter %5
44
%7 = OpLabel
5-
OpLine %8 1200 8
5+
OpLine %8 1215 8
66
%9 = OpLoad %10 %4
77
OpLine %11 7 13
88
OpStore %6 %9

tests/ui/dis/ptr_write.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
%7 = OpLabel
55
OpLine %8 7 35
66
%9 = OpLoad %10 %4
7-
OpLine %11 1400 8
7+
OpLine %11 1415 8
88
OpStore %6 %9
99
OpNoLine
1010
OpReturn

tests/ui/dis/ptr_write_method.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
%7 = OpLabel
55
OpLine %8 7 37
66
%9 = OpLoad %10 %4
7-
OpLine %11 1400 8
7+
OpLine %11 1415 8
88
OpStore %6 %9
99
OpNoLine
1010
OpReturn

tests/ui/lang/core/ptr/allocate_const_scalar.stderr

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
warning: the feature `ptr_internals` is internal to the compiler or standard library
2+
--> $DIR/allocate_const_scalar.rs:6:12
3+
|
4+
6 | #![feature(ptr_internals)]
5+
| ^^^^^^^^^^^^^
6+
|
7+
= note: using it is strongly discouraged
8+
= note: `#[warn(internal_features)]` on by default
9+
110
error: pointer has non-null integer address
211
|
312
note: used from within `allocate_const_scalar::main`
@@ -11,5 +20,5 @@ note: called by `main`
1120
15 | pub fn main(output: &mut Unique<[u8; 4]>) {
1221
| ^^^^
1322

14-
error: aborting due to 1 previous error
23+
error: aborting due to 1 previous error; 1 warning emitted
1524

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
warning: the feature `ptr_internals` is internal to the compiler or standard library
2+
--> $DIR/allocate_vec_like.rs:4:12
3+
|
4+
4 | #![feature(ptr_internals)]
5+
| ^^^^^^^^^^^^^
6+
|
7+
= note: using it is strongly discouraged
8+
= note: `#[warn(internal_features)]` on by default
9+
10+
warning: 1 warning emitted

0 commit comments

Comments
 (0)