-
Notifications
You must be signed in to change notification settings - Fork 13.3k
document RUSTC_BOOTSTRAP, RUSTC_OVERRIDE_VERSION_STRING, and -Z allow-features in the unstable book #139885
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
Conversation
r? @Nadrieril rustbot has assigned @Nadrieril. Use |
4ef62af
to
c805e9a
Compare
This comment has been minimized.
This comment has been minimized.
045a310
to
30b9f70
Compare
This comment has been minimized.
This comment has been minimized.
That constraint was later relaxed; see <https://github.com/rust-lang/rust/issues/36548> for the discussion that happened at that time. | ||
|
||
People have at various times proposed re-adding the technical constraints. | ||
However, doing so is extremely disruptive for several major projects that we very much want to keep using the latest toolchain versions, such as Firefox, Rust for Linux, and Chromium. |
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.
I am not sure what the following means:
that we very much want to keep using the latest toolchain versions
Is it meant to refer to the stable releases?
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.
yes, exactly. my opinion is that any kind of technical constraint around RUSTC_BOOTSTRAP either forces projects to pin an old version of stable, which is bad for all parties involved, or is just ineffective.
i will try to find a better way to word this.
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.
I see, makes sense, thanks!
f70b8b9
to
1a0cc37
Compare
a239539
to
1a3bea9
Compare
e6303b8
to
9cd5f53
Compare
rustc 1.81.0-nightly | ||
``` | ||
|
||
Note that the version string is completely overwritten; i.e. rustc discards commit hash and commit date information unless it is explicitly included in the environment variable. The string only applies to the "release" part of the version; for example: |
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.
I think it is clear enough thanks to the examples, but when I saw "completely" I thought it also meant the rustc
part, so I double-checked with an extreme example, e.g.
$ RUSTC_OVERRIDE_VERSION_STRING=! rustc --version
rustc !
This comment has been minimized.
This comment has been minimized.
9cd5f53
to
beac1d0
Compare
Looks good, r=me once you feel like you've addressed the remaining review comments. |
…-features in the unstable book
beac1d0
to
a114bcf
Compare
@bors r=Nadrieril |
…iaskrgr Rollup of 8 pull requests Successful merges: - rust-lang#138632 (Stabilize `cfg_boolean_literals`) - rust-lang#139416 (unstable book; document `macro_metavar_expr_concat`) - rust-lang#139782 (Consistent with treating Ctor Call as Struct in liveness analysis) - rust-lang#139885 (document RUSTC_BOOTSTRAP, RUSTC_OVERRIDE_VERSION_STRING, and -Z allow-features in the unstable book) - rust-lang#139904 (Explicitly annotate edition for `unpretty=expanded` and `unpretty=hir` tests) - rust-lang#139932 (transmutability: Refactor tests for simplicity) - rust-lang#139944 (Move eager translation to a method on Diag) - rust-lang#139948 (git: ignore `60600a6fa403216bfd66e04f948b1822f6450af7` for blame purposes) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#139885 - jyn514:doc-rustc-bootstrap, r=Nadrieril document RUSTC_BOOTSTRAP, RUSTC_OVERRIDE_VERSION_STRING, and -Z allow-features in the unstable book [rendered](https://github.com/jyn514/rust/blob/doc-rustc-bootstrap/src/doc/unstable-book/src/compiler-flags/rustc-bootstrap.md) mcp: rust-lang/compiler-team#863
rendered
mcp: rust-lang/compiler-team#863