You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A-driverArea: rustc_driver that ties everything together into the `rustc` compilerE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
@glandium hit a situation today where he was trying to bootstrap from the wrong compiler, and because rustc didn't see a bootstrap key match it just didn't turn on unstable features, and resulted in a mysterious failure. An error about a bootstrap key mismatch would be much more clear.
Fix is probably in rustc::session::config where CFG_BOOTSTRAP_KEY is compared.
The text was updated successfully, but these errors were encountered:
brson
added
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
A-driver
Area: rustc_driver that ties everything together into the `rustc` compiler
labels
Sep 16, 2016
Would completely break rustc for people who have $CFG_BOOSTRAP_KEY in their environment for non-rustc purposes. I’m not sure error is warranted, but note or warning may be fine.
Hey guys, I'm new and trying to figure this one out for everyone :) Go team!!
@brson, did @alexcrichton have CFG_DISABLE_UNSTABLE_FEATURES set as an environment flag? It looks like if you didn't have CFG_BOOTSTRAP_KEY or RUSTC_BOOTSTRAP_KEY flags set (both are checked in src/librustc/session/config.rs, in the function get_unstable_features_setting() ), but you had CFG_DISABLE_UNSTABLE_FEATURES set to false, you would be able to continue.
There's a match statement, and when either of the [CFG/RUSTC]_BOOTSTRAP_KEY values come up as None, then if CFG_DISABLE_UNSTABLE_FEATURES is set to false, I think it returns UnstableFeatures::Allow, but if CFG_DISABLE_UNSTABLE_FEATURES is set to true, then it returns UnstableFeatures::Disallow.
A-driverArea: rustc_driver that ties everything together into the `rustc` compilerE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
@glandium hit a situation today where he was trying to bootstrap from the wrong compiler, and because rustc didn't see a bootstrap key match it just didn't turn on unstable features, and resulted in a mysterious failure. An error about a bootstrap key mismatch would be much more clear.
Fix is probably in rustc::session::config where CFG_BOOTSTRAP_KEY is compared.
cc @alexcrichton
The text was updated successfully, but these errors were encountered: