Skip to content

Fix byte_char_slices FN on arrays#16770

Open
profetia wants to merge 2 commits intorust-lang:masterfrom
profetia:issue16759
Open

Fix byte_char_slices FN on arrays#16770
profetia wants to merge 2 commits intorust-lang:masterfrom
profetia:issue16759

Conversation

@profetia
Copy link
Copy Markdown
Member

@profetia profetia commented Mar 26, 2026

Closes #16759

changelog: [byte_char_slices] fix FN on arrays

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Mar 26, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Mar 26, 2026

r? @samueltardieu

rustbot has assigned @samueltardieu.
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: 7 candidates
  • 7 candidates expanded to 7 candidates
  • Random selection from Jarcho, dswij, llogiq, samueltardieu

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 26, 2026

Lintcheck changes for c2cca1a

Lint Added Removed Changed
clippy::byte_char_slices 4 0 0

This comment will be updated if you push new changes

@samueltardieu
Copy link
Copy Markdown
Member

I wonder whether it would be interesting to see how this array is then used. If all uses are adjusted and auto-dereferenced, then suggesting b"…" (without *) would make sense.

@profetia
Copy link
Copy Markdown
Member Author

Agree.

@profetia
Copy link
Copy Markdown
Member Author

Implemented. The lint is now moved to late pass. I also avoid arrays with comments or cfg, looking into the lint check results.

@rustbot

This comment has been minimized.

@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Mar 28, 2026

This PR was rebased onto a different master 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties

Projects

None yet

Development

Successfully merging this pull request may close these issues.

byte_char_slices should trigger on arrays

3 participants