Skip to content

Commit

Permalink
(> 1e6e3fb)remove useless &mut of extracted_mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhuUx committed Jul 15, 2024
1 parent 1e6e3fb commit 37f9ad8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/rustc_mir_transform/src/coverage/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ fn instrument_function_for_coverage<'tcx>(tcx: TyCtxt<'tcx>, mir_body: &mut mir:
mir_body,
tcx,
&hir_info,
&mut extracted_mappings,
&extracted_mappings,
&basic_coverage_blocks,
&mut coverage_counters,
);
Expand Down Expand Up @@ -148,7 +148,7 @@ fn create_mappings<'tcx>(
mir_body: &mut mir::Body<'tcx>,
tcx: TyCtxt<'tcx>,
hir_info: &ExtractedHirInfo,
extracted_mappings: &mut ExtractedMappings,
extracted_mappings: &ExtractedMappings,
basic_coverage_blocks: &CoverageGraph,
coverage_counters: &mut CoverageCounters,
) -> Vec<Mapping> {
Expand Down

0 comments on commit 37f9ad8

Please sign in to comment.