You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: tests/ui/rfcs/rfc-2396-target_feature-11/safe-calls.stderr
+1
Original file line number
Diff line number
Diff line change
@@ -97,6 +97,7 @@ error: call to function `sse2` with `#[target_feature]` is unsafe and requires u
97
97
LL | sse2();
98
98
| ^^^^^^ call to function with `#[target_feature]`
99
99
|
100
+
= note: for more information, see issue #71668 <https://github.com/rust-lang/rust/issues/71668>
100
101
= help: in order for the call to be safe, the context requires the following additional target feature: sse2
101
102
= note: the sse2 target feature being enabled in the build configuration does not remove the requirement to list it in `#[target_feature]`
102
103
note: an unsafe function restricts its caller, but its body is safe by default
Copy file name to clipboardexpand all lines: tests/ui/unsafe/edition-2024-unsafe_op_in_unsafe_fn.stderr
+1
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@ warning: call to unsafe function `unsf` is unsafe and requires unsafe block (err
4
4
LL | unsf();
5
5
| ^^^^^^ call to unsafe function
6
6
|
7
+
= note: for more information, see issue #71668 <https://github.com/rust-lang/rust/issues/71668>
7
8
= note: consult the function's documentation for information on how to avoid undefined behavior
8
9
note: an unsafe function restricts its caller, but its body is safe by default
warning: call to unsafe function `unsf` is unsafe and requires unsafe block (error E0133)
2
+
--> $DIR/edition_2024_default.rs:13:5
3
+
|
4
+
LL | unsf();
5
+
| ^^^^^^ call to unsafe function
6
+
|
7
+
= note: for more information, see issue #71668 <https://github.com/rust-lang/rust/issues/71668>
8
+
= note: consult the function's documentation for information on how to avoid undefined behavior
9
+
note: an unsafe function restricts its caller, but its body is safe by default
10
+
--> $DIR/edition_2024_default.rs:12:1
11
+
|
12
+
LL | unsafe fn foo() {
13
+
| ^^^^^^^^^^^^^^^
14
+
= note: `#[warn(unsafe_op_in_unsafe_fn)]` on by default
error: call to unsafe function `unsf` is unsafe and requires unsafe block (error E0133)
2
+
--> $DIR/in_2024_compatibility.rs:7:5
3
+
|
4
+
LL | unsf();
5
+
| ^^^^^^ call to unsafe function
6
+
|
7
+
= note: for more information, see issue #71668 <https://github.com/rust-lang/rust/issues/71668>
8
+
= note: consult the function's documentation for information on how to avoid undefined behavior
9
+
note: an unsafe function restricts its caller, but its body is safe by default
10
+
--> $DIR/in_2024_compatibility.rs:6:1
11
+
|
12
+
LL | unsafe fn foo() {
13
+
| ^^^^^^^^^^^^^^^
14
+
note: the lint level is defined here
15
+
--> $DIR/in_2024_compatibility.rs:1:9
16
+
|
17
+
LL | #![deny(rust_2024_compatibility)]
18
+
| ^^^^^^^^^^^^^^^^^^^^^^^
19
+
= note: `#[deny(unsafe_op_in_unsafe_fn)]` implied by `#[deny(rust_2024_compatibility)]`
Copy file name to clipboardexpand all lines: tests/ui/unsafe/unsafe_op_in_unsafe_fn/rfc-2585-unsafe_op_in_unsafe_fn.stderr
+6
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@ error: call to unsafe function `unsf` is unsafe and requires unsafe block (error
4
4
LL | unsf();
5
5
| ^^^^^^ call to unsafe function
6
6
|
7
+
= note: for more information, see issue #71668 <https://github.com/rust-lang/rust/issues/71668>
7
8
= note: consult the function's documentation for information on how to avoid undefined behavior
8
9
note: an unsafe function restricts its caller, but its body is safe by default
9
10
--> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:8:1
@@ -22,6 +23,7 @@ error: dereference of raw pointer is unsafe and requires unsafe block (error E01
22
23
LL | *PTR;
23
24
| ^^^^ dereference of raw pointer
24
25
|
26
+
= note: for more information, see issue #71668 <https://github.com/rust-lang/rust/issues/71668>
25
27
= note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
26
28
27
29
error: use of mutable static is unsafe and requires unsafe block (error E0133)
@@ -30,6 +32,7 @@ error: use of mutable static is unsafe and requires unsafe block (error E0133)
30
32
LL | VOID = ();
31
33
| ^^^^ use of mutable static
32
34
|
35
+
= note: for more information, see issue #71668 <https://github.com/rust-lang/rust/issues/71668>
33
36
= note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
34
37
35
38
error: unnecessary `unsafe` block
@@ -50,6 +53,7 @@ error: call to unsafe function `unsf` is unsafe and requires unsafe block (error
50
53
LL | unsf();
51
54
| ^^^^^^ call to unsafe function
52
55
|
56
+
= note: for more information, see issue #71668 <https://github.com/rust-lang/rust/issues/71668>
53
57
= note: consult the function's documentation for information on how to avoid undefined behavior
54
58
note: an unsafe function restricts its caller, but its body is safe by default
55
59
--> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:23:1
@@ -69,6 +73,7 @@ error: dereference of raw pointer is unsafe and requires unsafe block (error E01
69
73
LL | *PTR;
70
74
| ^^^^ dereference of raw pointer
71
75
|
76
+
= note: for more information, see issue #71668 <https://github.com/rust-lang/rust/issues/71668>
72
77
= note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
73
78
74
79
error: use of mutable static is unsafe and requires unsafe block (error E0133)
@@ -77,6 +82,7 @@ error: use of mutable static is unsafe and requires unsafe block (error E0133)
77
82
LL | VOID = ();
78
83
| ^^^^ use of mutable static
79
84
|
85
+
= note: for more information, see issue #71668 <https://github.com/rust-lang/rust/issues/71668>
80
86
= note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
0 commit comments