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 854fa35 commit 9f7fed5Copy full SHA for 9f7fed5
compiler/rustc_infer/src/infer/type_variable.rs
@@ -187,10 +187,7 @@ impl<'tcx> TypeVariableTable<'_, 'tcx> {
187
value_count: usize,
188
) -> (Range<TyVid>, Vec<TypeVariableOrigin>) {
189
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
- )
+ (range.clone(), range.map(|index| self.var_origin(index)).collect())
194
}
195
196
/// Returns indices of all variables that are not yet
0 commit comments