Remove SyntaxContext from {ast, hir}::{GlobalAsm, InlineAsm}
We now store it in the `Span` of the expression or item.
This commit is contained in:
parent
f70c90c677
commit
d04af194fc
10 changed files with 18 additions and 25 deletions
|
@ -63,7 +63,7 @@ pub fn expand_asm<'cx>(cx: &'cx mut ExtCtxt<'_>,
|
|||
MacEager::expr(P(ast::Expr {
|
||||
id: ast::DUMMY_NODE_ID,
|
||||
node: ast::ExprKind::InlineAsm(P(inline_asm)),
|
||||
span: sp,
|
||||
span: sp.with_ctxt(cx.backtrace()),
|
||||
attrs: ThinVec::new(),
|
||||
}))
|
||||
}
|
||||
|
@ -277,6 +277,5 @@ fn parse_inline_asm<'a>(
|
|||
volatile,
|
||||
alignstack,
|
||||
dialect,
|
||||
ctxt: cx.backtrace(),
|
||||
}))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue