mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 13:04:42 +00:00 
			
		
		
		
	 ab92699f4a
			
		
	
	
		ab92699f4a
		
	
	
	
	
		
			
			The payload of coverage statements was historically a structure with several fields, so it was boxed to avoid bloating `StatementKind`. Now that the payload is a single relatively-small enum, we can replace `Box<Coverage>` with just `CoverageKind`. This patch also adds a size assertion for `StatementKind`, to avoid accidentally bloating it in the future.
		
			
				
	
	
		
			12 lines
		
	
	
		
			367 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			367 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| use rustc_codegen_ssa::traits::CoverageInfoBuilderMethods;
 | |
| use rustc_middle::mir::coverage::CoverageKind;
 | |
| use rustc_middle::ty::Instance;
 | |
| 
 | |
| use crate::builder::Builder;
 | |
| 
 | |
| impl<'a, 'gcc, 'tcx> CoverageInfoBuilderMethods<'tcx> for Builder<'a, 'gcc, 'tcx> {
 | |
|     fn add_coverage(&mut self, _instance: Instance<'tcx>, _kind: &CoverageKind) {
 | |
|         // TODO(antoyo)
 | |
|     }
 | |
| }
 |