Skip to content

Fix query cycle when encounter unevaluated const#148698

Merged
bors merged 2 commits intorust-lang:mainfrom
tiif:const_query_cycle
Nov 17, 2025
Merged

Fix query cycle when encounter unevaluated const#148698
bors merged 2 commits intorust-lang:mainfrom
tiif:const_query_cycle

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.

Loading
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. 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

5 participants