mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-28 20:16:58 +03:00
c45e831d8f
Warn against changes in opaque lifetime captures in 2024 Adds a (mostly[^1]) machine-applicable lint `IMPL_TRAIT_OVERCAPTURES` which detects cases where we will capture more lifetimes in edition 2024 than in edition <= 2021, which may lead to erroneous borrowck errors. This lint is gated behind the `precise_capturing` feature gate and marked `Allow` for now. [^1]: Except when there are APITs -- I may work on that soon r? oli-obk