-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
redesign stage 0 std #119899
base: master
Are you sure you want to change the base?
redesign stage 0 std #119899
Conversation
This comment has been minimized.
This comment has been minimized.
9fcee5c
to
066ce06
Compare
This comment has been minimized.
This comment has been minimized.
066ce06
to
472c50c
Compare
This comment has been minimized.
This comment has been minimized.
ce81474
to
b688ffa
Compare
This comment has been minimized.
This comment has been minimized.
5f1747d
to
00e59f0
Compare
This PR modifies If appropriate, please update |
@rustbot ready r? bootstrap |
00e59f0
to
8ac271c
Compare
@rustbot author (currently stage 2 std is copied from stage 1 and this behaviour should change with the beta std change) |
I am waiting for the next beta release. Right now compiler depending on some nightly features which will be resolved with the next beta release. |
That's a concern for this plan, isn't it? We'll lose the ability to immediately depend on nightly library features; we'll need to wait for a bootstrap bump. We should at least know how much we relied on that in the past to get an idea of how disruptive that will be. |
It is a concern yes. From what I learned (source), it happened very few times in the past. |
What nightly API is causing the trouble right now?
|
This and several other functions in the same module uses |
With this PR is
|
It will still be enough to test the bootstrap compiler; the only difference is that the stage0 library will be the beta library, not the in-tree one. |
Great! That will save some time and avoids the need to apply the standard library patches to the rust checkout too. The bootstrap compiler for me matches the rust checkout except with cg_clif as codegen backend. |
Ah, that is an API that was recently renamed and then stabilized. Given that this will happen again, it seems worth ensuring that this keeps working. It should work with some |
It's unstable in the beta std, that's why it's not working with cfg bootstrap. |
That just means the compiler needs a If this does not worth with cfg bootstrap we have a problem; something like this must be supported. |
Actually, we can make that work with |
1d23cec
to
03e695d
Compare
This comment has been minimized.
This comment has been minimized.
03e695d
to
ab17250
Compare
☔ The latest upstream changes (presumably #138083) made this pull request unmergeable. Please resolve the merge conflicts. |
This comment has been minimized.
This comment has been minimized.
On stage 0, rather than compiling std utilize the one from the stage0 sysroot as stage 0 should represent the snapshot version not the compiled one. Signed-off-by: onur-ozkan <work@onurozkan.dev>
Signed-off-by: onur-ozkan <work@onurozkan.dev>
Signed-off-by: onur-ozkan <work@onurozkan.dev>
Signed-off-by: onur-ozkan <work@onurozkan.dev>
Signed-off-by: onur-ozkan <work@onurozkan.dev>
Signed-off-by: onur-ozkan <work@onurozkan.dev>
Signed-off-by: onur-ozkan <work@onurozkan.dev>
Signed-off-by: onur-ozkan <work@onurozkan.dev>
Signed-off-by: onur-ozkan <work@onurozkan.dev>
Signed-off-by: onur-ozkan <work@onurozkan.dev>
Signed-off-by: onur-ozkan <work@onurozkan.dev>
0e7d963
to
03f4206
Compare
This is intended to update bootstrap to use the beta standard library on stage 0, rather than compiling it from source (see the motivation at rust-lang/compiler-team#619).
Blocked on #122709