Skip to content

Commit 4448b27

Browse files
Samy KacimiAlexander Regueiro
Samy Kacimi
authored and
Alexander Regueiro
committed
bless rustdoc-ui and ui tests
1 parent 4c91dc2 commit 4448b27

8 files changed

+10
-10
lines changed

src/test/rustdoc-ui/intra-links-warning-crlf.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ warning: `[error]` cannot be resolved, ignoring it...
44
LL | /// [error]
55
| ^^^^^ cannot be resolved, ignoring
66
|
7-
= note: #[warn(intra_doc_link_resolution_failure)] on by default
7+
= note: `#[warn(intra_doc_link_resolution_failure)]` on by default
88
= help: to escape `[` and `]` characters, just add '\' before them like `\[` or `\]`
99

1010
warning: `[error1]` cannot be resolved, ignoring it...

src/test/rustdoc-ui/intra-links-warning.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ warning: `[Foo::baz]` cannot be resolved, ignoring it...
44
LL | //! Test with [Foo::baz], [Bar::foo], ...
55
| ^^^^^^^^ cannot be resolved, ignoring
66
|
7-
= note: #[warn(intra_doc_link_resolution_failure)] on by default
7+
= note: `#[warn(intra_doc_link_resolution_failure)]` on by default
88
= help: to escape `[` and `]` characters, just add '\' before them like `\[` or `\]`
99

1010
warning: `[Bar::foo]` cannot be resolved, ignoring it...

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ note: lint level defined here
1313
|
1414
LL | #![deny(rustdoc)]
1515
| ^^^^^^^
16-
= note: #[deny(private_doc_tests)] implied by #[deny(rustdoc)]
16+
= note: `#[deny(private_doc_tests)]` implied by `#[deny(rustdoc)]`
1717

1818
error: `[error]` cannot be resolved, ignoring it...
1919
--> $DIR/lint-group.rs:9:29
@@ -26,7 +26,7 @@ note: lint level defined here
2626
|
2727
LL | #![deny(rustdoc)]
2828
| ^^^^^^^
29-
= note: #[deny(intra_doc_link_resolution_failure)] implied by #[deny(rustdoc)]
29+
= note: `#[deny(intra_doc_link_resolution_failure)]` implied by `#[deny(rustdoc)]`
3030
= help: to escape `[` and `]` characters, just add '\' before them like `\[` or `\]`
3131

3232
error: Missing code example in this documentation
@@ -40,7 +40,7 @@ note: lint level defined here
4040
|
4141
LL | #![deny(rustdoc)]
4242
| ^^^^^^^
43-
= note: #[deny(missing_doc_code_examples)] implied by #[deny(rustdoc)]
43+
= note: `#[deny(missing_doc_code_examples)]` implied by `#[deny(rustdoc)]`
4444

4545
error: aborting due to 3 previous errors
4646

src/test/ui/async-await/feature-async-closure.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LL | let _ = async || {};
55
| ^^^^^
66
|
77
= note: for more information, see https://github.com/rust-lang/rust/issues/62290
8-
= help: add #![feature(async_closure)] to the crate attributes to enable
8+
= help: add `#![feature(async_closure)]` to the crate attributes to enable
99

1010
error: aborting due to previous error
1111

src/test/ui/crate-name-mismatch.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// compile-flags: --crate-name foo
22

33
#![crate_name = "bar"]
4-
//~^ ERROR: --crate-name and `#[crate_name]` are required to match, but `foo` != `bar`
4+
//~^ ERROR: `--crate-name` and `#[crate_name]` are required to match, but `foo` != `bar`
55

66
fn main() {}

src/test/ui/crate-name-mismatch.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error: --crate-name and `#[crate_name]` are required to match, but `foo` != `bar`
1+
error: `--crate-name` and `#[crate_name]` are required to match, but `foo` != `bar`
22
--> $DIR/crate-name-mismatch.rs:3:1
33
|
44
LL | #![crate_name = "bar"]
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#[main]
2-
fn foo() {} //~ ERROR: declaration of a nonstandard `#[main]` function may change over time
2+
fn foo() {} //~ ERROR: declaration of a non-standard `#[main]` function may change over time

src/test/ui/feature-gates/feature-gate-main.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0658]: declaration of a nonstandard `#[main]` function may change over time, for now a top-level `fn main()` is required
1+
error[E0658]: declaration of a non-standard `#[main]` function may change over time, for now a top-level `fn main()` is required
22
--> $DIR/feature-gate-main.rs:2:1
33
|
44
LL | fn foo() {}

0 commit comments

Comments
 (0)