]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/doc.stderr
Auto merge of #68717 - petrochenkov:stabexpat, r=varkor
[rust.git] / tests / ui / doc.stderr
index d267331fb688cf3a85f3189987b2a3694bd63e0a..ae9bb394cb9ac726bcca6129a5e7bb1c3349741d 100644 (file)
-error: you should put `DOC_MARKDOWN` between ticks in the documentation
- --> $DIR/doc.rs:1:29
-  |
-1 | //! This file tests for the DOC_MARKDOWN lint
-  |                             ^^^^^^^^^^^^
-  |
-note: lint level defined here
- --> $DIR/doc.rs:6:9
-  |
-6 | #![deny(doc_markdown)]
-  |         ^^^^^^^^^^^^
-
 error: you should put `foo_bar` between ticks in the documentation
- --> $DIR/doc.rs:8:9
-  |
-8 | /// The foo_bar function does _nothing_. See also foo::bar. (note the dot there)
-  |         ^^^^^^^
+  --> $DIR/doc.rs:8:9
+   |
+LL | /// The foo_bar function does _nothing_. See also foo::bar. (note the dot there)
+   |         ^^^^^^^
+   |
+   = note: `-D clippy::doc-markdown` implied by `-D warnings`
 
 error: you should put `foo::bar` between ticks in the documentation
- --> $DIR/doc.rs:8:51
-  |
-8 | /// The foo_bar function does _nothing_. See also foo::bar. (note the dot there)
-  |                                                   ^^^^^^^^
 --> $DIR/doc.rs:8:51
+   |
+LL | /// The foo_bar function does _nothing_. See also foo::bar. (note the dot there)
+   |                                                   ^^^^^^^^
 
 error: you should put `Foo::some_fun` between ticks in the documentation
- --> $DIR/doc.rs:9:84
-  |
-9 | /// Markdown is _weird_. I mean _really weird_.  This /_ is ok. So is `_`. But not Foo::some_fun
-                                                                                     ^^^^^^^^^^^^^
+  --> $DIR/doc.rs:9:83
+   |
+LL | /// Markdown is _weird_. I mean _really weird_. This /_ is ok. So is `_`. But not Foo::some_fun
+   |                                                                                   ^^^^^^^^^^^^^
 
-error: you should put `is::a::global:path` between ticks in the documentation
-  --> $DIR/doc.rs:11:13
+error: you should put `a::global:path` between ticks in the documentation
+  --> $DIR/doc.rs:11:15
    |
-11 | /// Here be ::is::a::global:path.
-   |             ^^^^^^^^^^^^^^^^^^^^
+LL | /// Here be ::a::global:path.
+   |               ^^^^^^^^^^^^^^
 
 error: you should put `NotInCodeBlock` between ticks in the documentation
-  --> $DIR/doc.rs:12:21
+  --> $DIR/doc.rs:12:22
    |
-12 | /// That's not code ~NotInCodeBlock~.
-   |                     ^^^^^^^^^^^^^^^
+LL | /// That's not code ~NotInCodeBlock~.
+   |                      ^^^^^^^^^^^^^^
 
 error: you should put `be_sure_we_got_to_the_end_of_it` between ticks in the documentation
   --> $DIR/doc.rs:13:5
    |
-13 | /// be_sure_we_got_to_the_end_of_it
+LL | /// be_sure_we_got_to_the_end_of_it
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 error: you should put `be_sure_we_got_to_the_end_of_it` between ticks in the documentation
   --> $DIR/doc.rs:27:5
    |
-27 | /// be_sure_we_got_to_the_end_of_it
+LL | /// be_sure_we_got_to_the_end_of_it
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 error: you should put `be_sure_we_got_to_the_end_of_it` between ticks in the documentation
   --> $DIR/doc.rs:34:5
    |
-34 | /// be_sure_we_got_to_the_end_of_it
+LL | /// be_sure_we_got_to_the_end_of_it
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 error: you should put `be_sure_we_got_to_the_end_of_it` between ticks in the documentation
   --> $DIR/doc.rs:48:5
    |
