We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 266da42 commit 6210ac1Copy full SHA for 6210ac1
src/parse/macros/asm.rs
@@ -1,11 +1,14 @@
1
use rustc_ast::ast;
2
-use rustc_builtin_macros::asm::{AsmArgs, parse_asm_args};
+use rustc_builtin_macros::asm::{RawAsmArg, parse_raw_asm_args};
3
4
use crate::rewrite::RewriteContext;
5
6
#[allow(dead_code)]
7
-pub(crate) fn parse_asm(context: &RewriteContext<'_>, mac: &ast::MacCall) -> Option<AsmArgs> {
+pub(crate) fn parse_asm(
8
+ context: &RewriteContext<'_>,
9
+ mac: &ast::MacCall,
10
+) -> Option<Vec<RawAsmArg>> {
11
let ts = mac.args.tokens.clone();
12
let mut parser = super::build_parser(context, ts);
- parse_asm_args(&mut parser, mac.span(), ast::AsmMacro::Asm).ok()
13
+ parse_raw_asm_args(&mut parser, mac.span(), ast::AsmMacro::Asm).ok()
14
}
0 commit comments