Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upincr.comp.: Fix HashStable for ty::RegionKind and trans item order #45176
Conversation
michaelwoerister
added some commits
Oct 10, 2017
rust-highfive
assigned
nikomatsakis
Oct 10, 2017
nikomatsakis
approved these changes
Oct 10, 2017
|
Seems fine. I left a question, but I'll r+ in the meantime. |
| // the codegen tests and can even make item order | ||
| // unstable. | ||
| InstanceDef::Item(def_id) => { | ||
| tcx.hir.as_local_node_id(def_id) |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
michaelwoerister
Oct 11, 2017
Author
Contributor
I'm not sure that DefIds also reflect definition order. They probably do. This whole thing is a bit of a hack anyway. We could sort by Span...
This comment has been minimized.
This comment has been minimized.
nikomatsakis
Oct 11, 2017
Contributor
DefIds do not reflect definition order, except in anonymous cases like impls. Otherwise, they would sort by name. Why do we care if these are reflect "definition order" per se?
This comment has been minimized.
This comment has been minimized.
michaelwoerister
Oct 12, 2017
Author
Contributor
I makes writing the codegen tests a lot more pleasant if you know in which order things will appear in LLVM IR. You could of course also run the compiler once to find out what the order is but that's another hurdle to writing such tests. Also the tests might break if we changed the details of our symbol mangling (which we've done quite a few times). What we have now is "OK" in comparison, I think.
This comment has been minimized.
This comment has been minimized.
|
@bors r+ |
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
@bors p=1 Taking the liberty of bumping the priority of this since it will (hopefully) unbreak perf.rlo. |
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
Oct 12, 2017
This comment has been minimized.
This comment has been minimized.
|
|
bors
merged commit 1235836
into
rust-lang:master
Oct 12, 2017
This comment has been minimized.
This comment has been minimized.
|
@michaelwoerister @nikomatsakis the bootstrap compiler update has bounced I believe due to #45161 and I think this PR is not currently in beta. Any objections to backporting this? |
alexcrichton
referenced this pull request
Oct 19, 2017
Merged
Bump to 1.23 and update bootstrap #45285
kennytm
added
the
beta-nominated
label
Oct 19, 2017
This comment has been minimized.
This comment has been minimized.
|
No objections. |
michaelwoerister commentedOct 10, 2017
Fixes #45161 and the failing rust-icci tests.
r? @nikomatsakis