Skip to content

Commit dc548f0

Browse files
committed
Revert "Fix error message"
This reverts commit 752c49b679afcec7edf5d26d52bf3d164ee7349f.
1 parent 568228f commit dc548f0

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/tools/rust-analyzer/crates/ide-diagnostics/src/handlers/trait_impl_missing_assoc_item.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ pub(crate) fn trait_impl_missing_assoc_item(
1313
) -> Diagnostic {
1414
let missing = d.missing.iter().format_with(", ", |(name, item), f| {
1515
f(&match *item {
16-
hir::AssocItem::Function(func) if func.is_async(ctx.sema.db) => "`async fn ",
1716
hir::AssocItem::Function(_) => "`fn ",
1817
hir::AssocItem::Const(_) => "`const ",
1918
hir::AssocItem::TypeAlias(_) => "`type ",
@@ -57,25 +56,22 @@ trait Trait {
5756
const C: ();
5857
type T;
5958
fn f();
60-
async fn async_f();
6159
}
6260
6361
impl Trait for () {
6462
const C: () = ();
6563
type T = ();
6664
fn f() {}
67-
async fn async_f() {}
6865
}
6966
7067
impl Trait for () {
7168
//^^^^^ error: not all trait items implemented, missing: `const C`
7269
type T = ();
7370
fn f() {}
74-
async fn async_f() {}
7571
}
7672
7773
impl Trait for () {
78-
//^^^^^ error: not all trait items implemented, missing: `const C`, `type T`, `fn f`, `async fn async_f`
74+
//^^^^^ error: not all trait items implemented, missing: `const C`, `type T`, `fn f`
7975
}
8076
8177
"#,

0 commit comments

Comments
 (0)