diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-08-03 22:29:31 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-03 22:29:31 +0200 |
| commit | f8e6617239a8412a983c9a6b6af79d0eff3cdce0 (patch) | |
| tree | 25158d9018976a994d5250be75c1519bd3228647 /src/test/rustdoc-ui | |
| parent | 02fcec2ac8d8be83103b9a954adc79dc6271e0e9 (diff) | |
| parent | 2be00947bfbb7e31cd6a5b6cf1e9e2f0bc1c4da6 (diff) | |
| download | rust-f8e6617239a8412a983c9a6b6af79d0eff3cdce0.tar.gz rust-f8e6617239a8412a983c9a6b6af79d0eff3cdce0.zip | |
Rollup merge of #100029 - hdelc:master, r=cjgillot
Prevent ICE for `doc_alias` on match arm, statement, expression Fixes #99777. This is a pretty minimal fix that should be safe, since rustdoc doesn't generate documentation for match arms, statements, or expressions. I mentioned in the linked issue that the `doc_alias` target checking should probably be improved to avoid future ICEs, but as a new contributor, I'm not confident enough with the HIR types to make a larger change.
Diffstat (limited to 'src/test/rustdoc-ui')
| -rw-r--r-- | src/test/rustdoc-ui/check-doc-alias-attr-location.stderr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/rustdoc-ui/check-doc-alias-attr-location.stderr b/src/test/rustdoc-ui/check-doc-alias-attr-location.stderr index 175626f49dc..85c9516236c 100644 --- a/src/test/rustdoc-ui/check-doc-alias-attr-location.stderr +++ b/src/test/rustdoc-ui/check-doc-alias-attr-location.stderr @@ -1,4 +1,4 @@ -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:7:7 | LL | #[doc(alias = "foo")] |
