Tweak parse_asm_args.

It doesn't need a `Parser` and a `ParseSess`, because the former
contains the latter.
This commit is contained in:
Nicholas Nethercote 2023-12-20 15:05:30 +11:00
parent 050610e772
commit 0b56261cef

View File

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