Skip to content

Commit f61f34f

Browse files
committed
coverage: CodeRegion is never stored in an arena
This might have been left over when coverage regions were stored in individual MIR statements, instead of a separate table attached to the MIR body.
1 parent 748c548 commit f61f34f

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

compiler/rustc_middle/src/arena.rs

-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ macro_rules! arena_types {
3535
)>,
3636
[] crate_for_resolver: rustc_data_structures::steal::Steal<(rustc_ast::Crate, rustc_ast::AttrVec)>,
3737
[] resolutions: rustc_middle::ty::ResolverGlobalCtxt,
38-
[decode] code_region: rustc_middle::mir::coverage::CodeRegion,
3938
[] const_allocs: rustc_middle::mir::interpret::Allocation,
4039
[] region_scope_tree: rustc_middle::middle::region::ScopeTree,
4140
// Required for the incremental on-disk cache

compiler/rustc_middle/src/ty/codec.rs

-1
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,6 @@ impl_decodable_via_ref! {
462462
&'tcx traits::ImplSource<'tcx, ()>,
463463
&'tcx mir::Body<'tcx>,
464464
&'tcx mir::BorrowCheckResult<'tcx>,
465-
&'tcx mir::coverage::CodeRegion,
466465
&'tcx ty::List<ty::BoundVariableKind>,
467466
&'tcx ty::ListWithCachedTypeInfo<ty::Clause<'tcx>>,
468467
&'tcx ty::List<FieldIdx>,

0 commit comments

Comments
 (0)