@@ -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,
@@ -103,7 +103,7 @@ fn instrument_function_for_coverage<'tcx>(tcx: TyCtxt<'tcx>, mir_body: &mut mir:
103103 mir_body,
104104 tcx,
105105 & hir_info,
106- & mut extracted_mappings,
106+ & extracted_mappings,
107107 & basic_coverage_blocks,
108108 & mut coverage_counters,
109109 ) ;
@@ -148,7 +148,7 @@ fn create_mappings<'tcx>(
148148 mir_body : & mut mir:: Body < ' tcx > ,
149149 tcx : TyCtxt < ' tcx > ,
150150 hir_info : & ExtractedHirInfo ,
151- extracted_mappings : & mut ExtractedMappings ,
151+ extracted_mappings : & ExtractedMappings ,
152152 basic_coverage_blocks : & CoverageGraph ,
153153 coverage_counters : & mut CoverageCounters ,
154154) -> 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