Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
c410-f3r committed Dec 26, 2023
1 parent 7695bdf commit aed2b0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_expand/src/mbe/transcribe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ fn transcribe_metavar_expr<'a>(
if let Nonterminal::NtIdent(nt_ident, _) = &nt.0 {
nt_ident.to_string()
} else {
return Err(cx.struct_span_err(
return Err(cx.sess.struct_span_err(
span,
"`${concat(..)}` currently only accepts identifiers as parameters",
));
Expand Down

0 comments on commit aed2b0e

Please sign in to comment.