diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-12-20 15:05:30 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-03-04 16:12:33 +1100 |
| commit | aa38c26bbf84aa36e280cc120736c47a36cb467d (patch) | |
| tree | 9864ad272eb5d9a475cdc93dc0273d96920030e4 /src | |
| parent | 279c9ba260389ac92c4827a721d3163c4e519f66 (diff) | |
Tweak `parse_asm_args`.
It doesn't need a `Parser` and a `ParseSess`, because the former contains the latter.
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/rustfmt/src/parse/macros/asm.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/rustfmt/src/parse/macros/asm.rs b/src/tools/rustfmt/src/parse/macros/asm.rs index 01edfab3654..6373d0251f8 100644 --- a/src/tools/rustfmt/src/parse/macros/asm.rs +++ b/src/tools/rustfmt/src/parse/macros/asm.rs @@ -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() } |
