1.65 changes and clippy fixes

This commit is contained in:
Anton-4 2023-01-17 18:09:16 +01:00
parent 8f62eeaf7e
commit a97c53d7ca
No known key found for this signature in database
GPG key ID: 0971D718C0A9B937
17 changed files with 37 additions and 19 deletions

View file

@ -1372,7 +1372,7 @@ pub fn constrain_expr(
// TODO: better expectation here
let link_type_variables_con = {
let specialized_type_index = {
let typ = types.from_old_type(&**specialized_def_type);
let typ = types.from_old_type(specialized_def_type);
constraints.push_type(types, typ)
};
let expected_index =

View file

@ -785,7 +785,7 @@ pub fn constrain_pattern(
// all constructors are covered in this branch!
let arg_pattern_type = constraints.push_variable(*arg_pattern_var);
let specialized_type_index = {
let typ = types.from_old_type(&(**specialized_def_type));
let typ = types.from_old_type(specialized_def_type);
constraints.push_type(types, typ)
};
let specialized_type_expected = constraints