diff options
| author | Eric Huss <eric@huss.org> | 2021-02-16 19:17:01 -0800 |
|---|---|---|
| committer | Eric Huss <eric@huss.org> | 2021-02-16 19:17:01 -0800 |
| commit | ee0e841a2e949cba1dcf3a2fb04e9a673681e4fd (patch) | |
| tree | 6da62d366bdefb57d202fa9a05baad12ab439de7 /compiler/rustc_session/src | |
| parent | a143517d44cac50b20cbd3a0b579addab40dd399 (diff) | |
| download | rust-ee0e841a2e949cba1dcf3a2fb04e9a673681e4fd.tar.gz rust-ee0e841a2e949cba1dcf3a2fb04e9a673681e4fd.zip | |
rustdoc: treat edition 2021 as unstable
Diffstat (limited to 'compiler/rustc_session/src')
| -rw-r--r-- | compiler/rustc_session/src/config.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_session/src/config.rs b/compiler/rustc_session/src/config.rs index 210dbb0ee99..4533b37f10b 100644 --- a/compiler/rustc_session/src/config.rs +++ b/compiler/rustc_session/src/config.rs @@ -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( |
