Skip to content

Commit d84d659

Browse files
committed
clone range in a more obvious way
1 parent 464f405 commit d84d659

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

compiler/rustc_infer/src/infer/type_variable.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,7 @@ impl<'tcx> TypeVariableTable<'_, 'tcx> {
187187
value_count: usize,
188188
) -> (Range<TyVid>, Vec<TypeVariableOrigin>) {
189189
let range = TyVid::from_usize(value_count)..TyVid::from_usize(self.num_vars());
190-
(
191-
range.start..range.end,
192-
(range.start..range.end).map(|index| self.var_origin(index)).collect(),
193-
)
190+
(range.clone(), range.map(|index| self.var_origin(index)).collect())
194191
}
195192

196193
/// Returns indices of all variables that are not yet

0 commit comments

Comments
 (0)