Use (😏) precise capture instead of Captures trait hack#135416
Use (😏) precise capture instead of Captures trait hack#135416yotamofek wants to merge 1 commit intorust-lang:masterfrom
Captures trait hack#135416Conversation
|
rustbot has assigned @GuillaumeGomez. Use |
|
Some changes occurred in coverage instrumentation. cc @Zalathar Some changes occurred to MIR optimizations cc @rust-lang/wg-mir-opt rust-analyzer is developed in its own repository. If possible, consider making this change to rust-lang/rust-analyzer instead. cc @rust-lang/rust-analyzer Some changes occurred in exhaustiveness checking cc @Nadrieril |
63d096d to
2b64ab5
Compare
|
r? compiler |
|
At least looks good to me. :) |
|
Many of the functions that currently use For that reason, even though we have Whereas if we do this now, we either lose that easily-greppable information from the source, or we’re just replacing one perfectly-functional hack with a bunch of noisy TODOs to revisit later. |
|
For the compiler side, I think the plan was to move to edition 2024 with its different capture rules instead of what this PR proposes. |
Waiting for the 2024 edition sounds like a better plan then, thank you for taking the time to explain. So should I close this? BTW, are there any plans for a lint that'll point out removable |
|
Yea, I'd prefer if we close this. I've got a PR (#129636) open to upgrade the compiler to edition 2024, but I'm waiting for the edition to be stable so that we can upgrade all of the crates that currently rust-analyzer shares with rustc, rather than having to hold them back separately. I've implemented a lint for redundant captures in the |
No description provided.