Make FromSource private

This commit is contained in:
Aleksey Kladov 2020-01-16 16:08:46 +01:00
parent f4eeff2c82
commit 81a45ca1b3
8 changed files with 84 additions and 41 deletions

View file

@ -20,7 +20,7 @@ use crate::{
MacroDef, Module, Static, Struct, StructField, Trait, TypeAlias, TypeParam, Union,
};
pub trait FromSource: Sized {
pub(crate) trait FromSource: Sized {
type Ast;
fn from_source(db: &impl DefDatabase, src: InFile<Self::Ast>) -> Option<Self>;
}