Skip to content

Commit a7c79c0

Browse files
authored
Rollup merge of #92147 - calebcartwright:publicize-builtin_macro-asm, r=cjgillot
rustc_builtin_macros: make asm mod public for rustfmt Follow up to #92016, as I'd completely missed that the mod we needed was internal
2 parents bd77fbf + 63c2ede commit a7c79c0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: compiler/rustc_builtin_macros/src/asm.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,7 @@ fn expand_preparsed_asm(ecx: &mut ExtCtxt<'_>, args: AsmArgs) -> Option<ast::Inl
809809
})
810810
}
811811

812-
pub fn expand_asm<'cx>(
812+
pub(super) fn expand_asm<'cx>(
813813
ecx: &'cx mut ExtCtxt<'_>,
814814
sp: Span,
815815
tts: TokenStream,
@@ -836,7 +836,7 @@ pub fn expand_asm<'cx>(
836836
}
837837
}
838838

839-
pub fn expand_global_asm<'cx>(
839+
pub(super) fn expand_global_asm<'cx>(
840840
ecx: &'cx mut ExtCtxt<'_>,
841841
sp: Span,
842842
tts: TokenStream,

Diff for: compiler/rustc_builtin_macros/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ use rustc_expand::base::{MacroExpanderFn, ResolverExpand, SyntaxExtensionKind};
1919
use rustc_expand::proc_macro::BangProcMacro;
2020
use rustc_span::symbol::sym;
2121

22-
mod asm;
2322
mod assert;
2423
mod cfg;
2524
mod cfg_accessible;
@@ -42,6 +41,7 @@ mod test;
4241
mod trace_macros;
4342
mod util;
4443

44+
pub mod asm;
4545
pub mod cmdline_attrs;
4646
pub mod proc_macro_harness;
4747
pub mod standard_library_imports;

0 commit comments

Comments
 (0)