Rollup merge of #127557 - linyihai:issue-126694, r=compiler-errors

Add a label to point to the lacking macro name definition

Fixes https://github.com/rust-lang/rust/issues/126694, but adopts the suggestion from https://github.com/rust-lang/rust/issues/118295

```
 --> src/main.rs:1:14
  |
1 | macro_rules! {
  |            ^ put a macro name here
```
This commit is contained in:
Trevor Gross 2024-07-26 02:20:30 -04:00 committed by GitHub
commit c5788d618e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 30 additions and 8 deletions

View file

@ -669,7 +669,7 @@ pub(crate) struct MacroSuggMovePosition {
#[note(resolve_missing_macro_rules_name)]
pub(crate) struct MaybeMissingMacroRulesName {
#[primary_span]
pub(crate) span: Span,
pub(crate) spans: MultiSpan,
}
#[derive(Subdiagnostic)]