-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Rewrite dropck to be more correct #27261
Conversation
I have no problem with the refactoring overall. E.g. I have never been wedded to the use of the I am concerned about the removal of the handling of |
This fixes a few soundness bugs in dropck, so to anyone who relied on them, this is a [breaking-change] Fixes rust-lang#24086. Fixes rust-lang#25389. Fixes rust-lang#25598. Fixes rust-lang#25750. Fixes rust-lang#26641. Fixes rust-lang#26657. Fixes rust-lang#27240. Fixes rust-lang#27241.
My main opposition to the With the current state of |
080bafa
to
7f9953b
Compare
[rebased] |
|
||
let destructor_for_type = rcx.tcx().destructor_for_type.borrow(); | ||
// FIXME(arielb1): don't be O(n^2) | ||
if cx.breadcrumbs.contains(&ty) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not use FnvHashSet<Ty<'tcx>>
?
(okay, I'm now curious why the heck I added |
@bors r+ |
📌 Commit e99b53e has been approved by |
(while this is a |
⌛ Testing commit e99b53e with merge ec7f2e5... |
💔 Test failed - auto-linux-32-opt |
@bors: retry On Tue, Jul 28, 2015 at 10:12 PM, bors [email protected] wrote:
|
This fixes multiple bugs, and as several of these are soundness issue, is a [breaking-change]. r? @pnkfelix
Marking this as stable-regression so i can find it later, even though these are just soundness fixes. |
This fixes multiple bugs, and as several of these are soundness issue, is a [breaking-change].
r? @pnkfelix