Skip to content

Commit f7d5b7a

Browse files
committed
Bless rustdoc tests.
1 parent c544f10 commit f7d5b7a

File tree

4 files changed

+0
-30
lines changed

4 files changed

+0
-30
lines changed

src/test/rustdoc-ui/check-fail.stderr

-5
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,6 @@ LL | | //! let x = 12;
3232
LL | | //! ```
3333
| |_______^
3434
|
35-
note: the lint level is defined here
36-
--> $DIR/check-fail.rs:4:9
37-
|
38-
LL | #![deny(rustdoc::all)]
39-
| ^^^^^^^^^^^^
4035
= note: `#[deny(rustdoc::invalid_codeblock_attributes)]` implied by `#[deny(rustdoc::all)]`
4136
= help: the code block will either not be tested if not marked as a rust one or the code will be wrapped inside a main function
4237

src/test/rustdoc-ui/check.stderr

-5
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,6 @@ LL | |
4343
LL | | pub fn foo() {}
4444
| |_______________^
4545
|
46-
note: the lint level is defined here
47-
--> $DIR/check.rs:8:9
48-
|
49-
LL | #![warn(rustdoc::all)]
50-
| ^^^^^^^^^^^^
5146
= note: `#[warn(rustdoc::missing_doc_code_examples)]` implied by `#[warn(rustdoc::all)]`
5247

5348
warning: missing code example in this documentation

src/test/rustdoc-ui/display-output.stdout

-5
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@ warning: function is never used: `foo`
3030
LL | fn foo(x: &dyn std::fmt::Display) {}
3131
| ^^^
3232
|
33-
note: the lint level is defined here
34-
--> $DIR/display-output.rs:9:9
35-
|
36-
LL | #![warn(unused)]
37-
| ^^^^^^
3833
= note: `#[warn(dead_code)]` implied by `#[warn(unused)]`
3934

4035
warning: 3 warnings emitted

src/test/rustdoc-ui/lint-group.stderr

-15
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@ LL | | /// println!("sup");
2121
LL | | /// ```
2222
| |_______^
2323
|
24-
note: the lint level is defined here
25-
--> $DIR/lint-group.rs:7:9
26-
|
27-
LL | #![deny(rustdoc::all)]
28-
| ^^^^^^^^^^^^
2924
= note: `#[deny(rustdoc::private_doc_tests)]` implied by `#[deny(rustdoc::all)]`
3025

3126
error: missing code example in this documentation
@@ -40,11 +35,6 @@ error: unresolved link to `error`
4035
LL | /// what up, let's make an [error]
4136
| ^^^^^ no item named `error` in scope
4237
|
43-
note: the lint level is defined here
44-
--> $DIR/lint-group.rs:7:9
45-
|
46-
LL | #![deny(rustdoc::all)]
47-
| ^^^^^^^^^^^^
4838
= note: `#[deny(rustdoc::broken_intra_doc_links)]` implied by `#[deny(rustdoc::all)]`
4939
= help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
5040

@@ -54,11 +44,6 @@ error: unclosed HTML tag `unknown`
5444
LL | /// <unknown>
5545
| ^^^^^^^^^
5646
|
57-
note: the lint level is defined here
58-
--> $DIR/lint-group.rs:7:9
59-
|
60-
LL | #![deny(rustdoc::all)]
61-
| ^^^^^^^^^^^^
6247
= note: `#[deny(rustdoc::invalid_html_tags)]` implied by `#[deny(rustdoc::all)]`
6348

6449
error: aborting due to 5 previous errors

0 commit comments

Comments
 (0)