mirror of
				https://github.com/rust-lang/rust-analyzer.git
				synced 2025-10-31 12:04:43 +00:00 
			
		
		
		
	internal: Split serde derive feature into serde_derive usage
				
					
				
			Ideally we'd not have any dependency pull in the derive feature for faster build times, once that is the case this change would have an actual effect. See https://github.com/matklad/macro-dep-test/blob/master/README.md for context.
This commit is contained in:
		
							parent
							
								
									27fac08c82
								
							
						
					
					
						commit
						5211972743
					
				
					 19 changed files with 58 additions and 56 deletions
				
			
		|  | @ -262,8 +262,9 @@ pub struct MacroFileId { | |||
| /// `MacroCallId` identifies a particular macro invocation, like
 | ||||
| /// `println!("Hello, {}", world)`.
 | ||||
| #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] | ||||
| pub struct MacroCallId(ra_salsa::InternId); | ||||
| pub struct MacroCallId(InternId); | ||||
| 
 | ||||
| #[cfg(feature = "ra-salsa")] | ||||
| impl ra_salsa::InternKey for MacroCallId { | ||||
|     fn from_intern_id(v: ra_salsa::InternId) -> Self { | ||||
|         MacroCallId(v) | ||||
|  | @ -362,6 +363,7 @@ mod intern_id_proxy { | |||
|     use std::fmt; | ||||
|     use std::num::NonZeroU32; | ||||
| 
 | ||||
|     #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] | ||||
|     pub(super) struct InternId { | ||||
|         value: NonZeroU32, | ||||
|     } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lukas Wirth
						Lukas Wirth