rustc_expand: remove pub visibility for rustfmt

This commit is contained in:
Caleb Cartwright 2020-09-04 19:44:11 -05:00
parent c59199efca
commit 08e35155b4

View 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,