about summary refs log tree commit diff
path: root/compiler/rustc_expand/src/module.rs
diff options
context:
space:
mode:
authorCaleb Cartwright <caleb.cartwright@outlook.com>2020-09-04 19:44:11 -0500
committerCaleb Cartwright <caleb.cartwright@outlook.com>2020-09-04 19:44:11 -0500
commit08e35155b42279c33b26512f5ce59734147de8b6 (patch)
tree1b6cf0e31ffb5c92f30dd44eabd8860cef433bea /compiler/rustc_expand/src/module.rs
parentc59199efca5856cdf810919fbf9b5bce32dc4523 (diff)
downloadrust-08e35155b42279c33b26512f5ce59734147de8b6.tar.gz
rust-08e35155b42279c33b26512f5ce59734147de8b6.zip
rustc_expand: remove pub visibility for rustfmt
Diffstat (limited to 'compiler/rustc_expand/src/module.rs')
-rw-r--r--compiler/rustc_expand/src/module.rs3
1 files changed, 1 insertions, 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,