GithubHelp home page GithubHelp logo

Comments (2)

japaric avatar japaric commented on June 25, 2024

/rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/src/libcore/panicking.rs:92

it's not straightforward to map the git hash in this path to a local rust-src component (Rust source code)

It may be most accurate to change these paths into https://github.com/rust-lang/rust/blob/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/core/src/panicking.rs#L92 but this can't be opened in VS code.

The rust-docs component provides a file in $(rustc --print sysroot)/share/doc/rust/html/version_info.html with these contents:

<div id="versioninfo">
  <img src="https://www.rust-lang.org/logos/rust-logo-32x32-blk.png" width="32" height="32" alt="Rust logo"><br>
  <span class="white-sticker"><a href="https://www.rust-lang.org">Rust</a> 1.52.1</span><br>
  <a href="https://github.com/rust-lang/rust/commit/9bc8c42bb2f19e745a63f3445f1ac248fb015e53"
    class="hash white-sticker">9bc8c42bb</a>
</div>

The info therein can be used to check if any of the installed Rust toolchains has the same git hash as the one in the rust-std paths stored in the debuginfo.

from probe-run.

japaric avatar japaric commented on June 25, 2024

On the other hand it seems that rustc debug info remapping sometimes works and automatically maps /rustc/ paths into local paths that point into the rust-src component as seen in #201 but I can't repro

from probe-run.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.