about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/expr.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-05-14 07:44:16 +0000
committerbors <bors@rust-lang.org>2024-05-14 07:44:16 +0000
commitc45e831d8fcd33d656047ba97d263c4b91a00735 (patch)
tree2091efb189b1577ed406a1aa1795c094bfaba75f /compiler/rustc_parse/src/parser/expr.rs
parent58426f4a5b69d10db1b0ffa017bac25f1b2e801e (diff)
parent052de1da4f579f63d2403f8045f2d6e342a90200 (diff)
downloadrust-c45e831d8fcd33d656047ba97d263c4b91a00735.tar.gz
rust-c45e831d8fcd33d656047ba97d263c4b91a00735.zip
Auto merge of #124228 - compiler-errors:lint-overcaptures, r=oli-obk
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
Diffstat (limited to 'compiler/rustc_parse/src/parser/expr.rs')
0 files changed, 0 insertions, 0 deletions