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 | 0b56261cef11fbc5ef97b0ccc9e322c06ce095e6 (patch) | |
| tree | c6f6d3c5437e555309dedb9d39980274ffadd703 | |
| parent | 050610e7724086897c67bdfd023cb2f9722f8332 (diff) | |
| download | rust-0b56261cef11fbc5ef97b0ccc9e322c06ce095e6.tar.gz rust-0b56261cef11fbc5ef97b0ccc9e322c06ce095e6.zip | |
Tweak `parse_asm_args`.
It doesn't need a `Parser` and a `ParseSess`, because the former contains the latter.
| -rw-r--r-- | src/parse/macros/asm.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parse/macros/asm.rs b/src/parse/macros/asm.rs index 01edfab3654..6373d0251f8 100644 --- a/src/parse/macros/asm.rs +++ b/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() } |
