Skip to content

Commit 4ac88c0

Browse files
authored
Rollup merge of #76355 - calebcartwright:reduce-rustfmt-visibility, r=nikomatsakis
remove public visibility previously needed for rustfmt `submod_path_from_attr` in rustc_expand::module was previously public because it was also consumed by rustfmt. However, we've done a bit of refactoring in rustfmt and no longer need to use this function. This changes the visibility to the parent mod as was originally going to be done before the rustfmt dependency was realized (c189565#diff-cd1b379893bae95f7991d5a3f3c6d337R201)
2 parents 87302a2 + 08e3515 commit 4ac88c0

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)