@@ -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,
@@ -1831,7 +1834,7 @@ impl Config {
1831
1834
randomize_layout,
1832
1835
default_linker,
1833
1836
channel : _, // already handled above
1834
- description,
1837
+ description : rust_description ,
1835
1838
musl_root,
1836
1839
rpath,
1837
1840
verbose_tests,
@@ -1924,7 +1927,12 @@ impl Config {
1924
1927
set ( & mut config. jemalloc , jemalloc) ;
1925
1928
set ( & mut config. test_compare_mode , test_compare_mode) ;
1926
1929
set ( & mut config. backtrace , backtrace) ;
1927
- config. description = description;
1930
+ if rust_description. is_some ( ) {
1931
+ eprintln ! (
1932
+ "Warning: rust.description is deprecated. Use build.description instead."
1933
+ ) ;
1934
+ }
1935
+ description = description. or ( rust_description) ;
1928
1936
set ( & mut config. rust_dist_src , dist_src) ;
1929
1937
set ( & mut config. verbose_tests , verbose_tests) ;
1930
1938
// in the case "false" is set explicitly, do not overwrite the command line args
@@ -1990,6 +1998,7 @@ impl Config {
1990
1998
}
1991
1999
1992
2000
config. reproducible_artifacts = flags. reproducible_artifact ;
2001
+ config. description = description;
1993
2002
1994
2003
// We need to override `rust.channel` if it's manually specified when using the CI rustc.
1995
2004
// This is because if the compiler uses a different channel than the one specified in config.toml,
0 commit comments