diff --git a/compiler/rustc_session/src/config.rs b/compiler/rustc_session/src/config.rs index 02e3992a6a940..bad7803812c48 100644 --- a/compiler/rustc_session/src/config.rs +++ b/compiler/rustc_session/src/config.rs @@ -1345,7 +1345,8 @@ pub fn rustc_short_optgroups() -> Vec { opt::opt_s( "", "edition", - "Specify which edition of the compiler to use when compiling code.", + Box::leak(format!("Specify which edition of the compiler to use when compiling code.\ + The default is {DEFAULT_EDITION} and the latest stable edition is {LATEST_STABLE_EDITION}.").into_boxed_str()), EDITION_NAME_LIST, ), opt::multi_s(