File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
compiler/rustc_session/src Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1308,12 +1308,11 @@ fn parse_crate_edition(matches: &getopts::Matches) -> Edition {
13081308 None => DEFAULT_EDITION ,
13091309 } ;
13101310
1311- if !edition. is_stable ( ) && !nightly_options:: match_is_nightly_build ( matches) {
1311+ if !edition. is_stable ( ) && !nightly_options:: is_unstable_enabled ( matches) {
13121312 early_error (
13131313 ErrorOutputType :: default ( ) ,
13141314 & format ! (
1315- "edition {} is unstable and only \
1316- available for nightly builds of rustc.",
1315+ "edition {} is unstable and only available with -Z unstable-options." ,
13171316 edition,
13181317 ) ,
13191318 )
Original file line number Diff line number Diff line change 11// run-pass
22// edition:2021
3+ // compile-flags: -Zunstable-options
34
45fn main ( ) {
56 println ! ( "hello, 2021" ) ;
You can’t perform that action at this time.
0 commit comments