Skip to content

Commit a4b808d

Browse files
authored
Rollup merge of #92754 - ytmimi:AsmArgs-field-visibility, r=calebcartwright
Update AsmArgs field visibility for rustfmt To more easily allow rustfmt to format the ``asm!`` macro as specified in rust-lang/style-team#152 certain fields are made public. r? ```@calebcartwright```
2 parents 286bb18 + 11bea26 commit a4b808d

File tree

1 file changed

+4
-4
lines changed
  • compiler/rustc_builtin_macros/src

1 file changed

+4
-4
lines changed

compiler/rustc_builtin_macros/src/asm.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ use rustc_target::asm::InlineAsmArch;
1616
use smallvec::smallvec;
1717

1818
pub struct AsmArgs {
19-
templates: Vec<P<ast::Expr>>,
20-
operands: Vec<(ast::InlineAsmOperand, Span)>,
19+
pub templates: Vec<P<ast::Expr>>,
20+
pub operands: Vec<(ast::InlineAsmOperand, Span)>,
2121
named_args: FxHashMap<Symbol, usize>,
2222
reg_args: FxHashSet<usize>,
23-
clobber_abis: Vec<(Symbol, Span)>,
23+
pub clobber_abis: Vec<(Symbol, Span)>,
2424
options: ast::InlineAsmOptions,
25-
options_spans: Vec<Span>,
25+
pub options_spans: Vec<Span>,
2626
}
2727

2828
fn parse_args<'a>(

0 commit comments

Comments
 (0)