diff options
| author | hdelc <hdelc02@gmail.com> | 2022-08-02 23:11:22 -0400 |
|---|---|---|
| committer | hdelc <hdelc02@gmail.com> | 2022-08-02 23:11:22 -0400 |
| commit | 2be00947bfbb7e31cd6a5b6cf1e9e2f0bc1c4da6 (patch) | |
| tree | 2d42fe432758a3d2e64b1d3c93b7f9259d18c16b /src/test/ui/rustdoc | |
| parent | 1e8abe7da2ea02af86e840716e241ca0fec653f2 (diff) | |
| download | rust-2be00947bfbb7e31cd6a5b6cf1e9e2f0bc1c4da6.tar.gz rust-2be00947bfbb7e31cd6a5b6cf1e9e2f0bc1c4da6.zip | |
Add items to `DocAliasBadLocation` check error match arm
- Added `Impl`, `Closure`, ForeignMod` targets - `Target::name` changed for `Target::Impl` - Error output for `Target::ForeignMod` changed to "foreign module"
Diffstat (limited to 'src/test/ui/rustdoc')
| -rw-r--r-- | src/test/ui/rustdoc/check-doc-alias-attr-location.stderr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/rustdoc/check-doc-alias-attr-location.stderr b/src/test/ui/rustdoc/check-doc-alias-attr-location.stderr index 19b2dd1e084..23c93a4ed8b 100644 --- a/src/test/ui/rustdoc/check-doc-alias-attr-location.stderr +++ b/src/test/ui/rustdoc/check-doc-alias-attr-location.stderr @@ -4,7 +4,7 @@ error: allow, cfg, cfg_attr, deny, expect, forbid, and warn are the only allowed LL | fn foo(#[doc(alias = "qux")] _x: u32) -> Self::X { | ^^^^^^^^^^^^^^^^^^^^^ -error: `#[doc(alias = "...")]` isn't allowed on extern block +error: `#[doc(alias = "...")]` isn't allowed on foreign module --> $DIR/check-doc-alias-attr-location.rs:9:7 | LL | #[doc(alias = "foo")] |
