Make async fn in traits work
This commit is contained in:
parent
ed2a32f22c
commit
5be30f9d79
10 changed files with 46 additions and 41 deletions
|
@ -131,3 +131,9 @@ ast_lowering_arbitrary_expression_in_pattern =
|
|||
arbitrary expressions aren't allowed in patterns
|
||||
|
||||
ast_lowering_inclusive_range_with_no_end = inclusive range with no end
|
||||
|
||||
ast_lowering_trait_fn_async =
|
||||
functions in traits cannot be declared `async`
|
||||
.label = `async` because of this
|
||||
.note = `async` trait functions are not currently supported
|
||||
.note2 = consider using the `async-trait` crate: https://crates.io/crates/async-trait
|
||||
|
|
|
@ -26,12 +26,6 @@ ast_passes_invalid_visibility =
|
|||
.individual_impl_items = place qualifiers on individual impl items instead
|
||||
.individual_foreign_items = place qualifiers on individual foreign items instead
|
||||
|
||||
ast_passes_trait_fn_async =
|
||||
functions in traits cannot be declared `async`
|
||||
.label = `async` because of this
|
||||
.note = `async` trait functions are not currently supported
|
||||
.note2 = consider using the `async-trait` crate: https://crates.io/crates/async-trait
|
||||
|
||||
ast_passes_trait_fn_const =
|
||||
functions in traits cannot be declared const
|
||||
.label = functions in traits cannot be const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue