Skip to content

rustc_serialize: Remove unnecessary lifetime from FileEncoder - #166699

Open
petrochenkov wants to merge 1 commit into
rust-lang:mainfrom
petrochenkov:flushstr
Open

petrochenkov wants to merge 1 commit into
rust-lang:mainfrom
petrochenkov:flushstr

Conversation

@petrochenkov

@petrochenkov petrochenkov commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

It was added in #157620 only to avoid boxing a closure ~once per compilation.

@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 Nov 28, 2026
@rustbot

rustbot commented Nov 28, 2026

Copy link
Copy Markdown
Collaborator

r? @Enselic

rustbot has assigned @Enselic.
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 79 candidates
  • Random selection from 19 candidates

@Urgau Urgau left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rust-bors

rust-bors Bot commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

📌 Commit d1029cd has been tentatively approved by Urgau

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

@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 Nov 28, 2026
@rust-bors rust-bors Bot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 28, 2026
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Nov 28, 2026
rustc_serialize: Remove unnecessary lifetime from `FileEncoder`

It was added in rust-lang#157620 only to avoid boxing a closure ~once per compilation.
@Kobzol

Kobzol commented Nov 28, 2026

Copy link
Copy Markdown
Member

@bors try @rust-timer queue

@rust-timer

Copy link
Copy Markdown

Awaiting bors try build completion.

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

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

This comment has been minimized.

rust-bors Bot pushed a commit that referenced this pull request Nov 28, 2026
rustc_serialize: Remove unnecessary lifetime from `FileEncoder`
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Nov 28, 2026
rustc_serialize: Remove unnecessary lifetime from `FileEncoder`

It was added in rust-lang#157620 only to avoid boxing a closure ~once per compilation.
rust-bors Bot pushed a commit that referenced this pull request Nov 28, 2026
…uwer

Rollup of 5 pull requests

Successful merges:

 - #166232 (Fix considering `[u8; 0]` to have trivial ABI in layout)
 - #166663 (optimize `ArrayWindows::nth`)
 - #166693 (Make function signatures a separate type in `rustc_codegen_llvm`)
 - #166699 (rustc_serialize: Remove unnecessary lifetime from `FileEncoder`)
 - #166665 (Mention alignment in handle_alloc_error)
@rust-bors

rust-bors Bot commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

☀️ Try build successful (CI)
Build commit: 6914fe6 (6914fe6ae200efa0a1241e2038bd89dbef291489)
Base parent: d5bb9f8 (d5bb9f808cf00108e41418b98a11851975e052f9)

@rust-timer

Copy link
Copy Markdown

Queued 6914fe6 with parent d5bb9f8, future comparison URL.
There are currently 2 preceding artifacts in the queue.
It will probably take at least ~2.1 hours until the benchmark run finishes.

JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Nov 28, 2026
rustc_serialize: Remove unnecessary lifetime from `FileEncoder`

It was added in rust-lang#157620 only to avoid boxing a closure ~once per compilation.
rust-bors Bot pushed a commit that referenced this pull request Nov 28, 2026
…uwer

Rollup of 5 pull requests

Successful merges:

 - #166232 (Fix considering `[u8; 0]` to have trivial ABI in layout)
 - #166663 (optimize `ArrayWindows::nth`)
 - #166693 (Make function signatures a separate type in `rustc_codegen_llvm`)
 - #166699 (rustc_serialize: Remove unnecessary lifetime from `FileEncoder`)
 - #166366 (Add tests to check we don't confuse LLVM and builtin intrinsics.)
rust-bors Bot pushed a commit that referenced this pull request Nov 28, 2026
…uwer

Rollup of 5 pull requests

Successful merges:

 - #166232 (Fix considering `[u8; 0]` to have trivial ABI in layout)
 - #166663 (optimize `ArrayWindows::nth`)
 - #166693 (Make function signatures a separate type in `rustc_codegen_llvm`)
 - #166699 (rustc_serialize: Remove unnecessary lifetime from `FileEncoder`)
 - #166366 (Add tests to check we don't confuse LLVM and builtin intrinsics.)

This branch has not been deployed

No deployments
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. S-waiting-on-perf Status: Waiting on a perf run to be completed. 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.

6 participants