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 upDeny (by default) transmuting from fn item types to pointer-sized types. #34923
Conversation
rust-highfive
assigned
Aatch
Jul 19, 2016
This comment has been minimized.
This comment has been minimized.
|
r? @Aatch (rust_highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
|
@nikomatsakis This supersedes #34198, for now. I've started a three-way crater build on both PRs, to measure the impact for both changes. |
eddyb
referenced this pull request
Jul 19, 2016
Merged
Make transmuting from fn item types to pointer-sized types a hard error. #34198
This comment has been minimized.
This comment has been minimized.
|
Argh, the report came out half-baked. All of the cases I checked out are just timeouts, while updating the registry. cc @brson |
eddyb
force-pushed the
eddyb:deny-fn-item-transmute
branch
from
d04f81b
to
7de83f0
Jul 26, 2016
This comment has been minimized.
This comment has been minimized.
|
The good crater report shows 3 regressions, I've also done a crater run for #34198, for which the report shows 3 more regressions (because |
This comment has been minimized.
This comment has been minimized.
|
cc @rust-lang/compiler @rust-lang/core -- another question of making warnings into a hard error, though in this case we opted for a more gradual approach by making the lint become Deny By Default, since the impact of this change was initially large. @eddyb's measurements show 3 regressions:
My vote is let's go for it. |
This comment has been minimized.
This comment has been minimized.
|
(I'm in favor) |
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
@nikomatsakis Are we go? |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
@wycats any updates here? Do you have examples where you think the lint is failing to fire or be reported? |
This comment has been minimized.
This comment has been minimized.
|
OK, I think we should land this. It's not irreversible. |
This comment has been minimized.
This comment has been minimized.
|
@bors r+ |
This comment has been minimized.
This comment has been minimized.
|
|
eddyb commentedJul 19, 2016
This sets the #19925 lint (transmute from zero-sized fn item type) to
denyby default.Technically a
[breaking-change], but will not affect dependent crates because of--cap-lints.