Uh oh!
There was an error while loading. Please reload this page.
[DO NOT MERGE] crater run on the tail expression drop order lint - #129604
[DO NOT MERGE] crater run on the tail expression drop order lint#129604dingxiangfei2009 wants to merge 1 commit into
Conversation
rustbot
commented
Aug 26, 2024
rust-log-analyzer
commented
Aug 26, 2024
The job Click to see the possible cause of the failure (guessed by this bot) |
jieyouxu
commented
Aug 26, 2024
r? jieyouxu |
jieyouxu
commented
Aug 26, 2024
The tests may have to be temporarily ignored since you're changing lint's behavior. |
dingxiangfei2009
commented
Aug 26, 2024
@jieyouxu Let's put this on ice briefly. @traviscross and I have come up with a plan to enable both the lint and the feature gate over in #129607. This will help us narrow down to a smaller set of crates to test for the lint and/or the feature separately. |
jieyouxu
commented
Aug 26, 2024
That seems fine with me. Feel free to ping me if you are happy with a set of changes that you would like a crater run on. |
@jieyouxu@traviscross I need your advice here. Given that simulating the shorter tail expression temporary lifetime on Edition 2021 will stop If this makes sense, I would propose to do checking only with WDYT? |
traviscross
commented
Aug 27, 2024
Sounds OK . You might want to see if this can be included in the crater rollup which is scheduled to run next: |
compiler-errors
commented
Aug 27, 2024
@bors try |
…-order-crater-run, r=<try> [DO NOT MERGE] crater run on the tail expression drop order lint This PR is intended for a crater run *for the lint tail-expr-drop-order*. This need another patch on `src/tools/cargo` which is still in progress.
bors
commented
Aug 27, 2024
[CRATER] Crater Rollup This is a " crater rollup" of: * rust-lang#126452 * rust-lang#128784 * rust-lang#129392 * rust-lang#129422 * rust-lang#129543 * rust-lang#129604 **What is a crater rollup?** It's simply a crater job that is run on all of the containing PRs *together*, and then we can set the crates list for each of these jobs to just the failures after it's done. It should cut out on the bulk of "normal" crates that do nothing and simply just take time to build. r? `@ghost`
[CRATER] Crater Rollup This is a " crater rollup" of: * rust-lang#126452 * rust-lang#128784 * rust-lang#129392 * rust-lang#129422 * rust-lang#129543 * rust-lang#129604 **What is a crater rollup?** It's simply a crater job that is run on all of the containing PRs *together*, and then we can set the crates list for each of these jobs to just the failures after it's done. It should cut out on the bulk of "normal" crates that do nothing and simply just take time to build. r? `@ghost`
bors
commented
Aug 28, 2024
☀️ Try build successful - checks-actions |
craterbot
commented
Aug 31, 2024
🚨 Error: experiment 'pr-129604' not found 🆘 If you have any trouble with Crater please ping |
compiler-errors
commented
Aug 31, 2024
oops! crater never was started on this one anyways. @craterbot mode=check-only start=master#ab869e094a907cc5d19b4080f22eccaf347f1f95 end=try#4d98531622e1718ae0bc3c7a1ab9cd8938428452+rustflags=-Dtail_expr_drop_order crates=https://gist.githubusercontent.com/compiler-errors/4a09d64cd15dc3dca50edeea26cc9938/raw/b4181c225709e120a11d91cce69d0d4da3e652d0/regressed.txt p=1 |
craterbot
commented
Aug 31, 2024
🚨 Error: experiment 'pr-129604' not found 🆘 If you have any trouble with Crater please ping |
compiler-errors
commented
Aug 31, 2024
@craterbot name=pr-129604-1 mode=check-only start=master#ab869e094a907cc5d19b4080f22eccaf347f1f95 end=try#4d98531622e1718ae0bc3c7a1ab9cd8938428452+rustflags=-Dtail_expr_drop_order crates=https://gist.githubusercontent.com/compiler-errors/4a09d64cd15dc3dca50edeea26cc9938/raw/b4181c225709e120a11d91cce69d0d4da3e652d0/regressed.txt p=1 |
craterbot
commented
Aug 31, 2024
🚨 Error: experiment 'pr-129604-1' not found 🆘 If you have any trouble with Crater please ping |
compiler-errors
commented
Aug 31, 2024
oops i needed a @craterbot run mode=check-only start=master#ab869e094a907cc5d19b4080f22eccaf347f1f95 end=try#4d98531622e1718ae0bc3c7a1ab9cd8938428452+rustflags=-Dtail_expr_drop_order crates=https://gist.githubusercontent.com/compiler-errors/4a09d64cd15dc3dca50edeea26cc9938/raw/b4181c225709e120a11d91cce69d0d4da3e652d0/regressed.txt p=1 |
craterbot
commented
Aug 31, 2024
👌 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
@jieyouxu@traviscross The lint seems to be working fine from the report, but as I have feared it has a lot of false positives. For instance, the lint fires when a value with significant drop is moved/consumed at a tail expression, even though in fact it will not be dropped. structDroppy;implDroppy{fnconsume(self) -> u8{0// dropping `self` here}}implDropforDroppy{ .. }fndroppy_is_consumed() -> u8{let droppy = Droppy;
droppy.consume()}There is a solution, which is to use The question now is, should we leave the lint as EDIT: I checked the |
dingxiangfei2009
commented
Aug 31, 2024
Another solution is to take a subset of visitor rules from |
@dingxiangfei2009 I'm not super sure about this in terms of what the correct approach is. I would suggest that we discuss this in a new #t-compiler/help zulip thread. |
craterbot
commented
Sep 1, 2024
🚧 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
craterbot
commented
Sep 1, 2024
🎉 Experiment
|
dingxiangfei2009
commented
Jul 9, 2025
Our job here is done. Thank you all. |
This PR is intended for a crater run for the lint tail-expr-drop-order.
This need another patch on
src/tools/cargowhich is still in progress.