Open
Description
I was recently refactoring some code that originally looked like this (minimized):
fn foo() {}
async fn bar() {
Some(foo());
}
bar() was far away from the definition of foo().
I had need to refactor the code so that foo was also async, and so now I had:
async fn foo() {}
async fn bar() {
Some(foo());
}
This gives no compiler diagnostic and instead the body of foo is not executed.