Tweak parse_asm_args
.
It doesn't need a `Parser` and a `ParseSess`, because the former contains the latter.
This commit is contained in:
parent
050610e772
commit
0b56261cef
@ -7,5 +7,5 @@
|
||||
pub(crate) fn parse_asm(context: &RewriteContext<'_>, mac: &ast::MacCall) -> Option<AsmArgs> {
|
||||
let ts = mac.args.tokens.clone();
|
||||
let mut parser = super::build_parser(context, ts);
|
||||
parse_asm_args(&mut parser, context.parse_sess.inner(), mac.span(), false).ok()
|
||||
parse_asm_args(&mut parser, mac.span(), false).ok()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user