-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Fix inconsistent symbol mangling of integers constants with -Zverbose #94359
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(rust-highfive has picked a reviewer for you, use r? to override) |
tmiasko
commented
Feb 25, 2022
//[v0]~| ERROR demangling-alt(<c::Signed<-152>>::f) | ||
//[legacy]~^^^^ ERROR symbol-name(_ZN1c22Signed$LT$.152_i16$GT$ | ||
//[legacy]~| ERROR demangling(c::Signed<.152_i16>::f:: | ||
//[legacy]~| ERROR demangling-alt(c::Signed<.152_i16>::f) |
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.
The .
instead of -
seems quite surprising, but preexisting. Apparently -
, :
and .
are mangled the same way, and demangled as .
.
7ed040e
to
09c1d9f
Compare
The existing v0 tests have been slightly adjusted for compatibility with legacy mangler, which requires an item to have an ancestor in a value namespace or a type namespace to produce a symbol for it. In v0 mangling this results in an extra `Nv` component.
09c1d9f
to
8fc60c0
Compare
r=me with comments #94359 (comment) added. |
The `PrettyPrinter` changes formatting of array size and integer constants based on `-Zverbose`, so its implementation cannot be used in legacy symbol mangling.
8fc60c0
to
99a7779
Compare
@bors r+ |
📌 Commit 99a7779 has been approved by |
bors
added a commit
to rust-lang-ci/rust
that referenced
this pull request
Mar 1, 2022
…askrgr Rollup of 3 pull requests Successful merges: - rust-lang#94359 (Fix inconsistent symbol mangling of integers constants with -Zverbose) - rust-lang#94465 (6 - Make more use of `let_chains`) - rust-lang#94470 (:arrow_up: rust-analyzer) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Labels
S-waiting-on-bors
Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The
PrettyPrinter
changes formatting of array size and integerconstants based on
-Zverbose
, so its implementation cannot be used inlegacy symbol mangling.
Example symbol demangling before changes: