File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -3062,7 +3062,9 @@ fn main() {
3062
3062
3063
3063
## ` version `
3064
3064
3065
- This option is deprecated and has been replaced by [ ` style_edition ` ] ( #style_edition )
3065
+ This option is deprecated and has been replaced by [ ` style_edition ` ] ( #style_edition ) .
3066
+ ` version = "One" ` is equivalent to ` style_edition = "(2015|2018|2021)" ` and
3067
+ ` version = "Two" ` is equivalent to ` style_edition = "2024" `
3066
3068
3067
3069
- ** Default value** : ` One `
3068
3070
- ** Possible values** : ` One ` , ` Two `
Original file line number Diff line number Diff line change @@ -571,7 +571,11 @@ macro_rules! create_config {
571
571
572
572
eprintln!(
573
573
"Warning: the `version` option is deprecated. \
574
- Use `style_edition` instead."
574
+ Use `style_edition=\" {0}\" ` instead.",
575
+ match self . version. 2 {
576
+ Version :: One => "2015" ,
577
+ Version :: Two => "2024" ,
578
+ }
575
579
) ;
576
580
577
581
if self . was_set( ) . style_edition( ) || self . was_set_cli( ) . style_edition( ) {
You can’t perform that action at this time.
0 commit comments