Skip to content

Commit df02bca

Browse files
committed
nyaaa
1 parent 88dd764 commit df02bca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_infer/src/infer/canonical/query_response.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ impl<'tcx> InferCtxt<'tcx> {
457457
// Create result arguments: if we found a value for a
458458
// given variable in the loop above, use that. Otherwise, use
459459
// a fresh inference variable.
460-
let mut var_values = Vec::new();
460+
let mut var_values = Vec::with_capacity(query_response.variables.len());
461461
for (index, info) in query_response.variables.iter().enumerate() {
462462
let value = if info.universe() != ty::UniverseIndex::ROOT {
463463
// A variable from inside a binder of the query. While ideally these shouldn't

0 commit comments

Comments
 (0)