diff options
author | clubby789 <jamie@hill-daniel.co.uk> | 2023-04-25 18:42:42 +0100 |
---|---|---|
committer | clubby789 <jamie@hill-daniel.co.uk> | 2023-04-26 11:40:21 +0100 |
commit | 6a41cfe0958cce1fa97ebc173d591129add78f79 (patch) | |
tree | 20fc449b0837b40e9503ed9f683aed799b0bc4a2 /tests/ui | |
parent | 20d90b14ffe8c667757a70c08e2d9736ee89f493 (diff) | |
download | rust-6a41cfe0958cce1fa97ebc173d591129add78f79.tar.gz |
Migrate `rustc_passes` to translatable diagnostics
Diffstat (limited to 'tests/ui')
-rw-r--r-- | tests/ui/attributes/invalid-doc-attr.rs | 2 | ||||
-rw-r--r-- | tests/ui/attributes/invalid-doc-attr.stderr | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/attributes/invalid-doc-attr.rs b/tests/ui/attributes/invalid-doc-attr.rs index de004b41e27..c231e43b35c 100644 --- a/tests/ui/attributes/invalid-doc-attr.rs +++ b/tests/ui/attributes/invalid-doc-attr.rs @@ -5,7 +5,7 @@ //~^ ERROR can only be applied at the crate level //~| WARN is being phased out //~| HELP to apply to the crate, use an inner attribute -//~| SUGGESTION #![doc(test(no_crate_inject))] +//~| SUGGESTION ! #[doc(inline)] //~^ ERROR can only be applied to a `use` item //~| WARN is being phased out diff --git a/tests/ui/attributes/invalid-doc-attr.stderr b/tests/ui/attributes/invalid-doc-attr.stderr index 3c66e587b47..b23b8ded867 100644 --- a/tests/ui/attributes/invalid-doc-attr.stderr +++ b/tests/ui/attributes/invalid-doc-attr.stderr @@ -16,7 +16,7 @@ LL | #![deny(warnings)] help: to apply to the crate, use an inner attribute | LL | #![doc(test(no_crate_inject))] - | + | + error: this attribute can only be applied to a `use` item --> $DIR/invalid-doc-attr.rs:9:7 |