Remove SyntaxContext from {ast, hir}::{GlobalAsm, InlineAsm}
We now store it in the `Span` of the expression or item.
This commit is contained in:
@@ -30,7 +30,7 @@ pub fn expand_global_asm<'cx>(cx: &'cx mut ExtCtxt<'_>,
|
||||
id: ast::DUMMY_NODE_ID,
|
||||
node: ast::ItemKind::GlobalAsm(P(global_asm)),
|
||||
vis: respan(sp.shrink_to_lo(), ast::VisibilityKind::Inherited),
|
||||
span: sp,
|
||||
span: sp.with_ctxt(cx.backtrace()),
|
||||
tokens: None,
|
||||
})])
|
||||
}
|
||||
@@ -61,8 +61,5 @@ fn parse_global_asm<'a>(
|
||||
None => return Ok(None),
|
||||
};
|
||||
|
||||
Ok(Some(ast::GlobalAsm {
|
||||
asm,
|
||||
ctxt: cx.backtrace(),
|
||||
}))
|
||||
Ok(Some(ast::GlobalAsm { asm }))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user