-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
ship tools with sysroot #110365
ship tools with sysroot #110365
Conversation
(rustbot has picked a reviewer for you, use r? to override) |
1ed4a64
to
8c313e2
Compare
This comment has been minimized.
This comment has been minimized.
8c313e2
to
9ecd708
Compare
This comment has been minimized.
This comment has been minimized.
9ecd708
to
934f08c
Compare
934f08c
to
6779b2a
Compare
I decided to write tests for this @rustbot author |
it should be possible to add this, right? We can make a symlink from |
I wasn't sure if we should do it or not, will do it then. I don't know how this error didn't raise on the previous PR. |
This turns out not to be worth doing it. It will require quite some time for just checking if the binaries are in the correct place after |
Which seems like an expected result if I am not mistaken? |
Try installing nightly cargo so it gets further ( |
OOps. Why I didn't do that lol. here we go: ~/devspace/.other/chunk-list stable $ cargo +stage2 miri test
Preparing a sysroot for Miri (target: x86_64-unknown-linux-gnu)... done
Compiling chunk-list v0.1.0 (/home/nimda/devspace/.other/chunk-list)
Finished test [unoptimized + debuginfo] target(s) in 0.06s
Running unittests src/main.rs (target/miri/x86_64-unknown-linux-gnu/debug/deps/chunk_list-b3b731111ba842c5)
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out |
this looks amazing! r=me after a rebase :) |
Signed-off-by: ozkanonur <work@onurozkan.dev>
…inking Signed-off-by: ozkanonur <work@onurozkan.dev>
4d276d7
to
68fc568
Compare
@bors r=jyn514 rollup |
…iaskrgr Rollup of 6 pull requests Successful merges: - rust-lang#110365 (ship tools with sysroot) - rust-lang#110555 (Substitute missing trait items suggestion correctly) - rust-lang#110578 (fix(error): normalize whitespace during msg_to_buffer) - rust-lang#110597 (remove unused ftl messages) - rust-lang#110611 (Add regression test for rust-lang#46506) - rust-lang#110618 (Track if EvalCtxt has been tainted, make sure it can't be used to make query responses after) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Provides tool binaries under the sysroot which can be used/tested with
cargo +custom-toolchain $tool
Clippy and fmt works without any problem.
But can't say the same for miri:
it's looking for
$sysroot/lib/rustlib/src/rust/library
and that simply doesn't exists forx build
.cc @jyn514 (I thought you might be interested on this, since you did few review iterations on previous PRs of adding tools to sysroot)
--
Update
Now we are able to use
miri
as well.After running
x b miri cargo-miri --stage 2
, I am able to runcargo +stage2 miri setup
which works as expected.Resolves #110625
Resolves #97762
Resolves #81431