summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui-toml/private-doc-errors/doc_lints.stderr
blob: 85336748049881ba52a32a3adba18562c5aafae8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
error: safe function's docs have unnecessary `# Safety` section
  --> $DIR/doc_lints.rs:12:1
   |
LL | fn you_dont_see_me() {
   | ^^^^^^^^^^^^^^^^^^^^
   |
note: the lint level is defined here
  --> $DIR/doc_lints.rs:2:5
   |
LL |     clippy::unnecessary_safety_doc,
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: safe function's docs have unnecessary `# Safety` section
  --> $DIR/doc_lints.rs:23:5
   |
LL |     pub fn only_crate_wide_accessible() -> Result<(), ()> {
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: docs for function returning `Result` missing `# Errors` section
  --> $DIR/doc_lints.rs:23:5
   |
LL |     pub fn only_crate_wide_accessible() -> Result<(), ()> {
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
note: the lint level is defined here
  --> $DIR/doc_lints.rs:3:5
   |
LL |     clippy::missing_errors_doc,
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^

error: safe function's docs have unnecessary `# Safety` section
  --> $DIR/doc_lints.rs:38:5
   |
LL |     fn private(&self) {
   |     ^^^^^^^^^^^^^^^^^

error: docs for function which may panic missing `# Panics` section
  --> $DIR/doc_lints.rs:38:5
   |
LL |     fn private(&self) {
   |     ^^^^^^^^^^^^^^^^^
   |
note: first possible panic found here
  --> $DIR/doc_lints.rs:41:9
   |
LL |         panic!();
   |         ^^^^^^^^
note: the lint level is defined here
  --> $DIR/doc_lints.rs:4:5
   |
LL |     clippy::missing_panics_doc
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^

error: unsafe function's docs miss `# Safety` section
  --> $DIR/doc_lints.rs:49:9
   |
LL |         pub unsafe fn f() {}
   |         ^^^^^^^^^^^^^^^^^
   |
   = note: `-D clippy::missing-safety-doc` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::missing_safety_doc)]`

error: aborting due to 6 previous errors