Skip to content

Conversation

ada4a
Copy link
Contributor

@ada4a ada4a commented Aug 24, 2025

changelog: none

ada4a added 2 commits August 24, 2025 12:45
Their default branches are even the same, which means that one of the
`map_or`s could've been replaced with an `and_then`, but since we have
access to let-chains, why not use that

Additionally:
- use `with_source_text` to avoid constructing a `SourceText` object
- use `BytePos::from_usize` to avoid `allow`ing the lint
Avoids needless bounds checks (which almost definitely get optimized
away, but still). And saves some characters
@ada4a ada4a marked this pull request as ready for review August 24, 2025 10:51
@rustbot
Copy link
Collaborator

rustbot commented Aug 24, 2025

r? @blyxyas

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

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Aug 24, 2025
@ada4a
Copy link
Contributor Author

ada4a commented Aug 24, 2025

oops, forgot to

r? @samueltardieu

@rustbot rustbot assigned samueltardieu and unassigned blyxyas Aug 24, 2025
@samueltardieu
Copy link
Member

I extracted the message from the top-level comment since it will be present in the merge commit description. It was:

Extracted out of #15549 as requested in #15549 (review)

@samueltardieu samueltardieu added this pull request to the merge queue Aug 24, 2025
Merged via the queue into rust-lang:master with commit b6343a5 Aug 24, 2025
13 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Aug 24, 2025
@ada4a ada4a deleted the unused_unit-clean-up branch August 24, 2025 13:02
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.

4 participants