Rollup merge of #148819 - bjorn3:fix_fixme, r=jieyouxu

Remove specialized warning for removed target

It has been removed 9 months ago, which is more than a few months.
This commit is contained in:
Stuart Cook 2025-11-12 12:26:41 +11:00 committed by GitHub
commit 672c6b603c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3317,15 +3317,7 @@ impl Target {
return load_file(&p);
}
// Leave in a specialized error message for the removed target.
// FIXME: If you see this and it's been a few months after this has been released,
// you can probably remove it.
if target_tuple == "i586-pc-windows-msvc" {
Err("the `i586-pc-windows-msvc` target has been removed. Use the `i686-pc-windows-msvc` target instead.\n\
Windows 10 (the minimum required OS version) requires a CPU baseline of at least i686 so you can safely switch".into())
} else {
Err(format!("could not find specification for target {target_tuple:?}"))
}
Err(format!("could not find specification for target {target_tuple:?}"))
}
TargetTuple::TargetJson { ref contents, .. } => Target::from_json(contents),
}