fork/rust

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

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

master
3.1 KiB115 linesraw
1error: this is an outer doc comment and does not apply to the parent module or crate
2  --> $DIR/suspicious_doc_comments.rs:5:1
3   |
4LL | ///! Fake module documentation.
5   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6   |
7   = note: `-D clippy::suspicious-doc-comments` implied by `-D warnings`
8   = help: to override `-D warnings` add `#[allow(clippy::suspicious_doc_comments)]`
9help: use an inner doc comment to document the parent module or crate
10   |
11LL | //! Fake module documentation.
12   |
13
14error: this is an outer doc comment and does not apply to the parent module or crate
15  --> $DIR/suspicious_doc_comments.rs:9:5
16   |
17LL |     ///! This module contains useful functions.
18   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
19   |
20help: use an inner doc comment to document the parent module or crate
21   |
22LL |     //! This module contains useful functions.
23   |
24
25error: this is an outer doc comment and does not apply to the parent module or crate
26  --> $DIR/suspicious_doc_comments.rs:21:5
27   |
28LL | /     /**! This module contains useful functions.
29LL | |      */
30   | |_______^
31   |
32help: use an inner doc comment to document the parent module or crate
33   |
34LL ~     /*! This module contains useful functions.
35LL +      */
36   |
37
38error: this is an outer doc comment and does not apply to the parent module or crate
39  --> $DIR/suspicious_doc_comments.rs:35:5
40   |
41LL | /     ///! This module
42LL | |     ///! contains
43LL | |     ///! useful functions.
44   | |__________________________^
45   |
46help: use an inner doc comment to document the parent module or crate
47   |
48LL ~     //! This module
49LL ~     //! contains
50LL ~     //! useful functions.
51   |
52
53error: this is an outer doc comment and does not apply to the parent module or crate
54  --> $DIR/suspicious_doc_comments.rs:43:5
55   |
56LL | /     ///! a
57LL | |     ///! b
58   | |__________^
59   |
60help: use an inner doc comment to document the parent module or crate
61   |
62LL ~     //! a
63LL ~     //! b
64   |
65
66error: this is an outer doc comment and does not apply to the parent module or crate
67  --> $DIR/suspicious_doc_comments.rs:51:5
68   |
69LL |     ///! a
70   |     ^^^^^^
71   |
72help: use an inner doc comment to document the parent module or crate
73   |
74LL |     //! a
75   |
76
77error: this is an outer doc comment and does not apply to the parent module or crate
78  --> $DIR/suspicious_doc_comments.rs:57:5
79   |
80LL | /     ///! a
81LL | |
82LL | |     ///! b
83   | |__________^
84   |
85help: use an inner doc comment to document the parent module or crate
86   |
87LL ~     //! a
88LL | 
89LL ~     //! b
90   |
91
92error: this is an outer doc comment and does not apply to the parent module or crate
93  --> $DIR/suspicious_doc_comments.rs:69:5
94   |
95LL |     ///! Very cool macro
96   |     ^^^^^^^^^^^^^^^^^^^^
97   |
98help: use an inner doc comment to document the parent module or crate
99   |
100LL |     //! Very cool macro
101   |
102
103error: this is an outer doc comment and does not apply to the parent module or crate
104  --> $DIR/suspicious_doc_comments.rs:76:5
105   |
106LL |     ///! Huh.
107   |     ^^^^^^^^^
108   |
109help: use an inner doc comment to document the parent module or crate
110   |
111LL |     //! Huh.
112   |
113
114error: aborting due to 9 previous errors
115