mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 15:15:24 +00:00
Add source root
This commit is contained in:
parent
e98d8cd255
commit
440dc41dd8
5 changed files with 167 additions and 132 deletions
|
@ -8,7 +8,7 @@ use libsyntax2::{
|
|||
};
|
||||
use {FileId, FileResolver};
|
||||
|
||||
type SyntaxProvider<'a> = dyn Fn(FileId) -> File + 'a;
|
||||
type SyntaxProvider<'a> = dyn Fn(FileId) -> &'a File + 'a;
|
||||
|
||||
#[derive(Clone, Copy, PartialEq, Eq, Hash, Debug)]
|
||||
pub struct ModuleId(FileId);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue