1
Fork 0
rust/compiler/rustc_abi
Jubilee Young 8abff35b41 compiler: compare and hash ExternAbi like its string
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
2025-02-11 20:18:01 -08:00
..
src compiler: compare and hash ExternAbi like its string 2025-02-11 20:18:01 -08:00
Cargo.toml compiler: gate extern "{abi}" in ast_lowering 2025-02-09 20:36:59 -08:00