Skip to content

name mangling cannot be reversed #7610

Closed

Description

@thestinger

We're using hacks like identity numbers instead of paths to traits and types.

Activity

  1. thestinger commented on Jul 6, 2013

    @thestinger
    ContributorAuthor

    Nominating for the production ready milestone. Debugging and profiling really need to be sane, and these are going to be visible in any traceback.

  2. brson commented on Jul 8, 2013

    @brson
    Contributor

    Please do not assign issues to milestones. The nomination process is documented here: https://github.com/mozilla/rust/wiki/Note-milestone-nomination

  3. thestinger commented on Jul 8, 2013

    @thestinger
    ContributorAuthor

    @brson: Ah, I had the wrong impression about how the process worked.

  4. pnkfelix commented on Sep 4, 2013

    @pnkfelix
    Contributor

    Visiting for triage, email from 2013-09-02.

    I might argue that this should be part of Milestone 4, Well-Covered, before production-ready; Tools (both internal and third-party) to evaluate code quality and code correctness are going to need this.

  5. alexcrichton commented on Sep 5, 2013

    @alexcrichton
    Member

    Improvement will be made in #8875, although it's mostly fixing bugs there in name collisions, and I think that there's still room for improvement.

  6. catamorphism commented on Sep 12, 2013

    @catamorphism
    Contributor

    Accepted for production-ready

  7. pnkfelix commented on Mar 20, 2014

    @pnkfelix
    Contributor

    Assiging to 1.0 milestone, since it would be good to have this and it sounds like we might almost already have it. But also giving it priority P-low.

  8. added this to the 1.0 milestone on Mar 20, 2014
  9. alexcrichton commented on May 5, 2014

    @alexcrichton
    Member

    Nominating for removal from a milestone. This is pretty backwards compatible, I think it's safe to have the exact definition of our symbols in flux at 1.0.

  10. removed this from the 1.0 milestone on May 8, 2014
  11. brson commented on May 8, 2014

    @brson
    Contributor

    P-low, not 1.0.

  12. alexcrichton commented on May 31, 2014

    @alexcrichton
    Member

    http://mentorembedded.github.io/cxx-abi/abi.html#mangle.template-param appears to be a good summary of C++ name mangling and how we may be able to leverage the support from C++ for things like generics.

  13. steveklabnik commented on Apr 28, 2015

    @steveklabnik
    Contributor

    Triage: no changes here.

  14. steveklabnik commented on Jun 6, 2016

    @steveklabnik
    Contributor

    Triage: no change

  15. bstrie commented on Mar 22, 2017

    @bstrie
    Contributor

    I'm not sure what the complete extent of the scope of this issue was intended to be, but our mangled symbols are indeed reversible (see @alexcrichton 's repo at https://github.com/alexcrichton/rustc-demangle/blob/master/src/lib.rs ). I highly suspect that the exact symbol mangling scheme isn't considered stable though, but I'd consider that to be a distinct issue that we'd need to tackle if we ever wanted to stabilize our ABI.

  16. added a commit that references this issue on Sep 28, 2021
  17. added a commit that references this issue on Aug 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-codegenArea: Code generationP-lowLow priority

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions