Skip to content

Commit

Permalink
Update AsmArgs field visibility for rustfmt
Browse files Browse the repository at this point in the history
To more easily allow rustfmt to format the asm! macro as specified in
rust-lang/style-team#152 certain fields are made public.
  • Loading branch information
ytmimi committed Jan 11, 2022
1 parent f1ce0e6 commit 11bea26
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions compiler/rustc_builtin_macros/src/asm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ use rustc_target::asm::InlineAsmArch;
use smallvec::smallvec;

pub struct AsmArgs {
templates: Vec<P<ast::Expr>>,
operands: Vec<(ast::InlineAsmOperand, Span)>,
pub templates: Vec<P<ast::Expr>>,
pub operands: Vec<(ast::InlineAsmOperand, Span)>,
named_args: FxHashMap<Symbol, usize>,
reg_args: FxHashSet<usize>,
clobber_abis: Vec<(Symbol, Span)>,
pub clobber_abis: Vec<(Symbol, Span)>,
options: ast::InlineAsmOptions,
options_spans: Vec<Span>,
pub options_spans: Vec<Span>,
}

fn parse_args<'a>(
Expand Down

0 comments on commit 11bea26

Please sign in to comment.