-
Notifications
You must be signed in to change notification settings - Fork 74
document RUSTC_BOOTSTRAP in the unstable book #863
Copy link
Copy link
Closed
Labels
T-compilerAdd this label so rfcbot knows to poll the compiler teamAdd this label so rfcbot knows to poll the compiler teammajor-changeA proposal to make a major change to rustcA proposal to make a major change to rustcmajor-change-acceptedA major change proposal that was acceptedA major change proposal that was accepted
Metadata
Metadata
Assignees
Labels
T-compilerAdd this label so rfcbot knows to poll the compiler teamAdd this label so rfcbot knows to poll the compiler teammajor-changeA proposal to make a major change to rustcA proposal to make a major change to rustcmajor-change-acceptedA major change proposal that was acceptedA major change proposal that was accepted
Type
Fields
Give feedbackNo fields configured for issues without a type.
Proposal
It is a simple fact that people outside the rust project are using RUSTC_BOOTSTRAP. Given that, we should make it more clear what it does.
I propose the following:
Document the variable in the unstable book so people know what it does, why it exists, and why we would really prefer them not to use it. Right now it spreads by word of mouth, and I do not think people know exactly what breakage they are opting into. document RUSTC_BOOTSTRAP, RUSTC_OVERRIDE_VERSION_STRING, and -Z allow-features in the unstable book rust#139885
Document that libraries that use nightly features should use an explicit opt-in: Document that nightly features should be opt-in using aEDIT(jieyouxu): not compiler concern--cfgflag api-guidelines#284change the name to RUSTC_ALLOW_UNSTABLE_ON_STABLE (name subject to bikeshedding) that has exactly the current semanticsgive a hard warning (i.e. not silence-able or deny-able) if people use RUSTC_BOOTSTRAPsimultaneously, change cargo and all related tooling to use the new name. the hard error for build scripts setting RUSTC_BOOTSTRAP will apply to both the old and new name.Mentors or Reviewers
@onur-ozkan, @bjorn3, @Mark-Simulacrum
Process
The main points of the Major Change Process are as follows:
@rustbot second.-C flag, then full team check-off is required.@rfcbot fcp mergeon either the MCP or the PR.You can read more about Major Change Proposals on forge.