mirror of
				https://github.com/rust-lang/rust-analyzer.git
				synced 2025-10-31 03:54:42 +00:00 
			
		
		
		
	also initialize Layout field in rust-analyzer
This commit is contained in:
		
							parent
							
								
									f22e634f53
								
							
						
					
					
						commit
						7b368b97ba
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		|  | @ -197,6 +197,7 @@ fn layout_of_simd_ty( | |||
|         align, | ||||
|         max_repr_align: None, | ||||
|         unadjusted_abi_align: align.abi, | ||||
|         randomization_seed: 0, | ||||
|     })) | ||||
| } | ||||
| 
 | ||||
|  | @ -313,6 +314,7 @@ pub fn layout_of_ty_query( | |||
|                 size, | ||||
|                 max_repr_align: None, | ||||
|                 unadjusted_abi_align: element.align.abi, | ||||
|                 randomization_seed: 0, | ||||
|             } | ||||
|         } | ||||
|         TyKind::Slice(element) => { | ||||
|  | @ -326,6 +328,7 @@ pub fn layout_of_ty_query( | |||
|                 size: Size::ZERO, | ||||
|                 max_repr_align: None, | ||||
|                 unadjusted_abi_align: element.align.abi, | ||||
|                 randomization_seed: 0, | ||||
|             } | ||||
|         } | ||||
|         TyKind::Str => Layout { | ||||
|  | @ -337,6 +340,7 @@ pub fn layout_of_ty_query( | |||
|             size: Size::ZERO, | ||||
|             max_repr_align: None, | ||||
|             unadjusted_abi_align: dl.i8_align.abi, | ||||
|             randomization_seed: 0, | ||||
|         }, | ||||
|         // Potentially-wide pointers.
 | ||||
|         TyKind::Ref(_, _, pointee) | TyKind::Raw(_, pointee) => { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 The 8472
						The 8472