This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
compiler/rustc_expand/src/mbe Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -217,10 +217,10 @@ pub(super) fn transcribe<'a>(
217217 }
218218
219219 // Replace the meta-var with the matched token tree from the invocation.
220- mbe:: TokenTree :: MetaVar ( mut sp, mut orignal_ident ) => {
220+ mbe:: TokenTree :: MetaVar ( mut sp, mut original_ident ) => {
221221 // Find the matched nonterminal from the macro invocation, and use it to replace
222222 // the meta-var.
223- let ident = MacroRulesNormalizedIdent :: new ( orignal_ident ) ;
223+ let ident = MacroRulesNormalizedIdent :: new ( original_ident ) ;
224224 if let Some ( cur_matched) = lookup_cur_matched ( ident, interp, & repeats) {
225225 match cur_matched {
226226 MatchedTokenTree ( ref tt) => {
@@ -249,9 +249,9 @@ pub(super) fn transcribe<'a>(
249249 // If we aren't able to match the meta-var, we push it back into the result but
250250 // with modified syntax context. (I believe this supports nested macros).
251251 marker. visit_span ( & mut sp) ;
252- marker. visit_ident ( & mut orignal_ident ) ;
252+ marker. visit_ident ( & mut original_ident ) ;
253253 result. push ( TokenTree :: token ( token:: Dollar , sp) . into ( ) ) ;
254- result. push ( TokenTree :: Token ( Token :: from_ast_ident ( orignal_ident ) ) . into ( ) ) ;
254+ result. push ( TokenTree :: Token ( Token :: from_ast_ident ( original_ident ) ) . into ( ) ) ;
255255 }
256256 }
257257
You can’t perform that action at this time.
0 commit comments