From 11bea2681cc1a191879ea6f93c8fe433a262503b Mon Sep 17 00:00:00 2001 From: Yacin Tmimi Date: Mon, 10 Jan 2022 21:48:22 -0500 Subject: [PATCH] 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. --- compiler/rustc_builtin_macros/src/asm.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/compiler/rustc_builtin_macros/src/asm.rs b/compiler/rustc_builtin_macros/src/asm.rs index 1a93b9be99ead..caf8ac77df187 100644 --- a/compiler/rustc_builtin_macros/src/asm.rs +++ b/compiler/rustc_builtin_macros/src/asm.rs @@ -16,13 +16,13 @@ use rustc_target::asm::InlineAsmArch; use smallvec::smallvec; pub struct AsmArgs { - templates: Vec>, - operands: Vec<(ast::InlineAsmOperand, Span)>, + pub templates: Vec>, + pub operands: Vec<(ast::InlineAsmOperand, Span)>, named_args: FxHashMap, reg_args: FxHashSet, - clobber_abis: Vec<(Symbol, Span)>, + pub clobber_abis: Vec<(Symbol, Span)>, options: ast::InlineAsmOptions, - options_spans: Vec, + pub options_spans: Vec, } fn parse_args<'a>(