diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-09-09 01:35:11 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-09 01:35:11 +0200 |
| commit | 4ac88c01c3ad5a65e3563d14aea2151d277b3010 (patch) | |
| tree | 7aeaa37c5ef28d725b6ef221ba1b513c6bda8bc0 | |
| parent | 87302a297c465f3eda6df8f941636b3137342a9f (diff) | |
| parent | 08e35155b42279c33b26512f5ce59734147de8b6 (diff) | |
| download | rust-4ac88c01c3ad5a65e3563d14aea2151d277b3010.tar.gz rust-4ac88c01c3ad5a65e3563d14aea2151d277b3010.zip | |
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 (https://github.com/rust-lang/rust/commit/c189565edc5c9fc516170885b3a3061b936205fb#diff-cd1b379893bae95f7991d5a3f3c6d337R201)
| -rw-r--r-- | compiler/rustc_expand/src/module.rs | 3 |
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, |
