Uh oh!
There was an error while loading. Please reload this page.
Deprecate the FxHashMap() and FxHashSet() constructor function hack - #55114
Conversation
rust-highfive
commented
Oct 16, 2018
(rust_highfive has picked a reviewer for you, use r? to override) |
petrochenkov
commented
Oct 16, 2018
Nit: I'd personally use |
oli-obk
commented
Oct 16, 2018
This is possible in struct construction cases but not when local variables are initialized and immediately used by calling e.g. I will adjust all use sites accordingly |
oli-obk
commented
Oct 16, 2018
Also, imports won't get fewer, as most of the time you need the type name for the struct fields |
Uh, I'd prefer if you wouldn't do that change. That's throwing away useful type information, which can already be hard to get by with all the inference we are doing. It doesn't make code more readable. We should optimize for reading the code, which happens all the time, not changing the type, which only happens rarely. |
RalfJung
commented
Oct 16, 2018
So, is this fully replacing #52591? Looks to be just a partial successor? |
oli-obk
commented
Oct 16, 2018
Yes that's on purpose. Otherwise I'll never stay ahead of the bitrot curve |
oli-obk
commented
Oct 16, 2018
So... how do I continue? 😆 @petrochenkov are you fine with not changing everything to |
petrochenkov
commented
Oct 16, 2018
@oli-obk |
RalfJung
commented
Oct 16, 2018
I still think this does more harm then good -- now I have to scroll to the struct definition to figure out the types. That can be arbitrarily far away. But I won't fight over this. |
nikomatsakis
commented
Oct 16, 2018
FWIW, in my own projects, the rule I follow is usually:
|
nikomatsakis
commented
Oct 16, 2018
r=me with whichever conclusion we reach. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Uh oh!
There was an error while loading. Please reload this page.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
bors
commented
Oct 17, 2018
☔ The latest upstream changes (presumably #54671) made this pull request unmergeable. Please resolve the merge conflicts. |
This comment has been minimized.
This comment has been minimized.
sanmai-NL
commented
Oct 17, 2018
Ad @nikomatsakis in #55114 (comment): |
nikomatsakis
commented
Oct 17, 2018
@sanmai-NL true. But that particular comment was just giving my preferences. In any case, I think such docs might be appropriate for rustc-guide -- feels like it doesn't belong in the API guidelines (particularly since these decisions don't affect the API very much). (That said, I do think there is an API decision here, in that I've come to favor implementing |
nikomatsakis
commented
Oct 17, 2018
@bors r+ |
bors
commented
Oct 17, 2018
📌 Commit 8892efb25d88d37da63ae434d3150da4c405e1d5 has been approved by |
oli-obk
commented
Oct 19, 2018
@bors r=nikomatsakis p=1 bitrot priority |
bors
commented
Oct 19, 2018
📌 Commit 53e92f4 has been approved by |
bors
commented
Oct 19, 2018
Deprecate the `FxHashMap()` and `FxHashSet()` constructor function hack
bors
commented
Oct 19, 2018
💔 Test failed - status-appveyor |
RalfJung
commented
Oct 19, 2018
Looks like it timed out after 3h. @bors retry |
bors
commented
Oct 19, 2018
⌛ Testing commit 53e92f4 with merge 528939ce01557bc516a4993e81be9d0ff8a19e85... |
bors
commented
Oct 19, 2018
💔 Test failed - status-appveyor |
kennytm
commented
Oct 20, 2018
@bors retry AWS S3 Outage in US-WEST-1. |
bors
commented
Oct 20, 2018
Deprecate the `FxHashMap()` and `FxHashSet()` constructor function hack
bors
commented
Oct 20, 2018
☀️ Test successful - status-appveyor, status-travis |
No description provided.