Commit Graph

13 Commits

Author SHA1 Message Date
Eric Huss 888100352a Move ProcessBuilder to cargo-util. 2021-03-20 15:19:03 -07:00
Arpad Borsos b4c4028f76
Run rustdoc doctests relative to the workspace
By doing so, rustdoc will also emit workspace-relative filenames for the doctests.

This was first landed in #8954 but later backed out in #8996 because it changed the CWD of rustdoc test invocations.

The second try relies on the new `--test-run-directory` rustdoc option which was added in https://github.com/rust-lang/rust/pull/81264 to explicitly control the rustdoc test cwd.

fixes #8993
2021-02-22 20:33:31 +01:00
Alex Crichton 6f49ce636f Revert "Run rustdoc doctests relative to the workspace"
This reverts commit 2cc2ae8c96.
2020-12-18 08:06:43 -08:00
Arpad Borsos 2cc2ae8c96 Run rustdoc doctests relative to the workspace
By doing so, rustdoc will also emit workspace-relative filenames for
the doctests.

fixes #8097
2020-12-06 23:21:06 +01:00
Weihang Lo b9554f37ab
rustfmt 2020-10-28 02:57:22 +08:00
Weihang Lo fa522ccec1
fix: more information when -p value is absent 2020-10-27 22:03:54 +08:00
Weihang Lo da1749db0a
feat(util): print_available_packages 2020-10-26 02:40:28 +08:00
Eric Huss e4918c45ba Remove Config from CompileOptions. 2020-03-19 15:34:12 -07:00
Alex Crichton 3a18c89a55 Migrate from the `failure` crate to `anyhow`
The `anyhow` crate interoperates with the `std::error::Error` trait
rather than a custom `Fail` trait, and this is the general trend of
error handling in Rust as well.

Note that this is mostly mechanical (sed) and intended to get the test
suite passing. As usual there's still more idiomatic cleanup that can
happen, but that's left to later commits.
2020-01-07 16:50:09 -08:00
Eric Huss 9fa65608e4 Fix some clippy warnings. 2019-07-14 15:19:33 -07:00
nasa 8284e0ef34 refactor: .into_iter() call is equivalent to .iter() and will not move the slice 2019-01-23 22:48:23 +09:00
Damian f1d6a94994 Sorting 2019-01-03 10:14:25 +01:00
Damian 56b6a80f57 --example with no argument now lists all available examples 2019-01-01 11:03:55 +01:00