Skip to content

Conversation

@tiif
Copy link
Member

@tiif tiif commented Nov 8, 2025

Fixes rust-lang/trait-system-refactor-initiative#249

In this PR, the environment is dropped when evaluating const that does not have any generic parameter to fix the query cycle.

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. WG-trait-system-refactor The Rustc Trait System Refactor Initiative (-Znext-solver) labels Nov 8, 2025
@tiif
Copy link
Member Author

tiif commented Nov 8, 2025

I didn't do this for the GCE and RepeatExprCount path above for now because I don't think they will have the same query cycle problem? 🤔 If that should be done, feel free to let me know, and it'd be nice to have test for those paths too.

@tiif
Copy link
Member Author

tiif commented Nov 8, 2025

r? @BoxyUwU

@rustbot
Copy link
Collaborator

rustbot commented Nov 8, 2025

BoxyUwU is currently at their maximum review capacity.
They may take a while to respond.

@tiif tiif marked this pull request as ready for review November 8, 2025 16:31
@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Nov 8, 2025
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. WG-trait-system-refactor The Rustc Trait System Refactor Initiative (-Znext-solver)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

unevaluated consts in param_env query cycle

3 participants