Rollup merge of #82207 - ehuss:rustdoc-2021, r=jyn514
rustdoc: treat edition 2021 as unstable This ensures that `--edition=2021` requires `-Z unstable-options` in rustdoc.
This commit is contained in:
commit
f97e1121a7
2 changed files with 3 additions and 13 deletions
|
@ -1350,7 +1350,7 @@ pub fn parse_error_format(
|
|||
error_format
|
||||
}
|
||||
|
||||
fn parse_crate_edition(matches: &getopts::Matches) -> Edition {
|
||||
pub fn parse_crate_edition(matches: &getopts::Matches) -> Edition {
|
||||
let edition = match matches.opt_str("edition") {
|
||||
Some(arg) => Edition::from_str(&arg).unwrap_or_else(|_| {
|
||||
early_error(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue