Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: support both (
legacy
and v0
) choices of mangling.
- Loading branch information
Showing
19 changed files
with
245 additions
and
58 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
8 changes: 4 additions & 4 deletions
8
src/test/ui/symbol-names/basic.stderr → src/test/ui/symbol-names/basic.legacy.stderr
This file contains 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
This file contains 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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,9 +1,18 @@ | |||
// revisions: legacy v0 | |||
//[legacy]compile-flags: -Z symbol-mangling-version=legacy | |||
//[v0]compile-flags: -Z symbol-mangling-version=v0 | |||
|
|||
#![feature(rustc_attrs)] | #![feature(rustc_attrs)] | ||
|
|
||
#[rustc_symbol_name] | #[rustc_symbol_name] | ||
//~^ ERROR symbol-name(_ZN5basic4main | //[legacy]~^ ERROR symbol-name(_ZN5basic4main | ||
//~| ERROR demangling(basic::main | //[legacy]~| ERROR demangling(basic::main | ||
//~| ERROR demangling-alt(basic::main) | //[legacy]~| ERROR demangling-alt(basic::main) | ||
#[rustc_def_path] //~ ERROR def-path(main) | //[v0]~^^^^ ERROR symbol-name(_RNvCs4fqI2P2rA04_5basic4main) | ||
//[v0]~| ERROR demangling(basic[317d481089b8c8fe]::main) | |||
//[v0]~| ERROR demangling-alt(basic::main) | |||
#[rustc_def_path] | |||
//[legacy]~^ ERROR def-path(main) | |||
//[v0]~^^ ERROR def-path(main) | |||
fn main() { | fn main() { | ||
} | } |
This file contains 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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,26 @@ | |||
error: symbol-name(_RNvCs4fqI2P2rA04_5basic4main) | |||
--> $DIR/basic.rs:7:1 | |||
| | |||
LL | #[rustc_symbol_name] | |||
| ^^^^^^^^^^^^^^^^^^^^ | |||
|
|||
error: demangling(basic[317d481089b8c8fe]::main) | |||
--> $DIR/basic.rs:7:1 | |||
| | |||
LL | #[rustc_symbol_name] | |||
| ^^^^^^^^^^^^^^^^^^^^ | |||
|
|||
error: demangling-alt(basic::main) | |||
--> $DIR/basic.rs:7:1 | |||
| | |||
LL | #[rustc_symbol_name] | |||
| ^^^^^^^^^^^^^^^^^^^^ | |||
|
|||
error: def-path(main) | |||
--> $DIR/basic.rs:14:1 | |||
| | |||
LL | #[rustc_def_path] | |||
| ^^^^^^^^^^^^^^^^^ | |||
|
|||
error: aborting due to 4 previous errors | |||
|
16 changes: 8 additions & 8 deletions
16
src/test/ui/symbol-names/impl1.stderr → src/test/ui/symbol-names/impl1.legacy.stderr
This file contains 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
Oops, something went wrong.