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/lint/invalid_null_args.stderr
+23-13Lines changed: 23 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -164,7 +164,7 @@ LL | let _a: A = ptr::read_unaligned(ptr::null_mut());
164
164
= help: for more information, visit <https://doc.rust-lang.org/std/ptr/index.html> and <https://doc.rust-lang.org/reference/behavior-considered-undefined.html>
165
165
166
166
error: calling this function with a null pointer is undefined behavior, even if the result of the function is unused
167
-
--> $DIR/invalid_null_args.rs:61:17
167
+
--> $DIR/invalid_null_args.rs:65:17
168
168
|
169
169
LL | let _a: A = ptr::replace(ptr::null_mut(), v);
170
170
| ^^^^^^^^^^^^^---------------^^^^
@@ -174,7 +174,7 @@ LL | let _a: A = ptr::replace(ptr::null_mut(), v);
174
174
= help: for more information, visit <https://doc.rust-lang.org/std/ptr/index.html> and <https://doc.rust-lang.org/reference/behavior-considered-undefined.html>
175
175
176
176
error: calling this function with a null pointer is undefined behavior, even if the result of the function is unused
= help: for more information, visit <https://doc.rust-lang.org/std/ptr/index.html> and <https://doc.rust-lang.org/reference/behavior-considered-undefined.html>
185
185
186
186
error: calling this function with a null pointer is undefined behavior, even if the result of the function is unused
= help: for more information, visit <https://doc.rust-lang.org/std/ptr/index.html> and <https://doc.rust-lang.org/reference/behavior-considered-undefined.html>
195
195
196
196
error: calling this function with a null pointer is undefined behavior, even if the result of the function is unused
= help: for more information, visit <https://doc.rust-lang.org/std/ptr/index.html> and <https://doc.rust-lang.org/reference/behavior-considered-undefined.html>
205
205
206
206
error: calling this function with a null pointer is undefined behavior, even if the result of the function is unused
= help: for more information, visit <https://doc.rust-lang.org/std/ptr/index.html> and <https://doc.rust-lang.org/reference/behavior-considered-undefined.html>
215
215
216
216
error: calling this function with a null pointer is undefined behavior, even if the result of the function is unused
= help: for more information, visit <https://doc.rust-lang.org/std/ptr/index.html> and <https://doc.rust-lang.org/reference/behavior-considered-undefined.html>
225
225
226
226
error: calling this function with a null pointer is undefined behavior, even if the result of the function is unused
= help: for more information, visit <https://doc.rust-lang.org/std/ptr/index.html> and <https://doc.rust-lang.org/reference/behavior-considered-undefined.html>
235
235
236
236
error: calling this function with a null pointer is undefined behavior, even if the result of the function is unused
= help: for more information, visit <https://doc.rust-lang.org/std/ptr/index.html> and <https://doc.rust-lang.org/reference/behavior-considered-undefined.html>
245
+
246
+
error: calling this function with a null pointer is undefined behavior, even if the result of the function is unused
247
+
--> $DIR/invalid_null_args.rs:92:18
238
248
|
239
249
LL | let _a: u8 = ptr::read(const_ptr);
240
250
| ^^^^^^^^^^^^^^^^^^^^
@@ -247,7 +257,7 @@ LL | let null_ptr = ptr::null_mut();
247
257
| ^^^^^^^^^^^^^^^
248
258
249
259
error: calling this function with a null pointer is undefined behavior, even if the result of the function is unused
= help: for more information, visit <https://doc.rust-lang.org/std/ptr/index.html> and <https://doc.rust-lang.org/reference/behavior-considered-undefined.html>
258
268
259
269
error: calling this function with a null pointer is undefined behavior, even if the result of the function is unused
= help: for more information, visit <https://doc.rust-lang.org/std/ptr/index.html> and <https://doc.rust-lang.org/reference/behavior-considered-undefined.html>
268
278
269
279
error: calling this function with a null pointer is undefined behavior, even if the result of the function is unused
= help: for more information, visit <https://doc.rust-lang.org/std/ptr/index.html> and <https://doc.rust-lang.org/reference/behavior-considered-undefined.html>
278
288
279
289
error: calling this function with a null pointer is undefined behavior, even if the result of the function is unused
= help: for more information, visit <https://doc.rust-lang.org/std/ptr/index.html> and <https://doc.rust-lang.org/reference/behavior-considered-undefined.html>
0 commit comments