-48 | /// be_sure_we_got_to_the_end_of_it
-   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-
-error: you should put `ß_foo` between ticks in the documentation
-  --> $DIR/doc.rs:57:5
-   |
-57 | /// ß_foo
-   |     ^^^^^
-
-error: you should put `ℝ_foo` between ticks in the documentation
-  --> $DIR/doc.rs:58:5
-   |
-58 | /// ℝ_foo
-   |     ^^^^^
-
-error: you should put `foo_ß` between ticks in the documentation
-  --> $DIR/doc.rs:61:5
-   |
-61 | /// foo_ß
-   |     ^^^^^
-
-error: you should put `foo_ℝ` between ticks in the documentation
-  --> $DIR/doc.rs:62:5
-   |
-62 | /// foo_ℝ
-   |     ^^^^^
-
-error: you should put `be_sure_we_got_to_the_end_of_it` between ticks in the documentation
-  --> $DIR/doc.rs:77:5
-   |
-77 | /// be_sure_we_got_to_the_end_of_it
+LL | /// be_sure_we_got_to_the_end_of_it
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 error: you should put `link_with_underscores` between ticks in the documentation
-  --> $DIR/doc.rs:81:22
+  --> $DIR/doc.rs:52:22
    |
-81 | /// This test has [a link_with_underscores][chunked-example] inside it. See #823.
+LL | /// This test has [a link_with_underscores][chunked-example] inside it. See #823.
    |                      ^^^^^^^^^^^^^^^^^^^^^
 
 error: you should put `inline_link2` between ticks in the documentation
-  --> $DIR/doc.rs:84:21
+  --> $DIR/doc.rs:55:21
    |
-84 | /// It can also be [inline_link2].
+LL | /// It can also be [inline_link2].
    |                     ^^^^^^^^^^^^
 
 error: you should put `be_sure_we_got_to_the_end_of_it` between ticks in the documentation
-  --> $DIR/doc.rs:94:5
+  --> $DIR/doc.rs:65:5
    |
-94 | /// be_sure_we_got_to_the_end_of_it
+LL | /// be_sure_we_got_to_the_end_of_it
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 error: you should put `CamelCaseThing` between ticks in the documentation
-   --> $DIR/doc.rs:107:22
-    |
-107 | /// Not a title #897 CamelCaseThing
-    |                      ^^^^^^^^^^^^^^
+  --> $DIR/doc.rs:73:8
+   |
+LL | /// ## CamelCaseThing
+   |        ^^^^^^^^^^^^^^
+
+error: you should put `CamelCaseThing` between ticks in the documentation
+  --> $DIR/doc.rs:76:7
+   |
+LL | /// # CamelCaseThing
+   |       ^^^^^^^^^^^^^^
+
+error: you should put `CamelCaseThing` between ticks in the documentation
+  --> $DIR/doc.rs:78:22
+   |
+LL | /// Not a title #897 CamelCaseThing
+   |                      ^^^^^^^^^^^^^^
 
 error: you should put `be_sure_we_got_to_the_end_of_it` between ticks in the documentation
