mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 05:45:12 +00:00
Make some functions non-generic
This commit is contained in:
parent
0e4c3b2c2b
commit
24eca25d8a
3 changed files with 9 additions and 9 deletions
|
@ -1037,7 +1037,7 @@ impl<'a> InferenceContext<'a> {
|
|||
if let Some(expected_ty) = expected_output.to_option(&mut self.table) {
|
||||
self.table.fudge_inference(|table| {
|
||||
if table.try_unify(&expected_ty, &output).is_ok() {
|
||||
table.resolve_with_fallback(inputs, |var, kind, _, _| match kind {
|
||||
table.resolve_with_fallback(inputs, &|var, kind, _, _| match kind {
|
||||
chalk_ir::VariableKind::Ty(tk) => var.to_ty(&Interner, tk).cast(&Interner),
|
||||
chalk_ir::VariableKind::Lifetime => {
|
||||
var.to_lifetime(&Interner).cast(&Interner)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue