2177: Reduce visibility r=matklad a=matklad



Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
bors[bot] 2019-11-04 20:37:59 +00:00 committed by GitHub
commit 38f2bd21fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -196,7 +196,7 @@ pub struct Resolution {
} }
impl Resolution { impl Resolution {
pub(crate) fn from_macro(macro_: MacroDefId) -> Self { fn from_macro(macro_: MacroDefId) -> Self {
Resolution { def: PerNs::macros(macro_), import: None } Resolution { def: PerNs::macros(macro_), import: None }
} }
} }
@ -460,7 +460,7 @@ impl CrateDefMap {
from_crate_root.or(from_extern_prelude) from_crate_root.or(from_extern_prelude)
} }
pub(crate) fn resolve_name_in_module( fn resolve_name_in_module(
&self, &self,
db: &impl DefDatabase2, db: &impl DefDatabase2,
module: CrateModuleId, module: CrateModuleId,