Skip to content

Commit bbef975

Browse files
committed
Fix spelling of an identifier.
1 parent 637a93c commit bbef975

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

compiler/rustc_expand/src/mbe/transcribe.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)