1
1
error: unsafe block missing a safety comment
2
- --> $DIR/undocumented_unsafe_blocks.rs:247 :5
2
+ --> $DIR/undocumented_unsafe_blocks.rs:255 :5
3
3
|
4
4
LL | unsafe {}
5
5
| ^^^^^^^^^
@@ -8,95 +8,95 @@ LL | unsafe {}
8
8
= help: consider adding a safety comment on the preceding line
9
9
10
10
error: unsafe block missing a safety comment
11
- --> $DIR/undocumented_unsafe_blocks.rs:251 :14
11
+ --> $DIR/undocumented_unsafe_blocks.rs:259 :14
12
12
|
13
13
LL | let _ = [unsafe { 14 }, unsafe { 15 }, 42, unsafe { 16 }];
14
14
| ^^^^^^^^^^^^^
15
15
|
16
16
= help: consider adding a safety comment on the preceding line
17
17
18
18
error: unsafe block missing a safety comment
19
- --> $DIR/undocumented_unsafe_blocks.rs:251 :29
19
+ --> $DIR/undocumented_unsafe_blocks.rs:259 :29
20
20
|
21
21
LL | let _ = [unsafe { 14 }, unsafe { 15 }, 42, unsafe { 16 }];
22
22
| ^^^^^^^^^^^^^
23
23
|
24
24
= help: consider adding a safety comment on the preceding line
25
25
26
26
error: unsafe block missing a safety comment
27
- --> $DIR/undocumented_unsafe_blocks.rs:251 :48
27
+ --> $DIR/undocumented_unsafe_blocks.rs:259 :48
28
28
|
29
29
LL | let _ = [unsafe { 14 }, unsafe { 15 }, 42, unsafe { 16 }];
30
30
| ^^^^^^^^^^^^^
31
31
|
32
32
= help: consider adding a safety comment on the preceding line
33
33
34
34
error: unsafe block missing a safety comment
35
- --> $DIR/undocumented_unsafe_blocks.rs:255 :18
35
+ --> $DIR/undocumented_unsafe_blocks.rs:263 :18
36
36
|
37
37
LL | let _ = (42, unsafe {}, "test", unsafe {});
38
38
| ^^^^^^^^^
39
39
|
40
40
= help: consider adding a safety comment on the preceding line
41
41
42
42
error: unsafe block missing a safety comment
43
- --> $DIR/undocumented_unsafe_blocks.rs:255 :37
43
+ --> $DIR/undocumented_unsafe_blocks.rs:263 :37
44
44
|
45
45
LL | let _ = (42, unsafe {}, "test", unsafe {});
46
46
| ^^^^^^^^^
47
47
|
48
48
= help: consider adding a safety comment on the preceding line
49
49
50
50
error: unsafe block missing a safety comment
51
- --> $DIR/undocumented_unsafe_blocks.rs:259 :14
51
+ --> $DIR/undocumented_unsafe_blocks.rs:267 :14
52
52
|
53
53
LL | let _ = *unsafe { &42 };
54
54
| ^^^^^^^^^^^^^^
55
55
|
56
56
= help: consider adding a safety comment on the preceding line
57
57
58
58
error: unsafe block missing a safety comment
59
- --> $DIR/undocumented_unsafe_blocks.rs:264 :19
59
+ --> $DIR/undocumented_unsafe_blocks.rs:272 :19
60
60
|
61
61
LL | let _ = match unsafe {} {
62
62
| ^^^^^^^^^
63
63
|
64
64
= help: consider adding a safety comment on the preceding line
65
65
66
66
error: unsafe block missing a safety comment
67
- --> $DIR/undocumented_unsafe_blocks.rs:270 :14
67
+ --> $DIR/undocumented_unsafe_blocks.rs:278 :14
68
68
|
69
69
LL | let _ = &unsafe {};
70
70
| ^^^^^^^^^
71
71
|
72
72
= help: consider adding a safety comment on the preceding line
73
73
74
74
error: unsafe block missing a safety comment
75
- --> $DIR/undocumented_unsafe_blocks.rs:274 :14
75
+ --> $DIR/undocumented_unsafe_blocks.rs:282 :14
76
76
|
77
77
LL | let _ = [unsafe {}; 5];
78
78
| ^^^^^^^^^
79
79
|
80
80
= help: consider adding a safety comment on the preceding line
81
81
82
82
error: unsafe block missing a safety comment
83
- --> $DIR/undocumented_unsafe_blocks.rs:278 :13
83
+ --> $DIR/undocumented_unsafe_blocks.rs:286 :13
84
84
|
85
85
LL | let _ = unsafe {};
86
86
| ^^^^^^^^^
87
87
|
88
88
= help: consider adding a safety comment on the preceding line
89
89
90
90
error: unsafe block missing a safety comment
91
- --> $DIR/undocumented_unsafe_blocks.rs:288 :8
91
+ --> $DIR/undocumented_unsafe_blocks.rs:296 :8
92
92
|
93
93
LL | t!(unsafe {});
94
94
| ^^^^^^^^^
95
95
|
96
96
= help: consider adding a safety comment on the preceding line
97
97
98
98
error: unsafe block missing a safety comment
99
- --> $DIR/undocumented_unsafe_blocks.rs:294 :13
99
+ --> $DIR/undocumented_unsafe_blocks.rs:302 :13
100
100
|
101
101
LL | unsafe {}
102
102
| ^^^^^^^^^
@@ -108,31 +108,31 @@ LL | t!();
108
108
= note: this error originates in the macro `t` (in Nightly builds, run with -Z macro-backtrace for more info)
109
109
110
110
error: unsafe block missing a safety comment
111
- --> $DIR/undocumented_unsafe_blocks.rs:302 :5
111
+ --> $DIR/undocumented_unsafe_blocks.rs:310 :5
112
112
|
113
113
LL | unsafe {} // SAFETY:
114
114
| ^^^^^^^^^
115
115
|
116
116
= help: consider adding a safety comment on the preceding line
117
117
118
118
error: unsafe block missing a safety comment
119
- --> $DIR/undocumented_unsafe_blocks.rs:306 :5
119
+ --> $DIR/undocumented_unsafe_blocks.rs:314 :5
120
120
|
121
121
LL | unsafe {
122
122
| ^^^^^^^^
123
123
|
124
124
= help: consider adding a safety comment on the preceding line
125
125
126
126
error: unsafe block missing a safety comment
127
- --> $DIR/undocumented_unsafe_blocks.rs:316 :5
127
+ --> $DIR/undocumented_unsafe_blocks.rs:324 :5
128
128
|
129
129
LL | unsafe {};
130
130
| ^^^^^^^^^
131
131
|
132
132
= help: consider adding a safety comment on the preceding line
133
133
134
134
error: unsafe block missing a safety comment
135
- --> $DIR/undocumented_unsafe_blocks.rs:320 :20
135
+ --> $DIR/undocumented_unsafe_blocks.rs:328 :20
136
136
|
137
137
LL | println!("{}", unsafe { String::from_utf8_unchecked(vec![]) });
138
138
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
0 commit comments