0

Fix new_return_no_self with recursive bounds by nbdd0121 · Pull Request #10086 ·...

 1 year ago
source link: https://github.com/rust-lang/rust-clippy/pull/10086
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Fix new_return_no_self with recursive bounds #10086

Merged

Conversation

Contributor

@nbdd0121 nbdd0121 commented Dec 15, 2022

Fix #10041

This uses a hash set, as described in #10068 (comment)

changelog: [new_return_no_self]: fix stack overflow when the return type is impl Trait and contains recursive bounds

Collaborator

rustbot commented Dec 15, 2022

r? @llogiq

(rustbot has picked a reviewer for you, use r? to override)

rustbot

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

Dec 15, 2022

Member

@matthiaskrgr matthiaskrgr left a comment

Great, thanks!
I ran patched / unpatched clippy through lintcheck in order to see if there were any other side effects in lint output but couldn't find anything (hoping I didn't use it wrongly somehow, it has been a while... ^^' )

flip1995 reacted with heart emoji

Member

matthiaskrgr commented Dec 16, 2022

@bors r+

dswij reacted with heart emoji

Contributor

bors commented Dec 16, 2022

pushpin Commit 7574c98 has been approved by matthiaskrgr

It is now in the queue for this repository.

Contributor

bors commented Dec 16, 2022

hourglass Testing commit 7574c98 with merge 02f3959...

bors

merged commit 02f3959 into

rust-lang:master

Dec 16, 2022

5 checks passed

dswij

added the beta-nominated Nominated for backporting to the compiler in the beta channel. label

Dec 16, 2022

Member

dswij commented Dec 16, 2022

@flip1995 IIRC, we agreed this should be backported in Zulip. I've added the label, but let me know if this is not the case.

flip1995 reacted with thumbs up emoji

Member

flip1995 commented Dec 16, 2022

edited

Thanks for taking care of this! I'll will do the backport in the next few days.

Good thing, I didn't have time to do the sync yesterday, so that gets in earlier sweat_smile

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

Labels
beta-nominated Nominated for backporting to the compiler in the beta channel. S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Clippy crashes on simple method returning impl PartialOrd

7 participants

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK