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

Fix x test --doc --stage 0 library/std #95993

Merged
merged 1 commit into from
Apr 16, 2022

Commits on Apr 13, 2022

  1. Fix x test --doc --stage 0 library/std

    I managed to break this in rust-lang#95449.
    I am not quite sure why this is the correct fix, but it doesn't break `doc --stage 0`
    and is strictly closer to the previous behavior.
    
    Previously, rustdoc would error with strange issues because of the mismatched sysroot:
    ```
    error[E0460]: found possibly newer version of crate `std` which `rustc_span` depends on
      --> /home/jnelson/rust-lang/rust/compiler/rustc_lint_defs/src/lib.rs:14:5
       |
    14 | use rustc_span::{sym, symbol::Ident, Span, Symbol};
       |     ^^^^^^^^^^
       |
       = note: perhaps that crate needs to be recompiled?
       = note: the following crate versions were found:
               crate `std`: /home/jnelson/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-ff9290e971253a38.rlib
               crate `std`: /home/jnelson/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-ff9290e971253a38.so
               crate `rustc_span`: /home/jnelson/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_span-ed11dce30c1766f9.rlib
    ```
    jyn514 committed Apr 13, 2022
    Configuration menu
    Copy the full SHA
    69de213 View commit details
    Browse the repository at this point in the history