Skip to content

gccrs: Refactor query_type to only fully-const resolve const fns - #4881

Merged
philberty merged 1 commit into
masterfrom
phil/query-const
Sep 11, 2026
Merged

gccrs: Refactor query_type to only fully-const resolve const fns#4881
philberty merged 1 commit into
masterfrom
phil/query-const

Conversation

@philberty

Copy link
Copy Markdown
Member

When we are in a const context what can happen is we start to query all non const types during method resolution for example which means its going to query fn signitures and fully resolve their blocks for non const candidates.

gcc/rust/ChangeLog:

* typecheck/rust-type-util.cc (query_type): dont query non const candidates

When we are in a const context what can happen is we start to query all
non const types during method resolution for example which means its going
to query fn signitures and fully resolve their blocks for non const
candidates.

gcc/rust/ChangeLog:

	* typecheck/rust-type-util.cc (query_type): dont query non const candidates

Signed-off-by: Philip Herron <herron.philip@googlemail.com>
@philberty philberty added the core Issue related to the compilation of the `core` crate label Sep 10, 2026
@philberty
philberty added this pull request to the merge queue Sep 11, 2026
Merged via the queue into master with commit eaf49ee Sep 11, 2026
13 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Issue related to the compilation of the `core` crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant