-
Notifications
You must be signed in to change notification settings - Fork 13.7k
remove FIXME block from has_significant_drop
, can handle inference
#145181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Let's double check this with crater.
@bors2 try
remove FIXME block from `has_significant_drop`, can handle inference
@craterbot check
👌 Experiment pr-145181
created and queued.
🤖 Automatically detected try build 1383df0
🔍 You can check out the queue and this experiment's details.
i️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more
🚧 Experiment pr-145181
is now running
i️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more
[...] as related queries can now handle type inference.
I think the more likely thing here is that we're now being more responsible and only calling has_significant_drop
on types that don't have infer vars.
I did actually try this- the inference block I removed is certainly being hit in a few cases. I can rerun that experiment to find exactly which if you'd like.
Are you thinking the related queries still don't cope with infer vars? If so, do you know of a way to test this? (locally, not with craterbot ofc)
@compiler-errors https://github.com/rust-lang/rust/blob/master/tests/incremental/issue-86753.rs is an example for where has_significant_drop
is called with an infer var, although admittedly a complex one. Works fine with the block removed.
I do see an argument for favoring canonicalization regardless- I just see this as an avenue for reducing complexity. Whatever seems to be the most appropriate.
🎉 Experiment pr-145181
is completed!
📊 12 regressed and 6 fixed (679566 total)
📰 Open the summary report.
i️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more
compiler-errors
is not on the review rotation at the moment.
They may take a while to respond.
Uh oh!
There was an error while loading. Please reload this page.
The
FIXME
block inTy::has_significant_drop
is outdated as related queries can now handle type inference.rust/compiler/rustc_middle/src/ty/util.rs
Lines 1378 to 1389 in 321a89b
Closes #86868 (other places mentioned in the issue have been resolved, or moved to other issues)
r? types