File tree 1 file changed +4
-4
lines changed
compiler/rustc_expand/src/mbe
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>(
217
217
}
218
218
219
219
// 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 ) => {
221
221
// Find the matched nonterminal from the macro invocation, and use it to replace
222
222
// the meta-var.
223
- let ident = MacroRulesNormalizedIdent :: new ( orignal_ident ) ;
223
+ let ident = MacroRulesNormalizedIdent :: new ( original_ident ) ;
224
224
if let Some ( cur_matched) = lookup_cur_matched ( ident, interp, & repeats) {
225
225
match cur_matched {
226
226
MatchedTokenTree ( ref tt) => {
@@ -249,9 +249,9 @@ pub(super) fn transcribe<'a>(
249
249
// If we aren't able to match the meta-var, we push it back into the result but
250
250
// with modified syntax context. (I believe this supports nested macros).
251
251
marker. visit_span ( & mut sp) ;
252
- marker. visit_ident ( & mut orignal_ident ) ;
252
+ marker. visit_ident ( & mut original_ident ) ;
253
253
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 ( ) ) ;
255
255
}
256
256
}
257
257
You can’t perform that action at this time.
0 commit comments