Skip to content

Commit 08e3515

Browse files
rustc_expand: remove pub visibility for rustfmt
1 parent c59199e commit 08e3515

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compiler/rustc_expand/src/module.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,7 @@ fn error_cannot_declare_mod_here<'a, T>(
219219

220220
/// Derive a submodule path from the first found `#[path = "path_string"]`.
221221
/// The provided `dir_path` is joined with the `path_string`.
222-
// Public for rustfmt usage.
223-
pub fn submod_path_from_attr(
222+
pub(super) fn submod_path_from_attr(
224223
sess: &Session,
225224
attrs: &[Attribute],
226225
dir_path: &Path,

0 commit comments

Comments
 (0)