Directly map each ExternAbi variant to its string and back again. This has a few advantages: - By making the ABIs compare equal to their strings, we can easily lexicographically sort them and use that sorted slice at runtime. - We no longer need a workaround to make sure the hashes remain stable, as they already naturally are (by being the hashes of unique strings). - The compiler can carry around less &str wide pointers
27 lines
527 B
Plaintext
27 lines
527 B
Plaintext
error: symbol-name(_ZN5basic4main17hc88b9d80a69d119aE)
|
|
--> $DIR/basic.rs:8:1
|
|
|
|
|
LL | #[rustc_symbol_name]
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: demangling(basic::main::hc88b9d80a69d119a)
|
|
--> $DIR/basic.rs:8:1
|
|
|
|
|
LL | #[rustc_symbol_name]
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: demangling-alt(basic::main)
|
|
--> $DIR/basic.rs:8:1
|
|
|
|
|
LL | #[rustc_symbol_name]
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: def-path(main)
|
|
--> $DIR/basic.rs:15:1
|
|
|
|
|
LL | #[rustc_def_path]
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 4 previous errors
|
|
|