Rename the exp
field to mirror its uses
This commit is contained in:
parent
33bf81eec0
commit
87d5383ec3
3 changed files with 4 additions and 4 deletions
|
@ -110,8 +110,8 @@ impl<'a> Registry<'a> {
|
|||
edition,
|
||||
}
|
||||
}
|
||||
IdentTT { ext, span: _, allow_internal_unstable } => {
|
||||
IdentTT { ext, span: Some(self.krate_span), allow_internal_unstable }
|
||||
IdentTT { expander, span: _, allow_internal_unstable } => {
|
||||
IdentTT { expander, span: Some(self.krate_span), allow_internal_unstable }
|
||||
}
|
||||
_ => extension,
|
||||
}));
|
||||
|
|
|
@ -658,7 +658,7 @@ pub enum SyntaxExtension {
|
|||
/// A function-like syntax extension that has an extra ident before
|
||||
/// the block.
|
||||
IdentTT {
|
||||
ext: Box<dyn IdentMacroExpander + sync::Sync + sync::Send>,
|
||||
expander: Box<dyn IdentMacroExpander + sync::Sync + sync::Send>,
|
||||
span: Option<Span>,
|
||||
allow_internal_unstable: Vec<Symbol>,
|
||||
},
|
||||
|
|
|
@ -792,7 +792,7 @@ impl<'a, 'b> MacroExpander<'a, 'b> {
|
|||
}
|
||||
}
|
||||
|
||||
IdentTT { ext: ref expander, span: tt_span, ref allow_internal_unstable } => {
|
||||
IdentTT { ref expander, span: tt_span, ref allow_internal_unstable } => {
|
||||
if ident.name == keywords::Invalid.name() {
|
||||
self.cx.span_err(path.span,
|
||||
&format!("macro {}! expects an ident argument", path));
|
||||
|
|
Loading…
Reference in a new issue