File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -698,6 +698,7 @@ pub(crate) struct TomlConfig {
698698 rust : Option < Rust > ,
699699 target : Option < HashMap < String , TomlTarget > > ,
700700 dist : Option < Dist > ,
701+ // FIXME: Remove this field at Q3 2025, it has been replaced by `include`.
701702 profile : Option < String > ,
702703 include : Option < Vec < PathBuf > > ,
703704}
@@ -1609,6 +1610,7 @@ impl Config {
16091610 }
16101611
16111612 if let Some ( include) = & toml. profile {
1613+ eprintln ! ( "Warning: `profile` is deprecated. Prefer `include` instead." ) ;
16121614 // Allows creating alias for profile names, allowing
16131615 // profiles to be renamed while maintaining back compatibility
16141616 // Keep in sync with `profile_aliases` in bootstrap.py
Original file line number Diff line number Diff line change @@ -394,6 +394,6 @@ pub const CONFIG_CHANGE_HISTORY: &[ChangeInfo] = &[
394394 ChangeInfo {
395395 change_id : 138934 ,
396396 severity : ChangeSeverity :: Info ,
397- summary : "Added new option `include` to create config extensions." ,
397+ summary : "Added a new option `include` to create config extensions; `profile` is now deprecated ." ,
398398 } ,
399399] ;
You can’t perform that action at this time.
0 commit comments