]> git.lizzy.rs Git - rust.git/commit - compiler/rustc_codegen_cranelift/src/compiler_builtins.rs
Rollup merge of #94806 - jyn514:cargo-run-tidy, r=Mark-Simulacrum
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>
Wed, 30 Mar 2022 22:26:28 +0000 (00:26 +0200)
committerGitHub <noreply@github.com>
Wed, 30 Mar 2022 22:26:28 +0000 (00:26 +0200)
commit943ea7fae53ac71cd8ddf5c215a750c9ab616eee
treedc090162ec93e02f703b4c55bcab3dd7f3fe2751
parentb75f384d0b0227000eff393e5d4e11bda56b293f
parent25a7d2d540656e0499a43bfd01243250f2a25d7a
Rollup merge of #94806 - jyn514:cargo-run-tidy, r=Mark-Simulacrum

Fix `cargo run tidy`

When I implemented rust-only bootstrapping in https://github.com/rust-lang/rust/pull/92260,
I neglected to test stage0 tools - it turns out they were broken because
they couldn't find the sysroot of the initial bootstrap compiler.

This fixes stage0 tools by using `rustc --print sysroot` instead of assuming rustc is already in a
sysroot and hard-coding the relative directory.

Fixes https://github.com/rust-lang/rust/issues/94797 (properly, without having to change rustup).
src/bootstrap/lib.rs