Skip to content

Fix incorrect eq_unspanned in TokenStream #141570

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 4, 2025

Conversation

chenyukang
Copy link
Member

@chenyukang chenyukang commented May 26, 2025

Fixes #141522

r? @workingjubilee

should we remove this function?
since it's used in several places, i'd prefer to keep it.

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels May 26, 2025
@workingjubilee
Copy link
Member

is it actually important to those places?

@rustbot
Copy link
Collaborator

rustbot commented May 26, 2025

Some changes occurred in src/tools/clippy

cc @rust-lang/clippy

@chenyukang
Copy link
Member Author

chenyukang commented May 26, 2025

is it actually important to those places?

it's also trivial, removed it in new commit 09ecc7e.

@chenyukang chenyukang force-pushed the yukang-fix-eq_unspanned branch 3 times, most recently from f0cb226 to a6e3735 Compare May 26, 2025 06:24
@chenyukang chenyukang force-pushed the yukang-fix-eq_unspanned branch from a6e3735 to d3347bb Compare May 26, 2025 09:03
@mejrs
Copy link
Contributor

mejrs commented May 26, 2025

@chenyukang
Copy link
Member Author

You can use https://doc.rust-lang.org/nightly/std/iter/trait.Iterator.html#method.eq_by instead

feature iter_order_by is still unstable, prefer to use stable methods?

@workingjubilee
Copy link
Member

Thanks!

If we want to use the nightly stdlib feature that seeems fine, but this also seems better, so!

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Jun 3, 2025

📌 Commit d3347bb has been approved by workingjubilee

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 Jun 3, 2025
chenyukang added a commit to chenyukang/rust that referenced this pull request Jun 4, 2025
…, r=workingjubilee

Fix incorrect eq_unspanned in TokenStream

Fixes rust-lang#141522

r? `@workingjubilee`

should we remove this function?
since it's used in several places, i'd prefer to keep it.
bors added a commit that referenced this pull request Jun 4, 2025
Rollup of 6 pull requests

Successful merges:

 - #141250 (add s390x z17 target features)
 - #141570 (Fix incorrect eq_unspanned in TokenStream)
 - #141893 (remove `f16: From<u16>`)
 - #141924 (Lightly tweak docs for BTree{Map,Set}::extract_if)
 - #141959 (Add more missing 2015 edition directives)
 - #141960 (Use non-2015 edition paths in tests that do not test for their resolution)

r? `@ghost`
`@rustbot` modify labels: rollup
@workingjubilee
Copy link
Member

@bors r-
@bors2 try

@bors bors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Jun 4, 2025
@rust-bors
Copy link

rust-bors bot commented Jun 4, 2025

⌛ Trying commit d3347bb with merge 9619d78

To cancel the try build, run the command @bors2 try cancel.

rust-bors bot added a commit that referenced this pull request Jun 4, 2025
Fix incorrect eq_unspanned in TokenStream

Fixes #141522

r? `@workingjubilee`

should we remove this function?
since it's used in several places, i'd prefer to keep it.

try-job: i686-msvc-1
@workingjubilee
Copy link
Member

Checking to see if we somehow caused #141995 (comment)

@workingjubilee
Copy link
Member

I guess it's okay!

@bors r+

@bors
Copy link
Collaborator

bors commented Jun 4, 2025

📌 Commit d3347bb has been approved by workingjubilee

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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Jun 4, 2025
@rust-bors
Copy link

rust-bors bot commented Jun 4, 2025

☀️ Try build successful (CI)
Build commit: 9619d78 (9619d78af63f66edd90d07af18f5650642db5c94)

matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Jun 4, 2025
…, r=workingjubilee

Fix incorrect eq_unspanned in TokenStream

Fixes rust-lang#141522

r? `@workingjubilee`

should we remove this function?
since it's used in several places, i'd prefer to keep it.
bors added a commit that referenced this pull request Jun 4, 2025
Rollup of 9 pull requests

Successful merges:

 - #141271 (Streamline some attr parsing APIs)
 - #141570 (Fix incorrect eq_unspanned in TokenStream)
 - #141857 (coretests: move float tests from num to floats module and use a more flexible macro to generate them)
 - #141893 (remove `f16: From<u16>`)
 - #141924 (Lightly tweak docs for BTree{Map,Set}::extract_if)
 - #141939 (exact_div: add tests)
 - #141959 (Add more missing 2015 edition directives)
 - #142002 (redesign stage 0 std follow-ups part2)
 - #142007 (Improve some `Visitor` comments.)

r? `@ghost`
`@rustbot` modify labels: rollup
bors added a commit that referenced this pull request Jun 4, 2025
Rollup of 7 pull requests

Successful merges:

 - #141271 (Streamline some attr parsing APIs)
 - #141570 (Fix incorrect eq_unspanned in TokenStream)
 - #141893 (remove `f16: From<u16>`)
 - #141924 (Lightly tweak docs for BTree{Map,Set}::extract_if)
 - #141939 (exact_div: add tests)
 - #141959 (Add more missing 2015 edition directives)
 - #142007 (Improve some `Visitor` comments.)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 0736a03 into rust-lang:master Jun 4, 2025
7 checks passed
@rustbot rustbot added this to the 1.89.0 milestone Jun 4, 2025
rust-timer added a commit that referenced this pull request Jun 4, 2025
Rollup merge of #141570 - chenyukang:yukang-fix-eq_unspanned, r=workingjubilee

Fix incorrect eq_unspanned in TokenStream

Fixes #141522

r? ``@workingjubilee``

should we remove this function?
since it's used in several places, i'd prefer to keep it.
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-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

eq_unspanned is incorrect
7 participants