Skip to content

implementation of -Z min-recursion-limit#153188

Open
Kivooeo wants to merge 1 commit intorust-lang:mainfrom
Kivooeo:min-rec-limit
Open

implementation of -Z min-recursion-limit#153188
Kivooeo wants to merge 1 commit intorust-lang:mainfrom
Kivooeo:min-rec-limit

Conversation

@Kivooeo
Copy link
Member

@Kivooeo Kivooeo commented Feb 27, 2026

impl of rust-lang/compiler-team#969

r? lcnr

@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 Feb 27, 2026
@rust-cloud-vms rust-cloud-vms bot force-pushed the min-rec-limit branch 2 times, most recently from 9b49e75 to cc20487 Compare February 27, 2026 15:50
@rust-log-analyzer

This comment has been minimized.

Comment on lines 38 to 39
.max(find_attr!(attrs, RecursionLimit { limit, .. } => limit.0))
.unwrap_or(128),
Copy link
Contributor

Choose a reason for hiding this comment

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

It's weird that providing min_recursion_limit can actually lower the used recursion limit. I would go with .max(Some(find_attr!(attrs, RecursionLimit { limit, .. } => limit.0).unwrap_or(128)) 🤔

Copy link
Member Author

Choose a reason for hiding this comment

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

agree, also added a test for this

@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@Kivooeo
Copy link
Member Author

Kivooeo commented Feb 27, 2026

@rustbot ready

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

Labels

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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants