Skip to content

Conversation

samueltardieu
Copy link
Member

@samueltardieu samueltardieu commented Apr 17, 2025

Limit the recursion depth, as each level of nesting adds another deeper projection.

There might be a more complex way of handling the problem, but infinite recursions are bad, and don't allow Clippy to terminate properly.

changelog: [significant_drop_tightening]: do not recurse forever when checking for attribute on type or its constituent

Fixes #13544

@rustbot label +L-nursery

@rustbot
Copy link
Collaborator

rustbot commented Apr 17, 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

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties L-nursery Lint: Currently in the nursery group labels Apr 17, 2025
Limit the recursion depth, as each level of nesting adds another deeper
projection.
@samueltardieu samueltardieu force-pushed the significant-drop-tightening-recursion-limit branch from dd26f17 to cc6a3d8 Compare April 17, 2025 10:58
@samueltardieu
Copy link
Member Author

Assigning to Timo who diagnosed the problem in the original issue

r? @y21

@rustbot rustbot assigned y21 and unassigned Alexendoo Apr 17, 2025
@y21
Copy link
Member

y21 commented Apr 17, 2025

Ah, I just replied to the issue with how we could probably fix this and then saw this PR and does it exactly that way, nice ^^

Copy link
Member

@y21 y21 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@y21 y21 added this pull request to the merge queue Apr 17, 2025
Merged via the queue into rust-lang:master with commit 30e9cd5 Apr 17, 2025
11 checks passed
@samueltardieu samueltardieu deleted the significant-drop-tightening-recursion-limit branch April 17, 2025 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
L-nursery Lint: Currently in the nursery group 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.

Eternal lint on a recursive tree
4 participants