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
Rollup merge of #127619 - compiler-errors:precise-capturing-better-sugg, r=oli-obk
Suggest using precise capturing for hidden type that captures region
Adjusts the "add `+ '_`" suggestion for opaques to instead suggest adding or reusing the `+ use<>` in the opaque.
r? oli-obk or please re-roll if you're busy!
Copy file name to clipboardExpand all lines: compiler/rustc_infer/messages.ftl
+4
Original file line number
Diff line number
Diff line change
@@ -221,6 +221,10 @@ infer_opaque_hidden_type =
221
221
222
222
infer_outlives_bound = lifetime of the source pointer does not outlive lifetime bound of the object type
223
223
infer_outlives_content = lifetime of reference outlives lifetime of borrowed content...
224
+
225
+
infer_precise_capturing_existing = add `{$new_lifetime}` to the `use<...>` bound to explicitly capture it
226
+
infer_precise_capturing_new = add a `use<...>` bound to explicitly capture `{$new_lifetime}`
227
+
224
228
infer_prlf_defined_with_sub = the lifetime `{$sub_symbol}` defined here...
225
229
infer_prlf_defined_without_sub = the lifetime defined here...
226
230
infer_prlf_known_limitation = this is a known limitation that will be removed in the future (see issue #100013 <https://github.com/rust-lang/rust/issues/100013> for more information)
0 commit comments