mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-25 14:41:47 +00:00 
			
		
		
		
	 e9eae28eee
			
		
	
	
		e9eae28eee
		
	
	
	
	
		
			
			Previously, `rustc_transmute`'s layout representations were genericized over `R`, a reference. Now, it's instead genericized over representations of type and region. This allows us to move reference transmutability logic from `rustc_trait_selection` to `rustc_transmutability` (and thus unit test it independently of the compiler), and — in a follow-up PR — will make it possible to support analyzing function pointer transmutability with minimal surgery.