From 08e35155b42279c33b26512f5ce59734147de8b6 Mon Sep 17 00:00:00 2001 From: Caleb Cartwright Date: Fri, 4 Sep 2020 19:44:11 -0500 Subject: [PATCH] rustc_expand: remove pub visibility for rustfmt --- compiler/rustc_expand/src/module.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/compiler/rustc_expand/src/module.rs b/compiler/rustc_expand/src/module.rs index 1e123a2e145..fefc0bdeb7c 100644 --- a/compiler/rustc_expand/src/module.rs +++ b/compiler/rustc_expand/src/module.rs @@ -219,8 +219,7 @@ fn error_cannot_declare_mod_here<'a, T>( /// Derive a submodule path from the first found `#[path = "path_string"]`. /// The provided `dir_path` is joined with the `path_string`. -// Public for rustfmt usage. -pub fn submod_path_from_attr( +pub(super) fn submod_path_from_attr( sess: &Session, attrs: &[Attribute], dir_path: &Path,