Skip to content

Commit

Permalink
rustc_builtin_macros: make asm mod public for rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
calebcartwright committed Dec 21, 2021
1 parent 8ad3c1d commit 63c2ede
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions compiler/rustc_builtin_macros/src/asm.rs
Expand Up @@ -809,7 +809,7 @@ fn expand_preparsed_asm(ecx: &mut ExtCtxt<'_>, args: AsmArgs) -> Option<ast::Inl
})
}

pub fn expand_asm<'cx>(
pub(super) fn expand_asm<'cx>(
ecx: &'cx mut ExtCtxt<'_>,
sp: Span,
tts: TokenStream,
Expand All @@ -836,7 +836,7 @@ pub fn expand_asm<'cx>(
}
}

pub fn expand_global_asm<'cx>(
pub(super) fn expand_global_asm<'cx>(
ecx: &'cx mut ExtCtxt<'_>,
sp: Span,
tts: TokenStream,
Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_builtin_macros/src/lib.rs
Expand Up @@ -19,7 +19,6 @@ use rustc_expand::base::{MacroExpanderFn, ResolverExpand, SyntaxExtensionKind};
use rustc_expand::proc_macro::BangProcMacro;
use rustc_span::symbol::sym;

mod asm;
mod assert;
mod cfg;
mod cfg_accessible;
Expand All @@ -42,6 +41,7 @@ mod test;
mod trace_macros;
mod util;

pub mod asm;
pub mod cmdline_attrs;
pub mod proc_macro_harness;
pub mod standard_library_imports;
Expand Down

0 comments on commit 63c2ede

Please sign in to comment.