]> git.lizzy.rs Git - rust.git/commitdiff
rustc_expand: remove pub visibility for rustfmt
authorCaleb Cartwright <caleb.cartwright@outlook.com>
Sat, 5 Sep 2020 00:44:11 +0000 (19:44 -0500)
committerCaleb Cartwright <caleb.cartwright@outlook.com>
Sat, 5 Sep 2020 00:44:11 +0000 (19:44 -0500)
compiler/rustc_expand/src/module.rs

index 1e123a2e14553a7d1edaf21bbffe8fc115f342e2..fefc0bdeb7cc26338d651762a30a19d254870e96 100644 (file)
@@ -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,