Skip to content

Conversation

@estebank
Copy link
Contributor

Extend more ways of building FxHashSet, FxHashMap, UnordSet, UnordMap and DisambiguatorState in const contexts to allow for more fields in Resolver to have a default value. FxIndexSet/FxIndexMap are still outstanding and not const-buildable.

r? @petrochenkov

@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 Jan 16, 2026
@petrochenkov
Copy link
Contributor

Nice.
@bors r+

@rust-bors
Copy link
Contributor

rust-bors bot commented Jan 16, 2026

📌 Commit 2b139b7 has been approved by petrochenkov

It is now in the queue for this repository.

@rust-bors rust-bors bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jan 16, 2026
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Jan 16, 2026
Use `default_field_values` more in `Resolver`

Extend more ways of building `FxHashSet`, `FxHashMap`, `UnordSet`, `UnordMap` and `DisambiguatorState` in `const` contexts to allow for more fields in `Resolver` to have a default value. `FxIndexSet`/`FxIndexMap` are still outstanding and not const-buildable.

r? @petrochenkov
rust-bors bot pushed a commit that referenced this pull request Jan 16, 2026
Rollup of 6 pull requests

Successful merges:

 - #145354 (Cache derive proc macro expansion with incremental query)
 - #151123 (Support primitives in type info reflection)
 - #151178 (simplify words initialization using Rc::new_zeroed)
 - #151187 (Use `default_field_values` more in `Resolver`)
 - #151197 (remove lcnr from compiler review rotation)
 - #151203 (Revert `QueryStackFrame` split)

r? @ghost
@rust-bors rust-bors bot merged commit 771fa1c into rust-lang:main Jan 16, 2026
11 checks passed
@rustbot rustbot added this to the 1.94.0 milestone Jan 16, 2026
rust-timer added a commit that referenced this pull request Jan 16, 2026
Rollup merge of #151187 - const-resolver, r=petrochenkov

Use `default_field_values` more in `Resolver`

Extend more ways of building `FxHashSet`, `FxHashMap`, `UnordSet`, `UnordMap` and `DisambiguatorState` in `const` contexts to allow for more fields in `Resolver` to have a default value. `FxIndexSet`/`FxIndexMap` are still outstanding and not const-buildable.

r? @petrochenkov
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants