Skip to content

Commit 6210ac1

Browse files
committed
attempt to have rustfmt use the new logic
apparently it doesn't really use the asm parsing at present, so this may work?
1 parent 266da42 commit 6210ac1

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/parse/macros/asm.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
use rustc_ast::ast;
2-
use rustc_builtin_macros::asm::{AsmArgs, parse_asm_args};
2+
use rustc_builtin_macros::asm::{RawAsmArg, parse_raw_asm_args};
33

44
use crate::rewrite::RewriteContext;
55

66
#[allow(dead_code)]
7-
pub(crate) fn parse_asm(context: &RewriteContext<'_>, mac: &ast::MacCall) -> Option<AsmArgs> {
7+
pub(crate) fn parse_asm(
8+
context: &RewriteContext<'_>,
9+
mac: &ast::MacCall,
10+
) -> Option<Vec<RawAsmArg>> {
811
let ts = mac.args.tokens.clone();
912
let mut parser = super::build_parser(context, ts);
10-
parse_asm_args(&mut parser, mac.span(), ast::AsmMacro::Asm).ok()
13+
parse_raw_asm_args(&mut parser, mac.span(), ast::AsmMacro::Asm).ok()
1114
}

0 commit comments

Comments
 (0)