Merge pull request #4916 from roc-lang/rust1_65

upgrade to rust 1.65 and clippy fixes
This commit is contained in:
Folkert de Vries 2023-01-24 14:14:10 +01:00 committed by GitHub
commit 7aaf0f3822
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 71 additions and 49 deletions

View file

@ -1547,7 +1547,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