Rollup merge of #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.
This commit is contained in:
commit
0aa7235423
@ -131,10 +131,6 @@ fn main() {
|
|||||||
fn check_version(config: &Config) -> Option<String> {
|
fn check_version(config: &Config) -> Option<String> {
|
||||||
let mut msg = String::new();
|
let mut msg = String::new();
|
||||||
|
|
||||||
if config.changelog_seen.is_some() {
|
|
||||||
msg.push_str("WARNING: The use of `changelog-seen` is deprecated. Please refer to `change-id` option in `config.example.toml` instead.\n");
|
|
||||||
}
|
|
||||||
|
|
||||||
let latest_change_id = CONFIG_CHANGE_HISTORY.last().unwrap().change_id;
|
let latest_change_id = CONFIG_CHANGE_HISTORY.last().unwrap().change_id;
|
||||||
let warned_id_path = config.out.join("bootstrap").join(".last-warned-change-id");
|
let warned_id_path = config.out.join("bootstrap").join(".last-warned-change-id");
|
||||||
|
|
||||||
|
@ -145,7 +145,6 @@ pub fn is_used(&self) -> bool {
|
|||||||
/// `config.example.toml`.
|
/// `config.example.toml`.
|
||||||
#[derive(Default, Clone)]
|
#[derive(Default, Clone)]
|
||||||
pub struct Config {
|
pub struct Config {
|
||||||
pub changelog_seen: Option<usize>, // FIXME: Deprecated field. Remove it at 2024.
|
|
||||||
pub change_id: Option<usize>,
|
pub change_id: Option<usize>,
|
||||||
pub bypass_bootstrap_lock: bool,
|
pub bypass_bootstrap_lock: bool,
|
||||||
pub ccache: Option<String>,
|
pub ccache: Option<String>,
|
||||||
@ -605,7 +604,6 @@ pub fn from_triple(triple: &str) -> Self {
|
|||||||
#[derive(Deserialize, Default)]
|
#[derive(Deserialize, Default)]
|
||||||
#[serde(deny_unknown_fields, rename_all = "kebab-case")]
|
#[serde(deny_unknown_fields, rename_all = "kebab-case")]
|
||||||
pub(crate) struct TomlConfig {
|
pub(crate) struct TomlConfig {
|
||||||
changelog_seen: Option<usize>, // FIXME: Deprecated field. Remove it at 2024.
|
|
||||||
#[serde(flatten)]
|
#[serde(flatten)]
|
||||||
change_id: ChangeIdWrapper,
|
change_id: ChangeIdWrapper,
|
||||||
build: Option<Build>,
|
build: Option<Build>,
|
||||||
@ -645,17 +643,7 @@ trait Merge {
|
|||||||
impl Merge for TomlConfig {
|
impl Merge for TomlConfig {
|
||||||
fn merge(
|
fn merge(
|
||||||
&mut self,
|
&mut self,
|
||||||
TomlConfig {
|
TomlConfig { build, install, llvm, rust, dist, target, profile: _, change_id }: Self,
|
||||||
build,
|
|
||||||
install,
|
|
||||||
llvm,
|
|
||||||
rust,
|
|
||||||
dist,
|
|
||||||
target,
|
|
||||||
profile: _,
|
|
||||||
changelog_seen,
|
|
||||||
change_id,
|
|
||||||
}: Self,
|
|
||||||
replace: ReplaceOpt,
|
replace: ReplaceOpt,
|
||||||
) {
|
) {
|
||||||
fn do_merge<T: Merge>(x: &mut Option<T>, y: Option<T>, replace: ReplaceOpt) {
|
fn do_merge<T: Merge>(x: &mut Option<T>, y: Option<T>, replace: ReplaceOpt) {
|
||||||
@ -667,7 +655,6 @@ fn do_merge<T: Merge>(x: &mut Option<T>, y: Option<T>, replace: ReplaceOpt) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
self.changelog_seen.merge(changelog_seen, replace);
|
|
||||||
self.change_id.inner.merge(change_id.inner, replace);
|
self.change_id.inner.merge(change_id.inner, replace);
|
||||||
do_merge(&mut self.build, build, replace);
|
do_merge(&mut self.build, build, replace);
|
||||||
do_merge(&mut self.install, install, replace);
|
do_merge(&mut self.install, install, replace);
|
||||||
@ -1400,7 +1387,6 @@ fn get_table(option: &str) -> Result<TomlConfig, toml::de::Error> {
|
|||||||
}
|
}
|
||||||
toml.merge(override_toml, ReplaceOpt::Override);
|
toml.merge(override_toml, ReplaceOpt::Override);
|
||||||
|
|
||||||
config.changelog_seen = toml.changelog_seen;
|
|
||||||
config.change_id = toml.change_id.inner;
|
config.change_id = toml.change_id.inner;
|
||||||
|
|
||||||
let Build {
|
let Build {
|
||||||
|
@ -170,4 +170,9 @@ pub fn human_readable_changes(changes: &[ChangeInfo]) -> String {
|
|||||||
severity: ChangeSeverity::Warning,
|
severity: ChangeSeverity::Warning,
|
||||||
summary: "`rust.split-debuginfo` has been moved to `target.<triple>.split-debuginfo` and its default value is determined for each target individually.",
|
summary: "`rust.split-debuginfo` has been moved to `target.<triple>.split-debuginfo` and its default value is determined for each target individually.",
|
||||||
},
|
},
|
||||||
|
ChangeInfo {
|
||||||
|
change_id: 123711,
|
||||||
|
severity: ChangeSeverity::Warning,
|
||||||
|
summary: "The deprecated field `changelog-seen` has been removed. Using that field in `config.toml` from now on will result in breakage.",
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user