Skip to content

Commit 7f8cad0

Browse files
authored
Unrolled build for rust-lang#129925
Rollup merge of rust-lang#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 009e738 + c06ed92 commit 7f8cad0

File tree

2 files changed

+5
-19
lines changed

2 files changed

+5
-19
lines changed

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,
@@ -1099,7 +1098,6 @@ define_config! {
10991098
debuginfo_level_std: Option<DebuginfoLevel> = "debuginfo-level-std",
11001099
debuginfo_level_tools: Option<DebuginfoLevel> = "debuginfo-level-tools",
11011100
debuginfo_level_tests: Option<DebuginfoLevel> = "debuginfo-level-tests",
1102-
split_debuginfo: Option<String> = "split-debuginfo",
11031101
backtrace: Option<bool> = "backtrace",
11041102
incremental: Option<bool> = "incremental",
11051103
parallel_compiler: Option<bool> = "parallel-compiler",
@@ -1636,7 +1634,6 @@ impl Config {
16361634
debuginfo_level_std: debuginfo_level_std_toml,
16371635
debuginfo_level_tools: debuginfo_level_tools_toml,
16381636
debuginfo_level_tests: debuginfo_level_tests_toml,
1639-
split_debuginfo,
16401637
backtrace,
16411638
incremental,
16421639
parallel_compiler,
@@ -1695,18 +1692,6 @@ impl Config {
16951692
debuginfo_level_tests = debuginfo_level_tests_toml;
16961693
lld_enabled = lld_enabled_toml;
16971694

1698-
config.rust_split_debuginfo_for_build_triple = split_debuginfo
1699-
.as_deref()
1700-
.map(SplitDebuginfo::from_str)
1701-
.map(|v| v.expect("invalid value for rust.split-debuginfo"));
1702-
1703-
if config.rust_split_debuginfo_for_build_triple.is_some() {
1704-
println!(
1705-
"WARNING: specifying `rust.split-debuginfo` is deprecated, use `target.{}.split-debuginfo` instead",
1706-
config.build
1707-
);
1708-
}
1709-
17101695
optimize = optimize_toml;
17111696
omit_git_hash = omit_git_hash_toml;
17121697
config.rust_new_symbol_mangling = new_symbol_mangling;
@@ -2504,9 +2489,6 @@ impl Config {
25042489
self.target_config
25052490
.get(&target)
25062491
.and_then(|t| t.split_debuginfo)
2507-
.or_else(|| {
2508-
if self.build == target { self.rust_split_debuginfo_for_build_triple } else { None }
2509-
})
25102492
.unwrap_or_else(|| SplitDebuginfo::default_for_platform(target))
25112493
}
25122494

@@ -2927,7 +2909,6 @@ fn check_incompatible_options_for_ci_rustc(
29272909
debuginfo_level_std: _,
29282910
debuginfo_level_tools: _,
29292911
debuginfo_level_tests: _,
2930-
split_debuginfo: _,
29312912
backtrace: _,
29322913
parallel_compiler: _,
29332914
musl_root: _,

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)