Skip to content

Conversation

flip1995
Copy link
Member

r? @Manishearth

Cargo.lock update, because clippy_utils is now also using itertools

ada4a and others added 30 commits September 4, 2025 01:38
Volatile reads and writes to non-primitive types are not well-defined, and can cause problems.

See rust-lang/rust-clippy#15529 for more details.
switch around `*_amount` and `*_expr` -- otherwise the order gets
confusing now because of both of them being `Expr`s
this is kind of a side-effect of the next commit
changelog: none

Signed-off-by: Zihan <zihanli0822@gmail.com>
now lints on
```rs
let mut x = [1,2,3].into_iter();
loop {
   let Some(x) = x.next() else { break };
   dbg!(x);
}
```
```
changelog: [`while_let_loop`]: extend to lint on `let else`
```
Volatile reads and writes to non-primitive types are not well-defined,
and can cause problems.

Fixes rust-lang/rust-clippy#15529

changelog: [`volatile_composites`]: Lint when read/write_volatile is
used on composite types
(structs, arrays, etc) as their semantics are not well defined.
Remove no-rustfixes where it's not required anymore

changelog: none
…avidtwco

test: Subtract code_offset from width for ui_testing

`annotate-snippets` does not have a "UI test" mode like `rustc`, [where the code offset is not subtracted from the column width](https://github.com/rust-lang/rust/blob/f34ba774c78ea32b7c40598b8ad23e75cdac42a6/compiler/rustc_errors/src/emitter.rs#L1985-L1987). This makes it so `annotate-snippets` will shift the output for some very long tests 5 - 7 columns to the left. As part of my work to have `rustc` use `annotate-snippets`, and to reduce the test differences between the two, I figured it would be best if `rustc` started subtracting the code offset from the width as well.

The first commit exists to keep the test output changes of adding a new line to a test separate from adding the `--diagnostic-width` flag in the second commit. This makes it easier to verify that adding the flag does not affect the test's output.

[Zulip discussion](https://rust-lang.zulipchat.com/#narrow/channel/147480-t-compiler.2Fdiagnostics/topic/annotate-snippets.20hurdles)
…ang#15816)

Fixes rust-lang/rust-clippy#15805

ICE bisects to 9457d64, which handles the span incorrectly when part
of the path originates from internal declarative macro.

changelog: none
…rn suggestions (rust-lang#15608)

Fixes rust-lang/rust-clippy#13287

changelog: [`collapsible_match`]: exclude binding modes from struct
field pattern suggestions
Adds a new lint that detects `var = Default::default()` when `var` is
`Box<T>` and `T` implements `Default`.

changelog: [`replace_box`]: new lint
…-lang#15547)

Closes rust-lang/rust-clippy#14550
Closes rust-lang/rust-clippy#15548

changelog: [`needless_continue`] fix FP when match type is not unit or
never
@Manishearth
Copy link
Member

@bors r+ p=1 rollup=never

@bors
Copy link
Collaborator

bors commented Oct 16, 2025

📌 Commit 9895efc has been approved by Manishearth

It is now in the queue for this repository.

@bors bors 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 Oct 16, 2025
@bors
Copy link
Collaborator

bors commented Oct 16, 2025

⌛ Testing commit 9895efc with merge 745e321...

bors added a commit that referenced this pull request Oct 16, 2025
Clippy subtree update

r? `@Manishearth`

`Cargo.lock` update, because `clippy_utils` is now also using `itertools`
@rust-log-analyzer

This comment has been minimized.

@bors
Copy link
Collaborator

bors commented Oct 16, 2025

💔 Test failed - checks-actions

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Oct 16, 2025
@flip1995 flip1995 force-pushed the clippy-subtree-update branch from 9895efc to 4b0cfb6 Compare October 16, 2025 18:38
@flip1995
Copy link
Member Author

The above issue should be fixed now.

@Manishearth
Copy link
Member

@bors r+

@bors
Copy link
Collaborator

bors commented Oct 16, 2025

📌 Commit 4b0cfb6 has been approved by Manishearth

It is now in the queue for this repository.

@bors bors 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 Oct 16, 2025
@bors
Copy link
Collaborator

bors commented Oct 16, 2025

⌛ Testing commit 4b0cfb6 with merge 0d080a5...

bors added a commit that referenced this pull request Oct 16, 2025
Clippy subtree update

r? `@Manishearth`

`Cargo.lock` update, because `clippy_utils` is now also using `itertools`
@rust-log-analyzer
Copy link
Collaborator

The job x86_64-mingw-1 failed! Check out the build log: (web) (plain enhanced) (plain)

Click to see the possible cause of the failure (guessed by this bot)

error: test failed, to rerun pass `-p std --test sync`
Bootstrap failed while executing `test --stage 2 --skip=compiler --skip=src`
Build completed unsuccessfully in 2:09:38
make: *** [Makefile:123: ci-mingw-x] Error 1
  local time: Fri Oct 17 00:02:22 CUT 2025
  network time: Fri, 17 Oct 2025 00:02:22 GMT
##[error]Process completed with exit code 2.
##[group]Run echo "disk usage:"
echo "disk usage:"

@bors
Copy link
Collaborator

bors commented Oct 17, 2025

💔 Test failed - checks-actions

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Oct 17, 2025
@samueltardieu
Copy link
Member

It looks like the test that made it fail is spuriously failing a lot.

@bors retry

@bors bors 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 Oct 17, 2025
@samueltardieu
Copy link
Member

(I've open this Zulip thread on the repeated failure of the mingw test)

@bors
Copy link
Collaborator

bors commented Oct 17, 2025

⌛ Testing commit 4b0cfb6 with merge a41214f...

bors added a commit that referenced this pull request Oct 17, 2025
Clippy subtree update

r? `@Manishearth`

`Cargo.lock` update, because `clippy_utils` is now also using `itertools`
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-clippy Relevant to the Clippy team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.