We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f73cd1 commit 5808006Copy full SHA for 5808006
compiler/rustc_codegen_llvm/src/coverageinfo/mapgen.rs
@@ -166,7 +166,7 @@ fn encode_mappings_for_function<'a>(
166
}
167
168
let mut virtual_file_mapping = Vec::new();
169
- let mut mapping_regions = Vec::new();
+ let mut mapping_regions = Vec::with_capacity(counter_regions.len());
170
171
// Convert the list of (Counter, CodeRegion) pairs to an array of `CounterMappingRegion`, sorted
172
// by filename and position. Capture any new files to compute the `CounterMappingRegion`s
0 commit comments