@@ -957,14 +957,11 @@ fn print_flag_list<T>(cmdline_opt: &str,
957
957
/// otherwise returns `None`.
958
958
///
959
959
/// 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:
963
962
///
964
963
/// 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.
968
965
///
969
966
/// Like unstable library and language features, however, unstable options have
970
967
/// 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> {
1007
1004
// this option that was passed.
1008
1005
// * If we're a nightly compiler, then unstable options are now unlocked, so
1009
1006
// 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
1011
1008
// (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.
1014
1009
nightly_options:: check_nightly_options ( & matches, & config:: rustc_optgroups ( ) ) ;
1015
1010
1016
1011
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) ) ;
1023
1014
return None ;
1024
1015
}
1025
1016
0 commit comments