[−][src]Function rustc_expand::module::submod_path_from_attr

pub(crate) fn submod_path_from_attr(
    sess: &Session,
    attrs: &[Attribute],
    dir_path: &Path
) -> Option<PathBuf>

Derive a submodule path from the first found #[path = "path_string"]. The provided dir_path is joined with the path_string.