mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-14 14:13:58 +00:00
Auto merge of #17668 - Veykril:incorrect-nevers, r=Veykril
Remove incorrect never! invocations These can crop up when the `Future` related lang items are missing
This commit is contained in:
commit
9d86412498
2 changed files with 2 additions and 3 deletions
|
@ -134,9 +134,9 @@ impl HirDisplay for Function {
|
||||||
.as_ref()
|
.as_ref()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
}
|
}
|
||||||
_ => panic!("Async fn ret_type should be impl Future"),
|
_ => &TypeRef::Error,
|
||||||
},
|
},
|
||||||
_ => panic!("Async fn ret_type should be impl Future"),
|
_ => &TypeRef::Error,
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1977,7 +1977,6 @@ impl Function {
|
||||||
return Type::new_with_resolver_inner(db, &resolver, output_eq.ty).into();
|
return Type::new_with_resolver_inner(db, &resolver, output_eq.ty).into();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
never!("Async fn ret_type should be impl Future");
|
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue