Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

ices/99777-3.rs: fixed with errors #1374

Merged
merged 1 commit into from
Aug 5, 2022
Merged

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Aug 5, 2022

Issue: rust-lang/rust#99777

fn main() {
  match () {
    #[doc(alias = "foo")]
    _ => {}
  }
}
=== stdout ===
=== stderr ===
warning: unused doc comment
 --> /home/runner/work/glacier/glacier/ices/99777-3.rs:3:5
  |
3 |     #[doc(alias = "foo")]
  |     ^^^^^^^^^^^^^^^^^^^^^
4 |     _ => {}
  |     ------- rustdoc does not generate documentation for match arms
  |
  = note: `#[warn(unused_doc_comments)]` on by default
  = help: use `//` for a plain comment

error: `#[doc(alias = "...")]` isn't allowed on match arm
 --> /home/runner/work/glacier/glacier/ices/99777-3.rs:3:11
  |
3 |     #[doc(alias = "foo")]
  |           ^^^^^^^^^^^^^

error: aborting due to previous error; 1 warning emitted

==============

=== stdout ===
=== stderr ===
warning: unused doc comment
 --> /home/runner/work/glacier/glacier/ices/99777-3.rs:3:5
  |
3 |     #[doc(alias = "foo")]
  |     ^^^^^^^^^^^^^^^^^^^^^
4 |     _ => {}
  |     ------- rustdoc does not generate documentation for match arms
  |
  = note: `#[warn(unused_doc_comments)]` on by default
  = help: use `//` for a plain comment

error: `#[doc(alias = "...")]` isn't allowed on match arm
 --> /home/runner/work/glacier/glacier/ices/99777-3.rs:3:11
  |
3 |     #[doc(alias = "foo")]
  |           ^^^^^^^^^^^^^

error: aborting due to previous error; 1 warning emitted

==============
@JohnTitor JohnTitor merged commit dfb66fc into master Aug 5, 2022
@JohnTitor JohnTitor deleted the autofix/ices/99777-3.rs branch August 5, 2022 21:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants