]> git.lizzy.rs Git - rust.git/blob - tests/ui/undocumented_unsafe_blocks.stderr
Move `let_unit_value` back into `style`
[rust.git] / tests / ui / undocumented_unsafe_blocks.stderr
1 error: unsafe block missing a safety comment
2   --> $DIR/undocumented_unsafe_blocks.rs:257:19
3    |
4 LL |     /* Safety: */ unsafe {}
5    |                   ^^^^^^^^^
6    |
7    = note: `-D clippy::undocumented-unsafe-blocks` implied by `-D warnings`
8    = help: consider adding a safety comment on the preceding line
9
10 error: unsafe block missing a safety comment
11   --> $DIR/undocumented_unsafe_blocks.rs:261:5
12    |
13 LL |     unsafe {}
14    |     ^^^^^^^^^
15    |
16    = help: consider adding a safety comment on the preceding line
17
18 error: unsafe block missing a safety comment
19   --> $DIR/undocumented_unsafe_blocks.rs:265:14
20    |
21 LL |     let _ = [unsafe { 14 }, unsafe { 15 }, 42, unsafe { 16 }];
22    |              ^^^^^^^^^^^^^
23    |
24    = help: consider adding a safety comment on the preceding line
25
26 error: unsafe block missing a safety comment
27   --> $DIR/undocumented_unsafe_blocks.rs:265:29
28    |
29 LL |     let _ = [unsafe { 14 }, unsafe { 15 }, 42, unsafe { 16 }];
30    |                             ^^^^^^^^^^^^^
31    |
32    = help: consider adding a safety comment on the preceding line
33
34 error: unsafe block missing a safety comment
35   --> $DIR/undocumented_unsafe_blocks.rs:265:48
36    |
37 LL |     let _ = [unsafe { 14 }, unsafe { 15 }, 42, unsafe { 16 }];
38    |                                                ^^^^^^^^^^^^^
39    |
40    = help: consider adding a safety comment on the preceding line
41
42 error: unsafe block missing a safety comment
43   --> $DIR/undocumented_unsafe_blocks.rs:269:18
44    |
45 LL |     let _ = (42, unsafe {}, "test", unsafe {});
46    |                  ^^^^^^^^^
47    |
48    = help: consider adding a safety comment on the preceding line
49
50 error: unsafe block missing a safety comment
51   --> $DIR/undocumented_unsafe_blocks.rs:269:37
52    |
53 LL |     let _ = (42, unsafe {}, "test", unsafe {});
54    |                                     ^^^^^^^^^
55    |
56    = help: consider adding a safety comment on the preceding line
57
58 error: unsafe block missing a safety comment
59   --> $DIR/undocumented_unsafe_blocks.rs:273:14
60    |
61 LL |     let _ = *unsafe { &42 };
62    |              ^^^^^^^^^^^^^^
63    |
64    = help: consider adding a safety comment on the preceding line
65
66 error: unsafe block missing a safety comment
67   --> $DIR/undocumented_unsafe_blocks.rs:278:19
68    |
69 LL |     let _ = match unsafe {} {
70    |                   ^^^^^^^^^
71    |
72    = help: consider adding a safety comment on the preceding line
73
74 error: unsafe block missing a safety comment
75   --> $DIR/undocumented_unsafe_blocks.rs:284:14
76    |
77 LL |     let _ = &unsafe {};
78    |              ^^^^^^^^^
79    |
80    = help: consider adding a safety comment on the preceding line
81
82 error: unsafe block missing a safety comment
83   --> $DIR/undocumented_unsafe_blocks.rs:288:14
84    |
85 LL |     let _ = [unsafe {}; 5];
86    |              ^^^^^^^^^
87    |
88    = help: consider adding a safety comment on the preceding line
89
90 error: unsafe block missing a safety comment
91   --> $DIR/undocumented_unsafe_blocks.rs:292:13
92    |
93 LL |     let _ = unsafe {};
94    |             ^^^^^^^^^
95    |
96    = help: consider adding a safety comment on the preceding line
97
98 error: unsafe block missing a safety comment
99   --> $DIR/undocumented_unsafe_blocks.rs:302:8
100    |
101 LL |     t!(unsafe {});
102    |        ^^^^^^^^^
103    |
104    = help: consider adding a safety comment on the preceding line
105
106 error: unsafe block missing a safety comment
107   --> $DIR/undocumented_unsafe_blocks.rs:308:13
108    |
109 LL |             unsafe {}
110    |             ^^^^^^^^^
111 ...
112 LL |     t!();
113    |     ---- in this macro invocation
114    |
115    = help: consider adding a safety comment on the preceding line
116    = note: this error originates in the macro `t` (in Nightly builds, run with -Z macro-backtrace for more info)
117
118 error: unsafe block missing a safety comment
119   --> $DIR/undocumented_unsafe_blocks.rs:316:5
120    |
121 LL |     unsafe {} // SAFETY:
122    |     ^^^^^^^^^
123    |
124    = help: consider adding a safety comment on the preceding line
125
126 error: unsafe block missing a safety comment
127   --> $DIR/undocumented_unsafe_blocks.rs:320:5
128    |
129 LL |     unsafe {
130    |     ^^^^^^^^
131    |
132    = help: consider adding a safety comment on the preceding line
133
134 error: unsafe block missing a safety comment
135   --> $DIR/undocumented_unsafe_blocks.rs:330:5
136    |
137 LL |     unsafe {};
138    |     ^^^^^^^^^
139    |
140    = help: consider adding a safety comment on the preceding line
141
142 error: unsafe block missing a safety comment
143   --> $DIR/undocumented_unsafe_blocks.rs:334:20
144    |
145 LL |     println!("{}", unsafe { String::from_utf8_unchecked(vec![]) });
146    |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
147    |
148    = help: consider adding a safety comment on the preceding line
149
150 error: aborting due to 18 previous errors
151