Skip to content

Commit e92ed7a

Browse files
authored
Unrolled build for rust-lang#123711
Rollup merge of rust-lang#123711 - onur-ozkan:drop-changelog-seen, r=albertlarsan68 drop `changelog-seen` It's been 7 months since we deprecated this. It should be fine to remove it now.
2 parents 1dea922 + cce21be commit e92ed7a

File tree

3 files changed

+6
-19
lines changed

3 files changed

+6
-19
lines changed

src/bootstrap/src/bin/main.rs

-4
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,6 @@ fn main() {
131131
fn check_version(config: &Config) -> Option<String> {
132132
let mut msg = String::new();
133133

134-
if config.changelog_seen.is_some() {
135-
msg.push_str("WARNING: The use of `changelog-seen` is deprecated. Please refer to `change-id` option in `config.example.toml` instead.\n");
136-
}
137-
138134
let latest_change_id = CONFIG_CHANGE_HISTORY.last().unwrap().change_id;
139135
let warned_id_path = config.out.join("bootstrap").join(".last-warned-change-id");
140136

src/bootstrap/src/core/config/config.rs

+1-15
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ impl LldMode {
145145
/// `config.example.toml`.
146146
#[derive(Default, Clone)]
147147
pub struct Config {
148-
pub changelog_seen: Option<usize>, // FIXME: Deprecated field. Remove it at 2024.
149148
pub change_id: Option<usize>,
150149
pub bypass_bootstrap_lock: bool,
151150
pub ccache: Option<String>,
@@ -605,7 +604,6 @@ impl Target {
605604
#[derive(Deserialize, Default)]
606605
#[serde(deny_unknown_fields, rename_all = "kebab-case")]
607606
pub(crate) struct TomlConfig {
608-
changelog_seen: Option<usize>, // FIXME: Deprecated field. Remove it at 2024.
609607
#[serde(flatten)]
610608
change_id: ChangeIdWrapper,
611609
build: Option<Build>,
@@ -645,17 +643,7 @@ trait Merge {
645643
impl Merge for TomlConfig {
646644
fn merge(
647645
&mut self,
648-
TomlConfig {
649-
build,
650-
install,
651-
llvm,
652-
rust,
653-
dist,
654-
target,
655-
profile: _,
656-
changelog_seen,
657-
change_id,
658-
}: Self,
646+
TomlConfig { build, install, llvm, rust, dist, target, profile: _, change_id }: Self,
659647
replace: ReplaceOpt,
660648
) {
661649
fn do_merge<T: Merge>(x: &mut Option<T>, y: Option<T>, replace: ReplaceOpt) {
@@ -667,7 +655,6 @@ impl Merge for TomlConfig {
667655
}
668656
}
669657
}
670-
self.changelog_seen.merge(changelog_seen, replace);
671658
self.change_id.inner.merge(change_id.inner, replace);
672659
do_merge(&mut self.build, build, replace);
673660
do_merge(&mut self.install, install, replace);
@@ -1400,7 +1387,6 @@ impl Config {
14001387
}
14011388
toml.merge(override_toml, ReplaceOpt::Override);
14021389

1403-
config.changelog_seen = toml.changelog_seen;
14041390
config.change_id = toml.change_id.inner;
14051391

14061392
let Build {

src/bootstrap/src/utils/change_tracker.rs

+5
Original file line numberDiff line numberDiff line change
@@ -170,4 +170,9 @@ pub const CONFIG_CHANGE_HISTORY: &[ChangeInfo] = &[
170170
severity: ChangeSeverity::Warning,
171171
summary: "`rust.split-debuginfo` has been moved to `target.<triple>.split-debuginfo` and its default value is determined for each target individually.",
172172
},
173+
ChangeInfo {
174+
change_id: 123711,
175+
severity: ChangeSeverity::Warning,
176+
summary: "The deprecated field `changelog-seen` has been removed. Using that field in `config.toml` from now on will result in breakage.",
177+
},
173178
];

0 commit comments

Comments
 (0)