rust/compiler/rustc_ty_utils/src
bors c8b83785dc Auto merge of #131186 - compiler-errors:precise-capturing-borrowck, r=estebank
Try to point out when edition 2024 lifetime capture rules cause borrowck issues

Lifetime capture rules in 2024 are modified to capture more lifetimes, which sometimes lead to some non-local borrowck errors. This PR attempts to link these back together with a useful note pointing out the capture rule changes.

This is not a blocking concern, but I'd appreciate feedback (though, again, I'd like to stress that I don't want to block this PR on this): I'm worried about this note drowning in the sea of other diagnostics that borrowck emits. I was tempted to change the level of the note to `.span_warn` just so it would show up in a different color. Thoughts?

Fixes #130545

Opening as a draft first since it's stacked on #131183.
r? `@ghost`
2024-10-31 03:36:06 +00:00
..
layout compiler: rustc_abi::Abi => BackendRepr 2024-10-29 14:56:00 -07:00
abi.rs compiler: rustc_abi::Abi => BackendRepr 2024-10-29 14:56:00 -07:00
assoc.rs Auto merge of #131186 - compiler-errors:precise-capturing-borrowck, r=estebank 2024-10-31 03:36:06 +00:00
common_traits.rs TypingMode 🤔 2024-10-29 17:01:24 +01:00
consts.rs nightly feature tracking: get rid of the per-feature bool fields 2024-10-23 09:14:41 +01:00
errors.rs Add warn(unreachable_pub) to rustc_ty_utils. 2024-09-03 08:50:33 +10:00
implied_bounds.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
instance.rs TypingMode 🤔 2024-10-29 17:01:24 +01:00
layout.rs compiler: rustc_abi::Abi => BackendRepr 2024-10-29 14:56:00 -07:00
lib.rs compiler: pre-move code for fixing enum layout ICEs 2024-10-20 02:09:22 -07:00
needs_drop.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
opaque_types.rs Encode cross-crate opaque type origin 2024-10-31 01:35:13 +00:00
representability.rs Remove extern crate rustc_middle from rustc_ty_utils. 2024-05-13 08:20:18 +10:00
sig_types.rs Stop using a special inner body for the coroutine by-move body for async closures 2024-08-26 18:44:19 -04:00
structural_match.rs TypingMode 🤔 2024-10-29 17:01:24 +01:00
ty.rs Merge HostPolarity and BoundConstness 2024-10-30 16:23:16 +00:00