mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Make FromSource private
This commit is contained in:
parent
f4eeff2c82
commit
81a45ca1b3
8 changed files with 84 additions and 41 deletions
|
@ -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>;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue