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
1 changed files with 1 additions and 1 deletions
|
|
@ -7,5 +7,5 @@ use crate::rewrite::RewriteContext;
|
|||
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…
Add table
Add a link
Reference in a new issue