@@ -76,7 +76,7 @@ fn instrument_function_for_coverage<'tcx>(tcx: TyCtxt<'tcx>, mir_body: &mut mir:
7676
7777 ////////////////////////////////////////////////////
7878 // Extract coverage spans and other mapping info from MIR.
79- let mut extracted_mappings = mappings:: extract_all_mapping_info_from_mir (
79+ let extracted_mappings = mappings:: extract_all_mapping_info_from_mir (
8080 tcx,
8181 mir_body,
8282 & hir_info,
@@ -102,7 +102,7 @@ fn instrument_function_for_coverage<'tcx>(tcx: TyCtxt<'tcx>, mir_body: &mut mir:
102102 mir_body,
103103 tcx,
104104 & hir_info,
105- & mut extracted_mappings,
105+ & extracted_mappings,
106106 & basic_coverage_blocks,
107107 & mut coverage_counters,
108108 ) ;
@@ -147,7 +147,7 @@ fn create_mappings<'tcx>(
147147 mir_body : & mut mir:: Body < ' tcx > ,
148148 tcx : TyCtxt < ' tcx > ,
149149 hir_info : & ExtractedHirInfo ,
150- extracted_mappings : & mut ExtractedMappings ,
150+ extracted_mappings : & ExtractedMappings ,
151151 basic_coverage_blocks : & CoverageGraph ,
152152 coverage_counters : & mut CoverageCounters ,
153153) -> Vec < Mapping > {
@@ -241,12 +241,7 @@ fn create_mappings<'tcx>(
241241 let conditions = branches
242242 . into_iter ( )
243243 . filter_map (
244- |& mut mappings:: MCDCBranch {
245- span,
246- ref true_bcbs,
247- ref false_bcbs,
248- condition_info,
249- } | {
244+ |& mappings:: MCDCBranch { span, ref true_bcbs, ref false_bcbs, condition_info } | {
250245 let code_region = region_for_span ( span) ?;
251246 let true_term = term_for_bcbs ( true_bcbs) ;
252247 let false_term = term_for_bcbs ( false_bcbs) ;
0 commit comments