mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Update AsmArgs field visibility for rustfmt
To more easily allow rustfmt to format the asm! macro as specified in rust-dev-tools/fmt-rfcs#152 certain fields are made public.
This commit is contained in:
parent
f1ce0e6a00
commit
11bea2681c
@ -16,13 +16,13 @@ use rustc_target::asm::InlineAsmArch;
|
|||||||
use smallvec::smallvec;
|
use smallvec::smallvec;
|
||||||
|
|
||||||
pub struct AsmArgs {
|
pub struct AsmArgs {
|
||||||
templates: Vec<P<ast::Expr>>,
|
pub templates: Vec<P<ast::Expr>>,
|
||||||
operands: Vec<(ast::InlineAsmOperand, Span)>,
|
pub operands: Vec<(ast::InlineAsmOperand, Span)>,
|
||||||
named_args: FxHashMap<Symbol, usize>,
|
named_args: FxHashMap<Symbol, usize>,
|
||||||
reg_args: FxHashSet<usize>,
|
reg_args: FxHashSet<usize>,
|
||||||
clobber_abis: Vec<(Symbol, Span)>,
|
pub clobber_abis: Vec<(Symbol, Span)>,
|
||||||
options: ast::InlineAsmOptions,
|
options: ast::InlineAsmOptions,
|
||||||
options_spans: Vec<Span>,
|
pub options_spans: Vec<Span>,
|
||||||
}
|
}
|
||||||
|
|
||||||
fn parse_args<'a>(
|
fn parse_args<'a>(
|
||||||
|
Loading…
Reference in New Issue
Block a user