Remove unused arguments of functions - #162641
Conversation
|
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 |
|
r? @tiif rustbot has assigned @tiif. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
r? me r=me once CI is green @bors rollup |
|
@bors r=boxyuwu |
We do plan to land a way for code to opt out of dead code analysis, see #160621 |
…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.
This comment has been minimized.
This comment has been minimized.
15fd45c to
80e7183
Compare
|
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. |
|
@bors r=BoxyUwU |
…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.
|
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? |
…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`)
…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`)
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.
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.