Unnamed repository; edit this file 'description' to name the repository.
| -rw-r--r-- | crates/hir-ty/src/infer/expr.rs | 4 | ||||
| -rw-r--r-- | crates/hir/src/diagnostics.rs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/crates/hir-ty/src/infer/expr.rs b/crates/hir-ty/src/infer/expr.rs index 2b19c445ed..0441d2ec32 100644 --- a/crates/hir-ty/src/infer/expr.rs +++ b/crates/hir-ty/src/infer/expr.rs @@ -2007,7 +2007,7 @@ impl<'db> InferenceContext<'_, 'db> { }, None => None, }; - (arg_types.iter().collect(), expected_input_tys) + (arg_types.to_vec(), expected_input_tys) } _ => { // Otherwise, there's a mismatch, so clear out what we're expecting, and set @@ -2017,7 +2017,7 @@ impl<'db> InferenceContext<'_, 'db> { } } } else { - (formal_input_tys.to_vec(), expected_input_tys) + (formal_input_tys, expected_input_tys) }; // If there are no external expectations at the call site, just use the types from the function defn diff --git a/crates/hir/src/diagnostics.rs b/crates/hir/src/diagnostics.rs index 18f28541af..32f0ac3dad 100644 --- a/crates/hir/src/diagnostics.rs +++ b/crates/hir/src/diagnostics.rs @@ -62,6 +62,8 @@ diagnostics![AnyDiagnostic<'db> -> InactiveCode, IncoherentImpl, IncorrectCase, + IncorrectGenericsLen, + IncorrectGenericsOrder, InvalidCast<'db>, InvalidDeriveTarget, InvalidLhsOfAssignment, @@ -105,8 +107,6 @@ diagnostics![AnyDiagnostic<'db> -> GenericArgsProhibited, ParenthesizedGenericArgsWithoutFnTrait, BadRtn, - IncorrectGenericsLen, - IncorrectGenericsOrder, MissingLifetime, ElidedLifetimesInPath, TypeMustBeKnown<'db>, |