@@ -894,6 +894,7 @@ define_config! {
894
894
#[ derive( Default ) ]
895
895
struct Build {
896
896
build: Option <String > = "build" ,
897
+ description: Option <String > = "description" ,
897
898
host: Option <Vec <String >> = "host" ,
898
899
target: Option <Vec <String >> = "target" ,
899
900
build_dir: Option <String > = "build-dir" ,
@@ -1176,6 +1177,7 @@ define_config! {
1176
1177
incremental: Option <bool > = "incremental" ,
1177
1178
default_linker: Option <String > = "default-linker" ,
1178
1179
channel: Option <String > = "channel" ,
1180
+ // FIXME: Remove this field at Q2 2025, it has been replaced by build.description
1179
1181
description: Option <String > = "description" ,
1180
1182
musl_root: Option <String > = "musl-root" ,
1181
1183
rpath: Option <bool > = "rpath" ,
@@ -1583,6 +1585,7 @@ impl Config {
1583
1585
config. change_id = toml. change_id . inner ;
1584
1586
1585
1587
let Build {
1588
+ mut description,
1586
1589
build,
1587
1590
host,
1588
1591
target,
@@ -1827,7 +1830,7 @@ impl Config {
1827
1830
randomize_layout,
1828
1831
default_linker,
1829
1832
channel : _, // already handled above
1830
- description,
1833
+ description : rust_description ,
1831
1834
musl_root,
1832
1835
rpath,
1833
1836
verbose_tests,
@@ -1920,7 +1923,12 @@ impl Config {
1920
1923
set ( & mut config. jemalloc , jemalloc) ;
1921
1924
set ( & mut config. test_compare_mode , test_compare_mode) ;
1922
1925
set ( & mut config. backtrace , backtrace) ;
1923
- config. description = description;
1926
+ if rust_description. is_some ( ) {
1927
+ eprintln ! (
1928
+ "Warning: rust.description is deprecated. Use build.description instead."
1929
+ ) ;
1930
+ }
1931
+ description = description. or ( rust_description) ;
1924
1932
set ( & mut config. rust_dist_src , dist_src) ;
1925
1933
set ( & mut config. verbose_tests , verbose_tests) ;
1926
1934
// in the case "false" is set explicitly, do not overwrite the command line args
@@ -1986,6 +1994,7 @@ impl Config {
1986
1994
}
1987
1995
1988
1996
config. reproducible_artifacts = flags. reproducible_artifact ;
1997
+ config. description = description;
1989
1998
1990
1999
// We need to override `rust.channel` if it's manually specified when using the CI rustc.
1991
2000
// This is because if the compiler uses a different channel than the one specified in config.toml,
0 commit comments