1
Fork 0

Remove SyntaxContext from {ast, hir}::{GlobalAsm, InlineAsm}

We now store it in the `Span` of the expression or item.
This commit is contained in:
Matthew Jasper 2019-08-12 22:12:53 +01:00
parent f70c90c677
commit d04af194fc
10 changed files with 18 additions and 25 deletions

View file

@ -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(),
}))
}