-   --> $DIR/doc.rs:108:5
-    |
-108 | /// be_sure_we_got_to_the_end_of_it
-    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+  --> $DIR/doc.rs:79:5
+   |
+LL | /// be_sure_we_got_to_the_end_of_it
+   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 error: you should put `be_sure_we_got_to_the_end_of_it` between ticks in the documentation
-   --> $DIR/doc.rs:115:5
-    |
-115 | /// be_sure_we_got_to_the_end_of_it
-    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+  --> $DIR/doc.rs:86:5
+   |
+LL | /// be_sure_we_got_to_the_end_of_it
+   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 error: you should put `be_sure_we_got_to_the_end_of_it` between ticks in the documentation
-   --> $DIR/doc.rs:128:5
-    |
-128 | /// be_sure_we_got_to_the_end_of_it
-    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+  --> $DIR/doc.rs:99:5
+   |
+LL | /// be_sure_we_got_to_the_end_of_it
+   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 error: you should put `FooBar` between ticks in the documentation
-   --> $DIR/doc.rs:139:42
-    |
-139 | /** E.g. serialization of an empty list: FooBar
-    |                                          ^^^^^^
+  --> $DIR/doc.rs:110:43
+   |
+LL | /** E.g., serialization of an empty list: FooBar
+                                             ^^^^^^
 
 error: you should put `BarQuz` between ticks in the documentation
-   --> $DIR/doc.rs:144:5
-    |
-144 | And BarQuz too.
-    |     ^^^^^^
+  --> $DIR/doc.rs:115:5
+   |
+LL | And BarQuz too.
+   |     ^^^^^^
 
 error: you should put `be_sure_we_got_to_the_end_of_it` between ticks in the documentation
-   --> $DIR/doc.rs:145:1
-    |
-145 | be_sure_we_got_to_the_end_of_it
-    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+  --> $DIR/doc.rs:116:1
+   |
+LL | be_sure_we_got_to_the_end_of_it
+   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 error: you should put `FooBar` between ticks in the documentation
-   --> $DIR/doc.rs:150:42
-    |
-150 | /** E.g. serialization of an empty list: FooBar
-    |                                          ^^^^^^
+  --> $DIR/doc.rs:121:43
+   |
+LL | /** E.g., serialization of an empty list: FooBar
+                                             ^^^^^^
 
 error: you should put `BarQuz` between ticks in the documentation
-   --> $DIR/doc.rs:155:5
-    |
-155 | And BarQuz too.
-    |     ^^^^^^
+  --> $DIR/doc.rs:126:5
+   |
+LL | And BarQuz too.
+   |     ^^^^^^
 
 error: you should put `be_sure_we_got_to_the_end_of_it` between ticks in the documentation
-   --> $DIR/doc.rs:156:1
-    |
-156 | be_sure_we_got_to_the_end_of_it
-    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+  --> $DIR/doc.rs:127:1
+   |
+LL | be_sure_we_got_to_the_end_of_it
+   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 error: you should put `be_sure_we_got_to_the_end_of_it` between ticks in the documentation
-   --> $DIR/doc.rs:167:5
-    |
-167 | /// be_sure_we_got_to_the_end_of_it
-    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+  --> $DIR/doc.rs:138:5
+   |
+LL | /// be_sure_we_got_to_the_end_of_it
+   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+error: you should put bare URLs between `<`/`>` or make a proper Markdown link
+  --> $DIR/doc.rs:165:13
+   |
+LL | /// Not ok: http://www.unicode.org
+   |             ^^^^^^^^^^^^^^^^^^^^^^
+
+error: you should put bare URLs between `<`/`>` or make a proper Markdown link
+  --> $DIR/doc.rs:166:13
+   |
+LL | /// Not ok: https://www.unicode.org
+   |             ^^^^^^^^^^^^^^^^^^^^^^^
+
+error: you should put bare URLs between `<`/`>` or make a proper Markdown link
+  --> $DIR/doc.rs:167:13
+   |
+LL | /// Not ok: http://www.unicode.org/
+   |             ^^^^^^^^^^^^^^^^^^^^^^
+
+error: you should put bare URLs between `<`/`>` or make a proper Markdown link
+  --> $DIR/doc.rs:168:13
+   |
+LL | /// Not ok: http://www.unicode.org/reports/tr9/#Reordering_Resolved_Levels
+   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+error: you should put `mycrate::Collection` between ticks in the documentation
+  --> $DIR/doc.rs:174:22
+   |
+LL | /// An iterator over mycrate::Collection's values.
+   |                      ^^^^^^^^^^^^^^^^^^^
 
-error: aborting due to 29 previous errors
+error: aborting due to 30 previous errors