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
+11-8
Original file line number
Diff line number
Diff line change
@@ -9,14 +9,6 @@ lint_array_into_iter =
9
9
.use_explicit_into_iter_suggestion =
10
10
or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value
11
11
12
-
lint_impl_trait_overcaptures = `{$self_ty}` will capture more lifetimes than possibly intended in edition 2024
13
-
.note = specifically, {$num_captured->
14
-
[one] this lifetime is
15
-
*[other] these lifetimes are
16
-
} in scope but not mentioned in the type's bounds
17
-
.note2 = all lifetimes in scope will be captured by `impl Trait`s in edition 2024
18
-
.suggestion = use the precise capturing `use<...>` syntax to make the captures explicit
19
-
20
12
lint_async_fn_in_trait = use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified
21
13
.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`
22
14
.suggestion = you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change
0 commit comments