diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-11-30 14:01:35 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-12-02 08:58:25 +1100 |
| commit | 57d6f840b9f6d586b7d2ee2549fbfec4e1088dc1 (patch) | |
| tree | 48ca4367210b8958b71fcb5e5395838ab3a5ba90 /compiler/rustc_expand/src/mbe/macro_rules.rs | |
| parent | c3628bb9705cf55022733ec82f070dc50d56bfad (diff) | |
| download | rust-57d6f840b9f6d586b7d2ee2549fbfec4e1088dc1.tar.gz rust-57d6f840b9f6d586b7d2ee2549fbfec4e1088dc1.zip | |
Rename `*note_without_error` as `*note`.
Because the variant name in `Level` is `Note`, and the `without_error` suffix is omitted in similar cases like `struct_allow` and `struct_help`.
Diffstat (limited to 'compiler/rustc_expand/src/mbe/macro_rules.rs')
| -rw-r--r-- | compiler/rustc_expand/src/mbe/macro_rules.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/compiler/rustc_expand/src/mbe/macro_rules.rs b/compiler/rustc_expand/src/mbe/macro_rules.rs index bc3f0ce5a70..1aa4e461e1b 100644 --- a/compiler/rustc_expand/src/mbe/macro_rules.rs +++ b/compiler/rustc_expand/src/mbe/macro_rules.rs @@ -648,10 +648,8 @@ fn is_empty_token_tree(sess: &ParseSess, seq: &mbe::SequenceRepetition) -> bool iter.next(); } let span = t.span.to(now.span); - sess.span_diagnostic.span_note_without_error( - span, - "doc comments are ignored in matcher position", - ); + sess.span_diagnostic + .span_note(span, "doc comments are ignored in matcher position"); } mbe::TokenTree::Sequence(_, sub_seq) if (sub_seq.kleene.op == mbe::KleeneOp::ZeroOrMore |
