about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-12-20 15:05:30 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2024-03-04 16:12:33 +1100
commit0b56261cef11fbc5ef97b0ccc9e322c06ce095e6 (patch)
treec6f6d3c5437e555309dedb9d39980274ffadd703
parent050610e7724086897c67bdfd023cb2f9722f8332 (diff)
downloadrust-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.rs2
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()
 }