@@ -957,14 +957,11 @@ fn print_flag_list<T>(cmdline_opt: &str,
957957/// otherwise returns `None`.
958958///
959959/// The compiler's handling of options is a little complicated as it ties into
960- /// our stability story, and it's even *more* complicated by historical
961- /// accidents. The current intention of each compiler option is to have one of
962- /// three modes:
960+ /// our stability story. The current intention of each compiler option is to
961+ /// have one of two modes:
963962///
964963/// 1. An option is stable and can be used everywhere.
965- /// 2. An option is unstable, but was historically allowed on the stable
966- /// channel.
967- /// 3. An option is unstable, and can only be used on nightly.
964+ /// 2. An option is unstable, and can only be used on nightly.
968965///
969966/// Like unstable library and language features, however, unstable options have
970967/// always required a form of "opt in" to indicate that you're using them. This
@@ -1007,19 +1004,13 @@ pub fn handle_options(args: &[String]) -> Option<getopts::Matches> {
10071004 // this option that was passed.
10081005 // * If we're a nightly compiler, then unstable options are now unlocked, so
10091006 // we're good to go.
1010- // * Otherwise, if we're a truly unstable option then we generate an error
1007+ // * Otherwise, if we're an unstable option then we generate an error
10111008 // (unstable option being used on stable)
1012- // * If we're a historically stable-but-should-be-unstable option then we
1013- // emit a warning that we're going to turn this into an error soon.
10141009 nightly_options:: check_nightly_options ( & matches, & config:: rustc_optgroups ( ) ) ;
10151010
10161011 if matches. opt_present ( "h" ) || matches. opt_present ( "help" ) {
1017- // Only show unstable options in --help if we *really* accept unstable
1018- // options, which catches the case where we got `-Z unstable-options` on
1019- // the stable channel of Rust which was accidentally allowed
1020- // historically.
1021- usage ( matches. opt_present ( "verbose" ) ,
1022- nightly_options:: is_unstable_enabled ( & matches) ) ;
1012+ // Only show unstable options in --help if we accept unstable options.
1013+ usage ( matches. opt_present ( "verbose" ) , nightly_options:: is_unstable_enabled ( & matches) ) ;
10231014 return None ;
10241015 }
10251016
0 commit comments