-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
symbol_names: treat ReifyShim like VtableShim. #70003
Conversation
r? @estebank (rust_highfive has picked a reviewer for you, use r? to override) |
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.
Do we need to update any user-facing documentation?
In particular, for the v0
symbol names, we had an RFC, have we documented those symbol names anywhere? I think we should -- and specifically I think we should as part of the rustc book, I guess? But maybe the shim:...
stuff is sort of "impl defined"..?
Yeah, and we reserved pretty much all of |
@bors r+ OK -- though I still think we should have the docs in some place (presuming that we don't), but that's not a reason to block this PR. |
📌 Commit d01622ccc46f5daf75798c58bdd9330a75cbf9ab has been approved by |
☔ The latest upstream changes (presumably #70174) made this pull request unmergeable. Please resolve the merge conflicts. |
d01622c
to
b7156e8
Compare
@bors r=nikomatsakis |
📌 Commit b7156e8890ed11a71b6bd1d0041bdb641e5dd86f has been approved by |
This comment has been minimized.
This comment has been minimized.
b7156e8
to
14e0aad
Compare
@bors r=nikomatsakis |
📌 Commit 14e0aad has been approved by |
…r=nikomatsakis symbol_names: treat ReifyShim like VtableShim. Without this, the `#[track_caller]` tests don't pass with `-Zsymbol-mangling-version=v0`, because there is a symbol name collision between the `ReifyShim` and the original definition. cc @anp
Rollup of 10 pull requests Successful merges: - rust-lang#70003 (symbol_names: treat ReifyShim like VtableShim.) - rust-lang#70051 (Allow `hir().find` to return `None`) - rust-lang#70126 (Fix ICE caused by truncating a negative ZST enum discriminant) - rust-lang#70197 (For issue 53957: revise unit test to focus on underlying bug of 23076.) - rust-lang#70215 (ast: Compress `AttrId` from `usize` to `u32`) - rust-lang#70218 (Fix deprecated Error.description() usage in docs) - rust-lang#70228 (Remove CARGO_BUILD_TARGET from bootstrap.py) - rust-lang#70231 (Add explanation message for E0224) - rust-lang#70232 (Tweak wording for std::io::Read::read function) - rust-lang#70238 (Add a test for out-of-line module passed through a proc macro) Failed merges: r? @ghost
Without this, the
#[track_caller]
tests don't pass with-Zsymbol-mangling-version=v0
, because there is a symbol name collision between theReifyShim
and the original definition.cc @anp