rust/compiler/rustc_symbol_mangling/src
Stuart Cook d1b9331a76
Rollup merge of #148452 - Fulgen301:pdb-large-symbols-v0, r=jackh726
Mangle symbols with a mangled name close to PDB limits with v0 instead of legacy mangling to avoid linker errors

This is rust-lang/compiler-team#934

As PDB debuginfo has a 64KiB limit for symbol names, we use v0 mangling instead of legacy mangling for symbol names >= 65000 bytes if PDB is used. The cutoff number was chosen to leave some room for potential errors in the empirical measurement of the limit of 65521 bytes, as well as potential symbol prefixes and suffixes that are applied later, plus some generous extra space.

Tracking issue: rust-lang/rust#148429
2025-11-26 23:32:05 +11:00
..
errors.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
export.rs Remove DynKind 2025-09-17 04:46:46 +02:00
hashed.rs Move hashes from rustc_data_structure to rustc_hashes so they can be shared with rust-analyzer 2025-02-16 16:18:30 -05:00
legacy.rs Split impl_(opt_)trait_ref 2025-10-17 08:36:34 -05:00
lib.rs Rollup merge of #148452 - Fulgen301:pdb-large-symbols-v0, r=jackh726 2025-11-26 23:32:05 +11:00
test.rs erase_regions to erase_and_anonymize_regions 2025-09-09 14:49:16 +02:00
v0.rs add implementation-internal namespace for globalasm 2025-11-25 13:56:43 +00:00