about summary refs log tree commit diff
path: root/src/test/ui/rustdoc
diff options
context:
space:
mode:
authorhdelc <hdelc02@gmail.com>2022-08-02 23:11:22 -0400
committerhdelc <hdelc02@gmail.com>2022-08-02 23:11:22 -0400
commit2be00947bfbb7e31cd6a5b6cf1e9e2f0bc1c4da6 (patch)
tree2d42fe432758a3d2e64b1d3c93b7f9259d18c16b /src/test/ui/rustdoc
parent1e8abe7da2ea02af86e840716e241ca0fec653f2 (diff)
downloadrust-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.stderr2
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")]