mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 11:31:15 +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
@ -134,9 +134,9 @@ impl HirDisplay for Function {
|
||||
.as_ref()
|
||||
.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();
|
||||
}
|
||||
}
|
||||
never!("Async fn ret_type should be impl Future");
|
||||
None
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user