]> git.lizzy.rs Git - rust.git/commit - src/tools/rustfmt
Rollup merge of #76355 - calebcartwright:reduce-rustfmt-visibility, r=nikomatsakis
authorDylan DPC <dylan.dpc@gmail.com>
Tue, 8 Sep 2020 23:35:11 +0000 (01:35 +0200)
committerGitHub <noreply@github.com>
Tue, 8 Sep 2020 23:35:11 +0000 (01:35 +0200)
commit4ac88c01c3ad5a65e3563d14aea2151d277b3010
tree7aeaa37c5ef28d725b6ef221ba1b513c6bda8bc0
parent87302a297c465f3eda6df8f941636b3137342a9f
parent08e35155b42279c33b26512f5ce59734147de8b6
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)