Skip to content

Commit f8094a1

Browse files
committed
Rename the exp field to mirror its uses
1 parent 66e1719 commit f8094a1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/librustc_plugin/registry.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ impl<'a> Registry<'a> {
110110
edition,
111111
}
112112
}
113-
IdentTT { ext, span: _, allow_internal_unstable } => {
114-
IdentTT { ext, span: Some(self.krate_span), allow_internal_unstable }
113+
IdentTT { expander, span: _, allow_internal_unstable } => {
114+
IdentTT { expander, span: Some(self.krate_span), allow_internal_unstable }
115115
}
116116
_ => extension,
117117
}));

src/libsyntax/ext/base.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ pub enum SyntaxExtension {
658658
/// A function-like syntax extension that has an extra ident before
659659
/// the block.
660660
IdentTT {
661-
ext: Box<dyn IdentMacroExpander + sync::Sync + sync::Send>,
661+
expander: Box<dyn IdentMacroExpander + sync::Sync + sync::Send>,
662662
span: Option<Span>,
663663
allow_internal_unstable: Vec<Symbol>,
664664
},

src/libsyntax/ext/expand.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@ impl<'a, 'b> MacroExpander<'a, 'b> {
784784
}
785785
}
786786

787-
IdentTT { ext: ref expander, span: tt_span, ref allow_internal_unstable } => {
787+
IdentTT { ref expander, span: tt_span, ref allow_internal_unstable } => {
788788
if ident.name == keywords::Invalid.name() {
789789
self.cx.span_err(path.span,
790790
&format!("macro {}! expects an ident argument", path));

0 commit comments

Comments
 (0)