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
{{ message }}
This repository was archived by the owner on May 28, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: compiler/rustc_lint/messages.ftl
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ lint_array_into_iter =
6
6
or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value
7
7
8
8
lint_async_fn_in_trait = use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified
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`
9
+
.note = you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future`
10
10
.suggestion = you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`
11
11
12
12
lint_atomic_ordering_fence = memory fences cannot have `Relaxed` ordering
Copy file name to clipboardExpand all lines: tests/ui/async-await/in-trait/warn.stderr
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ error: use of `async fn` in public traits is discouraged as auto trait bounds ca
4
4
LL | async fn not_send();
5
5
| ^^^^^
6
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`
7
+
= note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future`
0 commit comments