Skip to content

Conversation

ada4a
Copy link
Contributor

@ada4a ada4a commented Sep 30, 2025

  • cast &[Arm] to &[Arm; 2] early on to hopefully avoid bounds checks
  • use if let [pattern] = X { .. } instead of if let patterns = X { let pattern = patterns[0]; .. }
  • use Symbols instead of &strs
  • reduce indentation

Diff best viewed with whitespace ignored

changelog: none

- cast `&[Arm]` to `&[Arm; 2]` early on to hopefully avoid bounds checks
- use `if let [pattern] = X { .. }` instead of
  `if let patterns = X { let pattern = patterns[0]; .. }`
- use `Symbol`s instead of `&str`s
- reduce indentation
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Sep 30, 2025
@rustbot
Copy link
Collaborator

rustbot commented Sep 30, 2025

r? @Alexendoo

rustbot has assigned @Alexendoo.
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

@Alexendoo Alexendoo added this pull request to the merge queue Oct 5, 2025
Merged via the queue into rust-lang:master with commit 2a9eb78 Oct 5, 2025
11 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Oct 5, 2025
@ada4a ada4a deleted the redundant_pattern_match branch October 5, 2025 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants