Skip to content

Remove record_* macros from the metadata encoder - #164636

Merged
rust-bors[bot] merged 4 commits into
rust-lang:mainfrom
susitsm:rmeta-encode-remove-record-macros
Oct 23, 2026
Merged

rust-bors[bot] merged 4 commits into
rust-lang:mainfrom
susitsm:rmeta-encode-remove-record-macros

Conversation

@susitsm

@susitsm susitsm commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

View all comments

Replaces record_* macros (record_some_lazy, record_some, record_value, record_array, record_defaulted_array) with encoder.table_writer().field(index, value) in the metadata encoder

@Zalathar for visibility

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Oct 20, 2026
@rustbot

rustbot commented Oct 20, 2026

Copy link
Copy Markdown
Collaborator

r? @fee1-dead

rustbot has assigned @fee1-dead.
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: compiler
  • compiler expanded to 77 candidates
  • Random selection from 19 candidates

Comment thread compiler/rustc_metadata/src/rmeta/mod.rs Outdated
Comment thread compiler/rustc_metadata/src/rmeta/encoder.rs
@susitsm
susitsm force-pushed the rmeta-encode-remove-record-macros branch 2 times, most recently from 8b81977 to 61df381 Compare October 21, 2026 06:44
@rust-log-analyzer

This comment has been minimized.

@susitsm

susitsm commented Oct 21, 2026

Copy link
Copy Markdown
Contributor Author

The job failed because of a network error when connecting to crates.io. Can I restart it somehow?

@rust-bors

This comment has been minimized.

@susitsm
susitsm force-pushed the rmeta-encode-remove-record-macros branch from 61df381 to b54b9ae Compare October 21, 2026 08:20
@rustbot

This comment has been minimized.

Comment thread compiler/rustc_metadata/src/rmeta/mod.rs Outdated
Comment thread compiler/rustc_metadata/src/rmeta/parameterized.rs
Comment thread compiler/rustc_metadata/src/rmeta/parameterized.rs Outdated
@susitsm
susitsm force-pushed the rmeta-encode-remove-record-macros branch from b54b9ae to e84dee3 Compare October 21, 2026 10:58
@Zalathar

Copy link
Copy Markdown
Member

r? me

