From fcce61c8116dbcfdfbb94243cc42c6d491c13328 Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Tue, 11 Nov 2025 11:34:28 +0000 Subject: [PATCH] Remove specialized warning for removed target It has been removed 9 months ago, which is more than a few months. --- compiler/rustc_target/src/spec/mod.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/compiler/rustc_target/src/spec/mod.rs b/compiler/rustc_target/src/spec/mod.rs index 2dd0fbc4517a5..342f0bdf0e74e 100644 --- a/compiler/rustc_target/src/spec/mod.rs +++ b/compiler/rustc_target/src/spec/mod.rs @@ -3194,15 +3194,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), }