diff options
| author | Lukas Wirth <lukastw97@gmail.com> | 2024-07-22 10:53:18 +0200 |
|---|---|---|
| committer | Lukas Wirth <lukastw97@gmail.com> | 2024-07-22 10:53:18 +0200 |
| commit | d30f78730ecb6037824a9a5e866abfffce501ada (patch) | |
| tree | a844f28c07203734f6231b7a4875fc849e242af2 /src/tools | |
| parent | 5236347f7c30f3c611f37db395568dd37d12fa0e (diff) | |
| download | rust-d30f78730ecb6037824a9a5e866abfffce501ada.tar.gz rust-d30f78730ecb6037824a9a5e866abfffce501ada.zip | |
Remove incorrect never! invocations
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/rust-analyzer/crates/hir/src/display.rs | 4 | ||||
| -rw-r--r-- | src/tools/rust-analyzer/crates/hir/src/lib.rs | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/tools/rust-analyzer/crates/hir/src/display.rs b/src/tools/rust-analyzer/crates/hir/src/display.rs index a0dbead2216..f80ccf84a2c 100644 --- a/src/tools/rust-analyzer/crates/hir/src/display.rs +++ b/src/tools/rust-analyzer/crates/hir/src/display.rs @@ -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, } }; diff --git a/src/tools/rust-analyzer/crates/hir/src/lib.rs b/src/tools/rust-analyzer/crates/hir/src/lib.rs index 2bd0008c701..bb149a01e83 100644 --- a/src/tools/rust-analyzer/crates/hir/src/lib.rs +++ b/src/tools/rust-analyzer/crates/hir/src/lib.rs @@ -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 } |
