-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
--edition should tell what the default edition is #106041
Comments
The default is indeed 2015. It should probably not only mention the default (2015) but also the latest stable edition (2021). |
Mentoring instructions: modify rust/compiler/rustc_session/src/config.rs Line 1345 in 65a6e22
DEFAULT_EDITION and LATEST_STABLE_EDITION somewhere.
|
@rustbot claim |
What is the best way to insert the values for I don't believe it would be a good idea to simply write the value of these variables into the string, so I'm wondering what other options I have. However, if that's the way forward, I can do so. |
Where does that requirement come from? Seems fine to loosen it. |
ah I see, the string ends up stored in RustcOptGroup. Honestly, given that this is only used once and the string is tiny, using |
rustc --edition:
error: Argument to option 'edition' missing
rustc --edition=help:
error: argument for `--edition` must be one of: 2015|2018|2021|2024. (instead was `help`)
rustc --help
The default is not mentioned anywhere. I assume it is 2015?
The text was updated successfully, but these errors were encountered: