Skip to content

Commit 3190521

Browse files
authored
Rollup merge of #129925 - onur-ozkan:deprecated-option, r=Kobzol
remove deprecated option `rust.split-debuginfo` This option was deprecated in February, it should be safe to remove it now.
2 parents c7c3ada + c06ed92 commit 3190521

File tree

2 files changed

+5
-19
lines changed

2 files changed

+5
-19
lines changed

Diff for: src/bootstrap/src/core/config/config.rs

-19
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,6 @@ pub struct Config {
268268
pub rust_debuginfo_level_std: DebuginfoLevel,
269269
pub rust_debuginfo_level_tools: DebuginfoLevel,
270270
pub rust_debuginfo_level_tests: DebuginfoLevel,
271-
pub rust_split_debuginfo_for_build_triple: Option<SplitDebuginfo>, // FIXME: Deprecated field. Remove in Q3'24.
272271
pub rust_rpath: bool,
273272
pub rust_strip: bool,
274273
pub rust_frame_pointers: bool,
@@ -1101,7 +1100,6 @@ define_config! {
11011100
debuginfo_level_std: Option<DebuginfoLevel> = "debuginfo-level-std",
11021101
debuginfo_level_tools: Option<DebuginfoLevel> = "debuginfo-level-tools",
11031102
debuginfo_level_tests: Option<DebuginfoLevel> = "debuginfo-level-tests",
1104-
split_debuginfo: Option<String> = "split-debuginfo",
11051103
backtrace: Option<bool> = "backtrace",
11061104
incremental: Option<bool> = "incremental",
11071105
parallel_compiler: Option<bool> = "parallel-compiler",
@@ -1639,7 +1637,6 @@ impl Config {
16391637
debuginfo_level_std: debuginfo_level_std_toml,
16401638
debuginfo_level_tools: debuginfo_level_tools_toml,
16411639
debuginfo_level_tests: debuginfo_level_tests_toml,
1642-
split_debuginfo,
16431640
backtrace,
16441641
incremental,
16451642
parallel_compiler,
@@ -1699,18 +1696,6 @@ impl Config {
16991696
debuginfo_level_tests = debuginfo_level_tests_toml;
17001697
lld_enabled = lld_enabled_toml;
17011698

1702-
config.rust_split_debuginfo_for_build_triple = split_debuginfo
1703-
.as_deref()
1704-
.map(SplitDebuginfo::from_str)
1705-
.map(|v| v.expect("invalid value for rust.split-debuginfo"));
1706-
1707-
if config.rust_split_debuginfo_for_build_triple.is_some() {
1708-
println!(
1709-
"WARNING: specifying `rust.split-debuginfo` is deprecated, use `target.{}.split-debuginfo` instead",
1710-
config.build
1711-
);
1712-
}
1713-
17141699
optimize = optimize_toml;
17151700
omit_git_hash = omit_git_hash_toml;
17161701
config.rust_new_symbol_mangling = new_symbol_mangling;
@@ -2509,9 +2494,6 @@ impl Config {
25092494
self.target_config
25102495
.get(&target)
25112496
.and_then(|t| t.split_debuginfo)
2512-
.or_else(|| {
2513-
if self.build == target { self.rust_split_debuginfo_for_build_triple } else { None }
2514-
})
25152497
.unwrap_or_else(|| SplitDebuginfo::default_for_platform(target))
25162498
}
25172499

@@ -2933,7 +2915,6 @@ fn check_incompatible_options_for_ci_rustc(
29332915
debuginfo_level_std: _,
29342916
debuginfo_level_tools: _,
29352917
debuginfo_level_tests: _,
2936-
split_debuginfo: _,
29372918
backtrace: _,
29382919
parallel_compiler: _,
29392920
musl_root: _,

Diff for: src/bootstrap/src/utils/change_tracker.rs

+5
Original file line numberDiff line numberDiff line change
@@ -240,4 +240,9 @@ pub const CONFIG_CHANGE_HISTORY: &[ChangeInfo] = &[
240240
severity: ChangeSeverity::Info,
241241
summary: "New option `build.cargo-clippy` added for supporting the use of custom/external clippy.",
242242
},
243+
ChangeInfo {
244+
change_id: 129925,
245+
severity: ChangeSeverity::Warning,
246+
summary: "Removed `rust.split-debuginfo` as it was deprecated long time ago.",
247+
},
243248
];

0 commit comments

Comments
 (0)