Skip to content

Remove unused arguments of functions - #162641

Merged
rust-bors[bot] merged 9 commits into
rust-lang:mainfrom
JonathanBrouwer:unused_args
Sep 12, 2026
Merged

Remove unused arguments of functions#162641
rust-bors[bot] merged 9 commits into
rust-lang:mainfrom
JonathanBrouwer:unused_args

Conversation

@JonathanBrouwer

Copy link
Copy Markdown
Member

That these arguments are unused was hidden by the #[trace::instrument] macro, which uses the arguments.
I don't see an easy way to avoid this from happening in the future.

@rustbot

rustbot commented Sep 11, 2026

Copy link
Copy Markdown
Collaborator

Some changes occurred in match checking

cc @Nadrieril

Some changes occurred to MIR optimizations

cc @rust-lang/wg-mir-opt

Some changes occurred to the core trait solver

cc @rust-lang/initiative-trait-system-refactor

@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. WG-trait-system-refactor The Rustc Trait System Refactor Initiative (-Znext-solver) labels Sep 11, 2026
@rustbot

rustbot commented Sep 11, 2026

Copy link
Copy Markdown
Collaborator

r? @tiif

rustbot has assigned @tiif.
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 76 candidates
  • Random selection from 20 candidates

@BoxyUwU

BoxyUwU commented Sep 11, 2026

Copy link
Copy Markdown
Member

r? me

r=me once CI is green

@bors rollup

@rustbot rustbot assigned BoxyUwU and unassigned tiif Sep 11, 2026
@JonathanBrouwer

Copy link
Copy Markdown
Member Author

@bors r=boxyuwu

@rust-bors

rust-bors Bot commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 15fd45c has been approved by boxyuwu

It is now in the queue for this repository.

@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-review Status: Awaiting review from the assignee but also interested parties. labels Sep 11, 2026
@mejrs

mejrs commented Sep 11, 2026

Copy link
Copy Markdown
Member

I don't see an easy way to avoid this from happening in the future.

We do plan to land a way for code to opt out of dead code analysis, see #160621

JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Sep 11, 2026
…yuwu

Remove unused arguments of functions

That these arguments are unused was hidden by the `#[trace::instrument]` macro, which uses the arguments.
I don't see an easy way to avoid this from happening in the future.
@rust-bors rust-bors Bot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Sep 11, 2026
@rust-bors

This comment has been minimized.

@rustbot

rustbot commented Sep 12, 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.

@JonathanBrouwer

Copy link
Copy Markdown
Member Author

@bors r=BoxyUwU

@rust-bors

rust-bors Bot commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 80e7183 has been approved by BoxyUwU

It is now in the queue for this repository.

@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 Sep 12, 2026
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Sep 12, 2026
…yUwU

Remove unused arguments of functions

That these arguments are unused was hidden by the `#[trace::instrument]` macro, which uses the arguments.
I don't see an easy way to avoid this from happening in the future.
@Kobzol

Kobzol commented Sep 12, 2026

Copy link
Copy Markdown
Member

I ran into some of these recently, and I wonder if e.g. the name parameter was kept there precisely to be seen in tracing logs?

rust-bors Bot pushed a commit that referenced this pull request Sep 12, 2026
…uwer

Rollup of 2 pull requests

Successful merges:

 - #162641 (Remove unused arguments of functions)
 - #162663 (Rustdoc issue template: fix typo in comment ("thorugh"))
rust-bors Bot pushed a commit that referenced this pull request Sep 12, 2026
…uwer

Rollup of 6 pull requests

Successful merges:

 - #162623 (Use GrowableBitSet in the main loop of `rustc_mir_transform::sroa`)
 - #162678 (Disconnect `rustc_codegen_ssa` from `rustc_mir_transform`)
 - #162641 (Remove unused arguments of functions)
 - #162663 (Rustdoc issue template: fix typo in comment ("thorugh"))
 - #162684 (Add `E0747` explanation for `type/const` mismatch case)
 - #162685 (Stabilize `Vec::from_fn`)
rust-bors Bot pushed a commit that referenced this pull request Sep 12, 2026
…uwer

Rollup of 6 pull requests

Successful merges:

 - #162623 (Use GrowableBitSet in the main loop of `rustc_mir_transform::sroa`)
 - #162678 (Disconnect `rustc_codegen_ssa` from `rustc_mir_transform`)
 - #162641 (Remove unused arguments of functions)
 - #162663 (Rustdoc issue template: fix typo in comment ("thorugh"))
 - #162684 (Add `E0747` explanation for `type/const` mismatch case)
 - #162685 (Stabilize `Vec::from_fn`)
@rust-bors
rust-bors Bot merged commit d66ffb0 into rust-lang:main Sep 12, 2026
13 checks passed
@rustbot rustbot added this to the 1.100.0 milestone Sep 12, 2026
rust-bors Bot pushed a commit that referenced this pull request Sep 12, 2026
Rollup merge of #162641 - JonathanBrouwer:unused_args, r=BoxyUwU

Remove unused arguments of functions

That these arguments are unused was hidden by the `#[trace::instrument]` macro, which uses the arguments.
I don't see an easy way to avoid this from happening in the future.
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. WG-trait-system-refactor The Rustc Trait System Refactor Initiative (-Znext-solver)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants