Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sess: default to v0 symbol mangling #89917

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Oct 15, 2021

  1. sess: default to v0 symbol mangling

    Rust's current mangling scheme depends on compiler internals; loses
    information about generic parameters (and other things) which makes for
    a worse experience when using external tools that need to interact with
    Rust symbol names; is inconsistent; and can contain `.` characters
    which aren't universally supported. Therefore, Rust has defined its own
    symbol mangling scheme which is defined in terms of the Rust language,
    not the compiler implementation; encodes information about generic
    parameters in a reversible way; has a consistent definition; and
    generates symbols that only use the characters `A-Z`, `a-z`, `0-9`, and
    `_`.
    
    Support for the new Rust symbol mangling scheme has been added to
    upstream tools that will need to interact with Rust symbols (e.g.
    debuggers).
    
    This commit changes the default symbol mangling scheme from the legacy
    scheme to the new Rust mangling scheme.
    
    Signed-off-by: David Wood <[email protected]>
    davidtwco committed Oct 15, 2021
    Configuration menu
    Copy the full SHA
    4f1bf2a View commit details
    Browse the repository at this point in the history