You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: compiler/rustc_lint/messages.ftl
+4
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,10 @@ lint_array_into_iter =
5
5
.use_explicit_into_iter_suggestion =
6
6
or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value
7
7
8
+
lint_async_fn_in_trait = usage of `async fn` in trait is discouraged because they do not automatically have auto trait bounds
9
+
.note = you can suppress this lint if you plan to use the trait locally, for concrete types, or do not care about auto traits like `Send` on the future
10
+
.suggestion = you can alternatively desugar the `async fn` and any add additional traits such as `Send` to the signature
11
+
8
12
lint_atomic_ordering_fence = memory fences cannot have `Relaxed` ordering
9
13
.help = consider using ordering modes `Acquire`, `Release`, `AcqRel` or `SeqCst`
error: usage of `async fn` in trait is discouraged because they do not automatically have auto trait bounds
2
+
--> $DIR/warn.rs:7:5
3
+
|
4
+
LL | async fn not_send();
5
+
| ^^^^^
6
+
|
7
+
= note: you can suppress this lint if you plan to use the trait locally, for concrete types, or do not care about auto traits like `Send` on the future
8
+
note: the lint level is defined here
9
+
--> $DIR/warn.rs:4:9
10
+
|
11
+
LL | #![deny(async_fn_in_trait)]
12
+
| ^^^^^^^^^^^^^^^^^
13
+
help: you can alternatively desugar the `async fn` and any add additional traits such as `Send` to the signature
0 commit comments