fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.7 KiB52 linesraw
1error: safe function's docs have unnecessary `# Safety` section
2  --> $DIR/unnecessary_unsafety_doc.rs:19:1
3   |
4LL | pub fn apocalypse(universe: &mut ()) {
5   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6   |
7   = note: `-D clippy::unnecessary-safety-doc` implied by `-D warnings`
8   = help: to override `-D warnings` add `#[allow(clippy::unnecessary_safety_doc)]`
9
10error: safe function's docs have unnecessary `# Safety` section
11  --> $DIR/unnecessary_unsafety_doc.rs:45:5
12   |
13LL |     pub fn republished() {
14   |     ^^^^^^^^^^^^^^^^^^^^
15
16error: safe function's docs have unnecessary `# Safety` section
17  --> $DIR/unnecessary_unsafety_doc.rs:58:5
18   |
19LL |     fn documented(self);
20   |     ^^^^^^^^^^^^^^^^^^^^
21
22error: docs for safe trait have unnecessary `# Safety` section
23  --> $DIR/unnecessary_unsafety_doc.rs:68:1
24   |
25LL | pub trait DocumentedSafeTrait {
26   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
27
28error: safe function's docs have unnecessary `# Safety` section
29  --> $DIR/unnecessary_unsafety_doc.rs:96:5
30   |
31LL |     pub fn documented() -> Self {
32   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
33
34error: safe function's docs have unnecessary `# Safety` section
35  --> $DIR/unnecessary_unsafety_doc.rs:123:9
36   |
37LL |         pub fn drive() {
38   |         ^^^^^^^^^^^^^^
39...
40LL | very_safe!();
41   | ------------ in this macro invocation
42   |
43   = note: this error originates in the macro `very_safe` (in Nightly builds, run with -Z macro-backtrace for more info)
44
45error: docs for safe trait have unnecessary `# Safety` section
46  --> $DIR/unnecessary_unsafety_doc.rs:151:1
47   |
48LL | pub trait DocumentedSafeTraitWithImplementationHeader {
49   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
50
51error: aborting due to 7 previous errors
52