-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Bump boostrap compiler to new beta #133533
Conversation
Some changes occurred to the intrinsics. Make sure the CTFE / Miri interpreter cc @rust-lang/miri, @rust-lang/wg-const-eval |
This comment has been minimized.
This comment has been minimized.
There are some rust/library/core/src/fmt/mod.rs Line 337 in 6852fd4
Probably it's related to them being broken across multiple lines. rustfmt enforces that... but it might be tricky yo update your scripts to support that. |
Ah.... yep that would do it. There was some |
6852fd4
to
583e26c
Compare
Some changes occurred to the intrinsics. Make sure the CTFE / Miri interpreter cc @rust-lang/miri, @rust-lang/wg-const-eval
This PR modifies If appropriate, please update |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
AFAICT this looks good. |
@bors p=10 (potentially conflict-prone) |
Bump boostrap compiler to new beta Currently failing due to something about the const stability checks and `panic!`. I'm not sure why though since I wasn't able to see any PRs merged in the past few days that would result in a `cfg(bootstrap)` that shouldn't be removed. cc `@RalfJung` rust-lang#131349
This comment has been minimized.
This comment has been minimized.
💔 Test failed - checks-actions |
not spurious :^) |
Seems like it's a cargo test that failed? |
The nightly |
The environment variable has been removed in rust-lang#14799 Switch to plain old `CARGO_MANIFEST_DIR` instead. See also build failures in rust-lang/rust#133533
The environment variable has been removed in rust-lang#14799. Switch to plain old `CARGO_MANIFEST_DIR` because snapbox's `current_rs` favors furthest Cargo.toml, blocking tests running in rust-lang/rust as a submodule. See also build failures in rust-lang/rust#133533
We removed that 3 weeks ago (rust-lang/cargo#14799), why is it just now causing problems? |
Because this PR updates the cargo used for Rust bootstraping to the just-released beta. |
The environment variable has been removed in rust-lang#14799. Switch to plain old `CARGO_MANIFEST_DIR` because snapbox's `current_rs` favors furthest Cargo.toml, blocking tests running in rust-lang/rust as a submodule. See also build failures in rust-lang/rust#133533
The environment variable has been removed in rust-lang#14799. Switch to plain old `CARGO_MANIFEST_DIR` because snapbox's `current_rs` favors furthest Cargo.toml, blocking tests running in rust-lang/rust as a submodule. See also build failures in rust-lang/rust#133533
The environment variable has been removed in rust-lang#14799. Switch to plain old `CARGO_MANIFEST_DIR` because snapbox's `current_rs` favors furthest Cargo.toml, blocking tests running in rust-lang/rust as a submodule. See also build failures in rust-lang/rust#133533
@BoxyUwU this patch should fix the test failures. However since it changes bootstrap, I would recommend looping some bootstrap team folks to have a look. diff --git a/src/bootstrap/src/core/build_steps/test.rs b/src/bootstrap/src/core/build_steps/test.rs
index dd967bca867..1c24ccc3216 100644
--- a/src/bootstrap/src/core/build_steps/test.rs
+++ b/src/bootstrap/src/core/build_steps/test.rs
@@ -263,12 +263,16 @@ pub struct Cargo {
host: TargetSelection,
}
+impl Cargo {
+ const CRATE_PATH: &str = "src/tools/cargo";
+}
+
impl Step for Cargo {
type Output = ();
const ONLY_HOSTS: bool = true;
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
- run.path("src/tools/cargo")
+ run.path(Self::CRATE_PATH)
}
fn make_run(run: RunConfig<'_>) {
@@ -286,7 +290,7 @@ fn run(self, builder: &Builder<'_>) {
Mode::ToolRustc,
self.host,
Kind::Test,
- "src/tools/cargo",
+ Self::CRATE_PATH,
SourceType::Submodule,
&[],
);
@@ -301,6 +305,9 @@ fn run(self, builder: &Builder<'_>) {
// those features won't be able to land.
cargo.env("CARGO_TEST_DISABLE_NIGHTLY", "1");
cargo.env("PATH", path_for_cargo(builder, compiler));
+ // Cargo's test suite requires configurations from its own `.cargo/config.toml`.
+ // Change to the directory so Cargo can read from it.
+ cargo.current_dir(builder.src.join(Self::CRATE_PATH));
#[cfg(feature = "build-metrics")]
builder.metrics.begin_test_suite( |
Cargo patch looks fine to me. |
@bors r=jieyouxu,Mark-Simulacrum |
☀️ Test successful - checks-actions |
Finished benchmarking commit (1fc691e): comparison URL. Overall result: ✅ improvements - no action needed@rustbot label: -perf-regression Instruction countThis is the most reliable metric that we have; it was used to determine the overall result at the top of this comment. However, even this metric can sometimes exhibit noise.
Max RSS (memory usage)Results (secondary 2.3%)This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 773.513s -> 773.861s (0.04%) |
Currently failing due to something about the const stability checks and
panic!
. I'm not sure why though since I wasn't able to see any PRs merged in the past few days that would result in acfg(bootstrap)
that shouldn't be removed. cc @RalfJung #131349