cc @aerooneqq (author of #162900) to check that this isn’t going to cause unexpected problems for anything you have planned.

@rustbot rustbot assigned Zalathar and unassigned fee1-dead Oct 21, 2026
@aerooneqq

Copy link
Copy Markdown
Contributor

cc @aerooneqq (author of #162900) to check that this isn’t going to cause unexpected problems for anything you have planned.

Thanks, we already merged everything we planned after #162900, so it won't cause any problems.

@Zalathar

Copy link
Copy Markdown
Member

@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Oct 21, 2026
@rust-bors

This comment has been minimized.

rust-bors Bot pushed a commit that referenced this pull request Oct 21, 2026
…<try>

Remove `record_*` macros from the metadata encoder
Comment thread compiler/rustc_metadata/src/rmeta/encoder.rs
@rust-bors

rust-bors Bot commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

☀️ Try build successful (CI)
Build commit: 706d2ca (706d2ca7a7d54e00031e0bdfe538dde4e1148330)
Base parent: 1731fae (1731faea0da5b4ebf881d8e53f98066c17a74711)

@rust-timer

This comment has been minimized.

@rust-timer

Copy link
Copy Markdown
Collaborator

Finished benchmarking commit (706d2ca): comparison URL.

Overall result: no relevant changes - no action needed

Benchmarking means the PR may be perf-sensitive. Consider adding rollup=never if this change is not fit for rolling up.

@rustbot label: -S-waiting-on-perf -perf-regression

Instruction count

This perf run didn't have relevant results for this metric.

Max RSS (memory usage)

Results (primary -2.2%, secondary -0.0%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
3.0% [0.5%, 8.0%] 4
Improvements ✅
(primary)
-2.2% [-2.2%, -2.2%] 1
Improvements ✅
(secondary)
-3.0% [-4.9%, -0.6%] 4
All ❌✅ (primary) -2.2% [-2.2%, -2.2%] 1

Cycles

Results (secondary -0.2%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
1.9% [1.2%, 3.1%] 3
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-1.1% [-2.1%, -0.6%] 7
All ❌✅ (primary) - - 0

Binary size

This perf run didn't have relevant results for this metric.

Bootstrap: 490.972s -> 495.97s (1.02%)
Artifact size: 406.53 MiB -> 406.46 MiB (-0.02%)

@rust-bors rust-bors Bot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 22, 2026
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Oct 22, 2026
…-macros, r=Zalathar

Remove `record_*` macros from the metadata encoder

Replaces `record_*` macros (`record_some_lazy`, `record_some`, `record_value`, `record_array`, `record_defaulted_array`) with `encoder.table_writer().field(index, value)` in the metadata encoder
rust-bors Bot pushed a commit that referenced this pull request Oct 22, 2026
…uwer

Rollup of 5 pull requests

Successful merges:

 - #161790 (update to illumos sysroot 20210501)
 - #163087 (rmake: Add helpers for iterating symbols and objects)
 - #163983 (std: use `SOCK_NONBLOCK` in `connect_timeout`)
 - #164636 (Remove `record_*` macros from the metadata encoder)
 - #164717 (Allow `llm-assisted` label to be set without write access)
rust-bors Bot pushed a commit that referenced this pull request Oct 22, 2026
…uwer

Rollup of 12 pull requests

Successful merges:

 - #164458 (Avoid stdlib's `impl Hash for Path` for stable hashing)
 - #161790 (update to illumos sysroot 20210501)
 - #163087 (rmake: Add helpers for iterating symbols and objects)
 - #163586 (refactor Windows remove_dir_all)
 - #163983 (std: use `SOCK_NONBLOCK` in `connect_timeout`)
 - #164307 (Rename `PostTypeckUntilBorrowck` -> `PostTypeckThroughBorrowck`)
 - #164425 (Declare `SyntaxContext` through `rustc_index::newtype_index!`)
 - #156841 (Avoid cloning CFG-related analysis data.)
 - #164654 (Add reference annotations for unions)
 - #164717 (Allow `llm-assisted` label to be set without write access)
 - #164735 (Remove docs mentioning instability of wasm64)
 - #164737 (Update LLVM PassBuilder constructor calls to pass a context)

Failed merges:

 - #164636 (Remove `record_*` macros from the metadata encoder)
jhpratt added a commit to jhpratt/rust that referenced this pull request Oct 22, 2026
…-macros, r=Zalathar

Remove `record_*` macros from the metadata encoder

Replaces `record_*` macros (`record_some_lazy`, `record_some`, `record_value`, `record_array`, `record_defaulted_array`) with `encoder.table_writer().field(index, value)` in the metadata encoder
rust-bors Bot pushed a commit that referenced this pull request Oct 23, 2026
…uwer

Rollup of 12 pull requests

Successful merges:

 - #164458 (Avoid stdlib's `impl Hash for Path` for stable hashing)
 - #161790 (update to illumos sysroot 20210501)
 - #163087 (rmake: Add helpers for iterating symbols and objects)
 - #163586 (refactor Windows remove_dir_all)
 - #163983 (std: use `SOCK_NONBLOCK` in `connect_timeout`)
 - #164307 (Rename `PostTypeckUntilBorrowck` -> `PostTypeckThroughBorrowck`)
 - #164425 (Declare `SyntaxContext` through `rustc_index::newtype_index!`)
 - #156841 (Avoid cloning CFG-related analysis data.)
 - #164654 (Add reference annotations for unions)
 - #164717 (Allow `llm-assisted` label to be set without write access)
 - #164735 (Remove docs mentioning instability of wasm64)
 - #164737 (Update LLVM PassBuilder constructor calls to pass a context)

Failed merges:

 - #164636 (Remove `record_*` macros from the metadata encoder)
rust-bors Bot pushed a commit that referenced this pull request Oct 23, 2026
…uwer

Rollup of 12 pull requests

Successful merges:

 - #164458 (Avoid stdlib's `impl Hash for Path` for stable hashing)
 - #161790 (update to illumos sysroot 20210501)
 - #163087 (rmake: Add helpers for iterating symbols and objects)
 - #163586 (refactor Windows remove_dir_all)
 - #163983 (std: use `SOCK_NONBLOCK` in `connect_timeout`)
 - #164307 (Rename `PostTypeckUntilBorrowck` -> `PostTypeckThroughBorrowck`)
 - #164425 (Declare `SyntaxContext` through `rustc_index::newtype_index!`)
 - #156841 (Avoid cloning CFG-related analysis data.)
 - #164654 (Add reference annotations for unions)
 - #164717 (Allow `llm-assisted` label to be set without write access)
 - #164735 (Remove docs mentioning instability of wasm64)
 - #164737 (Update LLVM PassBuilder constructor calls to pass a context)

Failed merges:

 - #164636 (Remove `record_*` macros from the metadata encoder)
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Oct 23, 2026
…-macros, r=Zalathar

Remove `record_*` macros from the metadata encoder

Replaces `record_*` macros (`record_some_lazy`, `record_some`, `record_value`, `record_array`, `record_defaulted_array`) with `encoder.table_writer().field(index, value)` in the metadata encoder
@rust-bors rust-bors Bot added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Oct 23, 2026
@rust-bors

This comment has been minimized.

@rust-bors rust-bors Bot removed the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Oct 23, 2026
@susitsm
susitsm force-pushed the rmeta-encode-remove-record-macros branch from e84dee3 to 10dcc9b Compare October 23, 2026 08:20
@rustbot

rustbot commented Oct 23, 2026

Copy link
Copy Markdown
Collaborator

This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

@Zalathar

Copy link
Copy Markdown
Member

@bors r+

@rust-bors

rust-bors Bot commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 10dcc9b has been tentatively approved by Zalathar

It will be put into the queue for this repository once PR CI succeeds.

@rust-bors rust-bors Bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Oct 23, 2026
rust-bors Bot pushed a commit that referenced this pull request Oct 23, 2026
…uwer

Rollup of 5 pull requests

Successful merges:

 - #162395 (Make more float intrinsics generic)
 - #164636 (Remove `record_*` macros from the metadata encoder)
 - #164624 (make `RustaceansAreAwesome` satisfy projection clauses)
 - #164695 ([tiny] Include trait definition line when pointing at assoc function in E0308)
 - #164744 (some `Attribute`/`AttributeExt` cleanups)
@rust-bors
rust-bors Bot merged commit b12a9ee into rust-lang:main Oct 23, 2026
14 checks passed
rust-bors Bot pushed a commit that referenced this pull request Oct 23, 2026
Rollup merge of #164636 - susitsm:rmeta-encode-remove-record-macros, r=Zalathar

Remove `record_*` macros from the metadata encoder

Replaces `record_*` macros (`record_some_lazy`, `record_some`, `record_value`, `record_array`, `record_defaulted_array`) with `encoder.table_writer().field(index, value)` in the metadata encoder
@rustbot rustbot added this to the 1.101.0 milestone Oct 23, 2026
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-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants