Skip to content

Stop excluding stdarch test crates from rust-src#158336

Open
CathalMullan wants to merge 1 commit into
rust-lang:mainfrom
CathalMullan:stdarch-dist
Open

Stop excluding stdarch test crates from rust-src#158336
CathalMullan wants to merge 1 commit into
rust-lang:mainfrom
CathalMullan:stdarch-dist

Conversation

@CathalMullan

@CathalMullan CathalMullan commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

In the past, this exclusion saved 30MB of heavy intrinsics data from ending up in rust-src. However, this filter has been outdated since rust-lang/stdarch#1894, which moved the data to library/stdarch/intrinsics_data. These intrinsics have also shrunk since then, and now sit around 12MB (300KB when compressed).

So this specific change only adds a few KBs:

rust-src compressed unpacked
before 8.01 MB 76.5 MB
after 8.06 MB 76.9 MB

The motivation for this change would be simplifying integration of the stdarch test suite into cg_clif.

For completeness, if we instead fixed the filter to point to the new data location, we'd shrink the dist to:

rust-src compressed unpacked
filtered 7.64 MB 64.7 MB

cc @bjorn3

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) labels Jun 24, 2026
@rustbot

rustbot commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

r? @jieyouxu

rustbot has assigned @jieyouxu.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: bootstrap
  • bootstrap expanded to 6 candidates
  • Random selection from Mark-Simulacrum, clubby789, jieyouxu

@Mark-Simulacrum

Copy link
Copy Markdown
Member

@bors r+ rollup=iffy

Hm, those ~12MB we'd get by dropping the data after unpacking would be nice, but I think we can take the current step for now -- seems broadly harmless.

I wonder if the implication there is that intrinsics_data should store compressed copies of the data, rather than keeping the raw contents in the repository? Or at least support using a compressed form (in which case we could compress in bootstrap for example)? Most users would probably be happier with that disk space use (and it's probably a bit faster to write to disk as well).

r? me

@rust-bors

rust-bors Bot commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

📌 Commit f446391 has been approved by Mark-Simulacrum

It is now in the queue for this repository.

🌲 The tree is currently closed for pull requests below priority 5. This pull request will be tested once the tree is reopened.

@rust-bors rust-bors Bot added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Jun 24, 2026
@rust-bors rust-bors Bot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jun 24, 2026
jhpratt added a commit to jhpratt/rust that referenced this pull request Jun 24, 2026
…Simulacrum

Stop excluding `stdarch` test crates from `rust-src`

In the past, this exclusion saved 30MB of heavy intrinsics data from ending up in `rust-src`. However, this filter has been outdated since rust-lang/stdarch#1894, which moved the data to `library/stdarch/intrinsics_data`. These intrinsics have also shrunk since then, and now sit around 12MB (300KB when compressed).

So this specific change only adds a few KBs:

| `rust-src` | compressed | unpacked |
| ---------- | ---------- | -------- |
| before     | 8.01 MB    | 76.5 MB  |
| after      | 8.06 MB    | 76.9 MB  |

The motivation for this change would be simplifying integration of the `stdarch` test suite into `cg_clif`.

For completeness, if we instead fixed the filter to point to the new data location, we'd shrink the dist to:

| `rust-src` | compressed | unpacked |
| ---------- | ---------- | -------- |
| filtered   | 7.64 MB    | 64.7 MB  |

cc @bjorn3
jhpratt added a commit to jhpratt/rust that referenced this pull request Jun 24, 2026
…Simulacrum

Stop excluding `stdarch` test crates from `rust-src`

In the past, this exclusion saved 30MB of heavy intrinsics data from ending up in `rust-src`. However, this filter has been outdated since rust-lang/stdarch#1894, which moved the data to `library/stdarch/intrinsics_data`. These intrinsics have also shrunk since then, and now sit around 12MB (300KB when compressed).

So this specific change only adds a few KBs:

| `rust-src` | compressed | unpacked |
| ---------- | ---------- | -------- |
| before     | 8.01 MB    | 76.5 MB  |
| after      | 8.06 MB    | 76.9 MB  |

The motivation for this change would be simplifying integration of the `stdarch` test suite into `cg_clif`.

For completeness, if we instead fixed the filter to point to the new data location, we'd shrink the dist to:

| `rust-src` | compressed | unpacked |
| ---------- | ---------- | -------- |
| filtered   | 7.64 MB    | 64.7 MB  |

cc @bjorn3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants