We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
TokenTree
1 parent b9e9be3 commit cd5de49Copy full SHA for cd5de49
compiler/rustc_expand/src/errors.rs
@@ -444,7 +444,7 @@ pub(crate) struct InvalidFragmentSpecifier {
444
#[primary_span]
445
pub span: Span,
446
pub fragment: Ident,
447
- pub help: String,
+ pub help: &'static str,
448
}
449
450
#[derive(Diagnostic)]
compiler/rustc_expand/src/mbe/quoted.rs
@@ -117,9 +117,9 @@ pub(super) fn parse(
117
sess.dcx().emit_err(errors::InvalidFragmentSpecifier {
118
span,
119
fragment,
120
- help: VALID_FRAGMENT_NAMES_MSG.into(),
+ help: VALID_FRAGMENT_NAMES_MSG,
121
});
122
- NonterminalKind::Ident
+ NonterminalKind::TT
123
124
result.push(TokenTree::MetaVarDecl { span, name: ident, kind });
125
} else {
0 commit comments