summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/unnecessary_safety_comment.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 18:31:44 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 18:31:44 +0000
commitc23a457e72abe608715ac76f076f47dc42af07a5 (patch)
tree2772049aaf84b5c9d0ed12ec8d86812f7a7904b6 /src/tools/clippy/tests/ui/unnecessary_safety_comment.stderr
parentReleasing progress-linux version 1.73.0+dfsg1-1~progress7.99u1. (diff)
downloadrustc-c23a457e72abe608715ac76f076f47dc42af07a5.tar.xz
rustc-c23a457e72abe608715ac76f076f47dc42af07a5.zip
Merging upstream version 1.74.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/tools/clippy/tests/ui/unnecessary_safety_comment.stderr')
-rw-r--r--src/tools/clippy/tests/ui/unnecessary_safety_comment.stderr33
1 files changed, 17 insertions, 16 deletions
diff --git a/src/tools/clippy/tests/ui/unnecessary_safety_comment.stderr b/src/tools/clippy/tests/ui/unnecessary_safety_comment.stderr
index 7b2af67d6..6d4ef6c30 100644
--- a/src/tools/clippy/tests/ui/unnecessary_safety_comment.stderr
+++ b/src/tools/clippy/tests/ui/unnecessary_safety_comment.stderr
@@ -10,57 +10,58 @@ help: consider removing the safety comment
LL | // SAFETY:
| ^^^^^^^^^^
= note: `-D clippy::unnecessary-safety-comment` implied by `-D warnings`
+ = help: to override `-D warnings` add `#[allow(clippy::unnecessary_safety_comment)]`
error: static item has unnecessary safety comment
- --> $DIR/unnecessary_safety_comment.rs:8:5
+ --> $DIR/unnecessary_safety_comment.rs:9:5
|
LL | static STATIC: u32 = 0;
| ^^^^^^^^^^^^^^^^^^^^^^^
|
help: consider removing the safety comment
- --> $DIR/unnecessary_safety_comment.rs:7:5
+ --> $DIR/unnecessary_safety_comment.rs:8:5
|
LL | // SAFETY:
| ^^^^^^^^^^
error: struct has unnecessary safety comment
- --> $DIR/unnecessary_safety_comment.rs:10:5
+ --> $DIR/unnecessary_safety_comment.rs:12:5
|
LL | struct Struct;
| ^^^^^^^^^^^^^^
|
help: consider removing the safety comment
- --> $DIR/unnecessary_safety_comment.rs:9:5
+ --> $DIR/unnecessary_safety_comment.rs:11:5
|
LL | // SAFETY:
| ^^^^^^^^^^
error: enum has unnecessary safety comment
- --> $DIR/unnecessary_safety_comment.rs:12:5
+ --> $DIR/unnecessary_safety_comment.rs:15:5
|
LL | enum Enum {}
| ^^^^^^^^^^^^
|
help: consider removing the safety comment
- --> $DIR/unnecessary_safety_comment.rs:11:5
+ --> $DIR/unnecessary_safety_comment.rs:14:5
|
LL | // SAFETY:
| ^^^^^^^^^^
error: module has unnecessary safety comment
- --> $DIR/unnecessary_safety_comment.rs:14:5
+ --> $DIR/unnecessary_safety_comment.rs:18:5
|
LL | mod module {}
| ^^^^^^^^^^^^^
|
help: consider removing the safety comment
- --> $DIR/unnecessary_safety_comment.rs:13:5
+ --> $DIR/unnecessary_safety_comment.rs:17:5
|
LL | // SAFETY:
| ^^^^^^^^^^
error: impl has unnecessary safety comment
- --> $DIR/unnecessary_safety_comment.rs:33:13
+ --> $DIR/unnecessary_safety_comment.rs:38:13
|
LL | impl T for $t {}
| ^^^^^^^^^^^^^^^^
@@ -69,44 +70,44 @@ LL | with_safety_comment!(i32);
| ------------------------- in this macro invocation
|
help: consider removing the safety comment
- --> $DIR/unnecessary_safety_comment.rs:32:13
+ --> $DIR/unnecessary_safety_comment.rs:37:13
|
LL | // Safety: unnecessary
| ^^^^^^^^^^^^^^^^^^^^^^
= note: this error originates in the macro `with_safety_comment` (in Nightly builds, run with -Z macro-backtrace for more info)
error: expression has unnecessary safety comment
- --> $DIR/unnecessary_safety_comment.rs:48:5
+ --> $DIR/unnecessary_safety_comment.rs:55:5
|
LL | 24
| ^^
|
help: consider removing the safety comment
- --> $DIR/unnecessary_safety_comment.rs:47:5
+ --> $DIR/unnecessary_safety_comment.rs:54:5
|
LL | // SAFETY: unnecessary
| ^^^^^^^^^^^^^^^^^^^^^^
error: statement has unnecessary safety comment
- --> $DIR/unnecessary_safety_comment.rs:42:5
+ --> $DIR/unnecessary_safety_comment.rs:47:5
|
LL | let num = 42;
| ^^^^^^^^^^^^^
|
help: consider removing the safety comment
- --> $DIR/unnecessary_safety_comment.rs:41:5
+ --> $DIR/unnecessary_safety_comment.rs:46:5
|
LL | // SAFETY: unnecessary
| ^^^^^^^^^^^^^^^^^^^^^^
error: statement has unnecessary safety comment
- --> $DIR/unnecessary_safety_comment.rs:45:5
+ --> $DIR/unnecessary_safety_comment.rs:51:5
|
LL | if num > 24 {}
| ^^^^^^^^^^^^^^
|
help: consider removing the safety comment
- --> $DIR/unnecessary_safety_comment.rs:44:5
+ --> $DIR/unnecessary_safety_comment.rs:50:5
|
LL | // SAFETY: unnecessary
| ^^^^^^^^^^^^^^^^^^^^^^