diff options
| author | Yunfei <i.heyunfei@gmail.com> | 2024-07-29 20:36:03 +0800 |
|---|---|---|
| committer | Yunfei <i.heyunfei@gmail.com> | 2024-07-29 20:36:03 +0800 |
| commit | dc548f0168018dfbec02d2d3fff1464501ecf79f (patch) | |
| tree | 2913b9f54791e385e4fde308c3bb2a287d2d7c16 | |
| parent | 568228fbc9ed4d3037e9dce8aafa53525ff3b048 (diff) | |
| download | rust-dc548f0168018dfbec02d2d3fff1464501ecf79f.tar.gz rust-dc548f0168018dfbec02d2d3fff1464501ecf79f.zip | |
Revert "Fix error message"
This reverts commit 752c49b679afcec7edf5d26d52bf3d164ee7349f.
| -rw-r--r-- | src/tools/rust-analyzer/crates/ide-diagnostics/src/handlers/trait_impl_missing_assoc_item.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/tools/rust-analyzer/crates/ide-diagnostics/src/handlers/trait_impl_missing_assoc_item.rs b/src/tools/rust-analyzer/crates/ide-diagnostics/src/handlers/trait_impl_missing_assoc_item.rs index 60d1452d86b..58d1b7f31d2 100644 --- a/src/tools/rust-analyzer/crates/ide-diagnostics/src/handlers/trait_impl_missing_assoc_item.rs +++ b/src/tools/rust-analyzer/crates/ide-diagnostics/src/handlers/trait_impl_missing_assoc_item.rs @@ -13,7 +13,6 @@ pub(crate) fn trait_impl_missing_assoc_item( ) -> Diagnostic { let missing = d.missing.iter().format_with(", ", |(name, item), f| { f(&match *item { - hir::AssocItem::Function(func) if func.is_async(ctx.sema.db) => "`async fn ", hir::AssocItem::Function(_) => "`fn ", hir::AssocItem::Const(_) => "`const ", hir::AssocItem::TypeAlias(_) => "`type ", @@ -57,25 +56,22 @@ trait Trait { const C: (); type T; fn f(); - async fn async_f(); } impl Trait for () { const C: () = (); type T = (); fn f() {} - async fn async_f() {} } impl Trait for () { //^^^^^ error: not all trait items implemented, missing: `const C` type T = (); fn f() {} - async fn async_f() {} } impl Trait for () { - //^^^^^ error: not all trait items implemented, missing: `const C`, `type T`, `fn f`, `async fn async_f` + //^^^^^ error: not all trait items implemented, missing: `const C`, `type T`, `fn f` } "#, |
