Repository navigation
Fix a splat legacy demangling display bug - #160050
Conversation
|
r? @camelid rustbot has assigned @camelid. Use Why was this reviewer chosen?The reviewer was selected based on:
|
This comment was marked as resolved.
This comment was marked as resolved.
c82af0a to
980ae5d
Compare
This comment has been minimized.
This comment has been minimized.
This comment was marked as outdated.
This comment was marked as outdated.
This comment has been minimized.
This comment has been minimized.
980ae5d to
1099c87
Compare
1099c87 to
149a65c
Compare
149a65c to
9f6099c
Compare
This comment has been minimized.
This comment has been minimized.
9f6099c to
8db7925
Compare
This comment has been minimized.
This comment has been minimized.
8db7925 to
511d292
Compare
|
@rustbot ready I changed this PR to accept 8-16 character crate hashes in normalisation regexes, so it no longer depends on rust-lang/rustc-demangle#94 being reviewed, merged, and updated in rustc's deps. This is consistent with the normalisation approach taken in the UI test framework. |
This comment was marked as resolved.
This comment was marked as resolved.
| //[legacy]~| ERROR demangling(splat_mangling::main::Type<*mut fn(u32,i8,#[rustc_splat] (f64,))>:: | ||
| //[legacy]~| ERROR demangling-alt(splat_mangling::main::Type<*mut fn(u32,i8,#[rustc_splat] (f64,))>) | ||
| //[v0,default]~^^^^ ERROR symbol-name(_RMs6_NvCsCRATE_HASH_14splat_mangling4mainINtB<REF>_4TypeOFmawTdEEuE) | ||
| //[v0,default]~| ERROR demangling(<splat_mangling[ | ||
| //[v0,default]~| ERROR demangling-alt(<splat_mangling::main::Type<*mut fn(u32, i8, #[splat] (f64,))>>) |
There was a problem hiding this comment.
Is it intentional that legacy mangling says #[rustc_splat] but v0 says #[splat]? It seems like v0 is wrong.
There was a problem hiding this comment.
v0 is not fixed, but also out of scope for this PR. v0 requires rust-lang/rustc-demangle#93 to be reviewed and merged, a rustc-demangle release, and a version bump in rust-lang/rust to fix.
So I think it's best that they're fixed separately.
I'll do a rebase right now.
By accepting 8-16 character crate hashes
2a313d7 to
2fb58b9
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
|
Just a change from ERROR to NOTE on some log lines @rustbot ready |
This comment was marked as resolved.
This comment was marked as resolved.
|
@bors r+ rollup |
…camelid Fix a splat legacy demangling display bug Tracking issue: rust-lang#153629 This PR fixes a splat legacy demangling display bug, where the comma is in the wrong place in the argument list. It also does a cleanup from @folkertdev's PR rust-lang#159643 review: - move rustfmt::skip to main() and deduplicate it: rust-lang#159643 (comment) @rustbot label +F-splat +C-bug +A-name-mangling Edit: this PR now accepts 8-16 character crate hashes in normalisation regexes, so it no longer depends on rust-lang/rustc-demangle#94 being reviewed, merged, and updated in rustc's deps Edit 2: this PR only fixes legacy demangling. The v0 splat attribute name is not changed here, because it requires rust-lang/rustc-demangle#93 to be reviewed and merged, a rustc-demangle release, and a version bump in rust-lang/rust to fix. That seems to be better done in another PR.
…uwer Rollup of 12 pull requests Successful merges: - #164040 (move `BoundVarReplacer` into rustc_type_ir) - #162934 (bootstrap: Let test-float-parse follow --target) - #164269 (convert non-generic diagnostic attribute placeholders to snake_case) - #160050 (Fix a splat legacy demangling display bug) - #163383 (Provide context span pointing at trait/item when talking about assoc items) - #164023 (make `with_post_analysis_normalized` invalidate rigid aliases) - #164041 (Add regression test for dead-code with external trait impl) - #164166 (Ignore thread-related tests for UEFI) - #164229 (Update outdated `hir_attrs` doc) - #164244 (Remove the 'sup' method from 'At' and migrate uses to 'sup_raw') - #164257 (Add transmutability test to cover for superseded PR) - #164263 (Fix expected output for x86-64-sysv64-arg-ext.apple.stderr)
Rollup merge of #160050 - teor2345:splat-legacy-demangle, r=camelid Fix a splat legacy demangling display bug Tracking issue: #153629 This PR fixes a splat legacy demangling display bug, where the comma is in the wrong place in the argument list. It also does a cleanup from @folkertdev's PR #159643 review: - move rustfmt::skip to main() and deduplicate it: #159643 (comment) @rustbot label +F-splat +C-bug +A-name-mangling Edit: this PR now accepts 8-16 character crate hashes in normalisation regexes, so it no longer depends on rust-lang/rustc-demangle#94 being reviewed, merged, and updated in rustc's deps Edit 2: this PR only fixes legacy demangling. The v0 splat attribute name is not changed here, because it requires rust-lang/rustc-demangle#93 to be reviewed and merged, a rustc-demangle release, and a version bump in rust-lang/rust to fix. That seems to be better done in another PR.
…uwer Rollup of 12 pull requests Successful merges: - rust-lang/rust#164040 (move `BoundVarReplacer` into rustc_type_ir) - rust-lang/rust#162934 (bootstrap: Let test-float-parse follow --target) - rust-lang/rust#164269 (convert non-generic diagnostic attribute placeholders to snake_case) - rust-lang/rust#160050 (Fix a splat legacy demangling display bug) - rust-lang/rust#163383 (Provide context span pointing at trait/item when talking about assoc items) - rust-lang/rust#164023 (make `with_post_analysis_normalized` invalidate rigid aliases) - rust-lang/rust#164041 (Add regression test for dead-code with external trait impl) - rust-lang/rust#164166 (Ignore thread-related tests for UEFI) - rust-lang/rust#164229 (Update outdated `hir_attrs` doc) - rust-lang/rust#164244 (Remove the 'sup' method from 'At' and migrate uses to 'sup_raw') - rust-lang/rust#164257 (Add transmutability test to cover for superseded PR) - rust-lang/rust#164263 (Fix expected output for x86-64-sysv64-arg-ext.apple.stderr)
View all comments
Tracking issue: #153629
This PR fixes a splat legacy demangling display bug, where the comma is in the wrong place in the argument list.
It also does a cleanup from @folkertdev's PR #159643 review:
@rustbot label +F-splat +C-bug +A-name-mangling
Edit: this PR now accepts 8-16 character crate hashes in normalisation regexes, so it no longer depends on rust-lang/rustc-demangle#94 being reviewed, merged, and updated in rustc's deps
Edit 2: this PR only fixes legacy demangling. The v0 splat attribute name is not changed here, because it requires rust-lang/rustc-demangle#93 to be reviewed and merged, a rustc-demangle release, and a version bump in rust-lang/rust to fix. That seems to be better done in another PR.