Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove i586-pc-windows-msvc #840

Closed
1 of 3 tasks
beetrees opened this issue Feb 19, 2025 · 3 comments
Closed
1 of 3 tasks

Remove i586-pc-windows-msvc #840

beetrees opened this issue Feb 19, 2025 · 3 comments
Labels
major-change A proposal to make a major change to rustc major-change-accepted A major change proposal that was accepted T-compiler Add this label so rfcbot knows to poll the compiler team

Comments

@beetrees
Copy link

Proposal

i586-pc-windows-msvc is the non-SSE version of the i686-pc-windows-msvc target, added back in 2016 in rust-lang/rust#32034 when Rust supported Windows XP. Windows XP/Vista support was subsequently dropped in #378, and Windows 7/8 support for then-existing targets was dropped in #651, which raised "the minimum supported Windows version of current targets to Windows 10". i586-pc-windows-msvc is currently listed as a tier 2 target without std support.

Windows hasn't supported pre-SSE2 CPUs since Windows 8, with Windows 7 apparently dropping support for pre-SSE2 CPUs in a March 2018 update. This means that for Windows 10+ the i586-pc-windows-msvc target (when compared to the i686-pc-windows-msvc target) is a footgun: it provides worse performance with more miscompilations (see rust-lang/rust#114479), without providing any greater CPU support, as the underlying OS requires SSE2 anyway.

Given the lack of purpose for this target on Windows 10+ as detailed above the target also fails the tier 2 target policy requirement that a target "must document [...] why the specific difference in baseline expectations provides sufficient value to justify a separate target". There aren't any target maintains listed for this target, and none of the existing Windows 7 maintainers want to maintain a hypothetical i586-win7-windows-msvc target. Therefore, I propose removing the i586-pc-windows-msvc target.

(Previous discussion is available at rust-lang/rust#137244)

Mentors or Reviewers

If you have a reviewer or mentor in mind for this work, mention them
here. You can put your own name here if you are planning to mentor the
work.

Process

The main points of the Major Change Process are as follows:

  • File an issue describing the proposal.
  • A compiler team member or contributor who is knowledgeable in the area can second by writing @rustbot second.
    • Finding a "second" suffices for internal changes. If however, you are proposing a new public-facing feature, such as a -C flag, then full team check-off is required.
    • Compiler team members can initiate a check-off via @rfcbot fcp merge on either the MCP or the PR.
  • Once an MCP is seconded, the Final Comment Period begins. If no objections are raised after 10 days, the MCP is considered approved.

You can read more about Major Change Proposals on forge.

@beetrees beetrees added major-change A proposal to make a major change to rustc T-compiler Add this label so rfcbot knows to poll the compiler team labels Feb 19, 2025
@rustbot
Copy link
Collaborator

rustbot commented Feb 19, 2025

Important

This issue is not meant to be used for technical discussion. There is a Zulip stream for that. Use this issue to leave procedural comments, such as volunteering to review, indicating that you second the proposal (or third, etc), or raising a concern that you would like to be addressed.

Concerns or objections to the proposal should be discussed on Zulip and formally registered here by adding a comment with the following syntax:

@rfcbot concern reason-for-concern 
<description of the concern> 

Concerns can be lifted with:

@rfcbot resolve reason-for-concern 

See documentation at https://forge.rust-lang.org

cc @rust-lang/compiler

@Noratrieb
Copy link
Member

@rustbot second

@rustbot rustbot added the final-comment-period The FCP has started, most (if not all) team members are in agreement label Feb 19, 2025
@apiraino apiraino removed the to-announce Announce this issue on triage meeting label Feb 21, 2025
@apiraino
Copy link
Contributor

apiraino commented Mar 3, 2025

@rustbot label -final-comment-period +major-change-accepted

@apiraino apiraino closed this as completed Mar 3, 2025
@rustbot rustbot added major-change-accepted A major change proposal that was accepted to-announce Announce this issue on triage meeting and removed final-comment-period The FCP has started, most (if not all) team members are in agreement labels Mar 3, 2025
@apiraino apiraino removed the to-announce Announce this issue on triage meeting label Mar 7, 2025
compiler-errors added a commit to compiler-errors/rust that referenced this issue Mar 7, 2025
Remove i586-pc-windows-msvc

See [MCP 840](rust-lang/compiler-team#840).

I left a specialized error message that should help users that hit this in the wild (for example, because they use it in their CI).

```
error: Error loading target specification: the `i586-pc-windows-msvc` target has been removed. Use the `i686-pc-windows-msvc` target instead.
       Windows 10 (the minimum required OS version) requires a CPU baseline of at least i686 so you can safely switch. Run `rustc --print target-list` for a list of built-in targets
```

`@workingjubilee` `@calebzulawski` fyi portable-simd uses this target in CI, if you wanna remove it already before this happens
jhpratt added a commit to jhpratt/rust that referenced this issue Mar 8, 2025
Remove i586-pc-windows-msvc

See [MCP 840](rust-lang/compiler-team#840).

I left a specialized error message that should help users that hit this in the wild (for example, because they use it in their CI).

```
error: Error loading target specification: the `i586-pc-windows-msvc` target has been removed. Use the `i686-pc-windows-msvc` target instead.
       Windows 10 (the minimum required OS version) requires a CPU baseline of at least i686 so you can safely switch. Run `rustc --print target-list` for a list of built-in targets
```

``@workingjubilee`` ``@calebzulawski`` fyi portable-simd uses this target in CI, if you wanna remove it already before this happens
rust-timer added a commit to rust-lang-ci/rust that referenced this issue Mar 8, 2025
Rollup merge of rust-lang#137957 - Noratrieb:no, r=wesleywiser

Remove i586-pc-windows-msvc

See [MCP 840](rust-lang/compiler-team#840).

I left a specialized error message that should help users that hit this in the wild (for example, because they use it in their CI).

```
error: Error loading target specification: the `i586-pc-windows-msvc` target has been removed. Use the `i686-pc-windows-msvc` target instead.
       Windows 10 (the minimum required OS version) requires a CPU baseline of at least i686 so you can safely switch. Run `rustc --print target-list` for a list of built-in targets
```

``@workingjubilee`` ``@calebzulawski`` fyi portable-simd uses this target in CI, if you wanna remove it already before this happens
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
major-change A proposal to make a major change to rustc major-change-accepted A major change proposal that was accepted T-compiler Add this label so rfcbot knows to poll the compiler team
Projects
None yet
Development

No branches or pull requests

4 participants