mirror of
				https://github.com/rust-lang/rust-analyzer.git
				synced 2025-10-30 19:49:36 +00:00 
			
		
		
		
	Simplify FileDelegate
This commit is contained in:
		
							parent
							
								
									000eed1da8
								
							
						
					
					
						commit
						fcb88832de
					
				
					 36 changed files with 78 additions and 86 deletions
				
			
		|  | @ -7,7 +7,7 @@ use salsa::Durability; | |||
| use triomphe::Arc; | ||||
| use vfs::FileId; | ||||
| 
 | ||||
| use crate::{CrateGraph, SourceDatabaseExt, SourceDatabaseExt2, SourceRoot, SourceRootId}; | ||||
| use crate::{CrateGraph, SourceDatabaseFileInputExt, SourceRoot, SourceRootDatabase, SourceRootId}; | ||||
| 
 | ||||
| /// Encapsulate a bunch of raw `.set` calls on the database.
 | ||||
| #[derive(Default)] | ||||
|  | @ -50,7 +50,7 @@ impl FileChange { | |||
|         self.crate_graph = Some(graph); | ||||
|     } | ||||
| 
 | ||||
|     pub fn apply(self, db: &mut dyn SourceDatabaseExt) { | ||||
|     pub fn apply(self, db: &mut dyn SourceRootDatabase) { | ||||
|         let _p = tracing::info_span!("FileChange::apply").entered(); | ||||
|         if let Some(roots) = self.roots { | ||||
|             for (idx, root) in roots.into_iter().enumerate() { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lukas Wirth
						Lukas Wirth