about summary refs log tree commit diff
path: root/compiler/rustc_macros/src/diagnostics/utils.rs
diff options
context:
space:
mode:
authorJakub Beránek <berykubik@gmail.com>2025-08-14 21:48:46 +0200
committerGitHub <noreply@github.com>2025-08-14 21:48:46 +0200
commit93e895bc6436a2a32bb17ed49ea68ffb4aa34e72 (patch)
tree798ec23ee21f3370a61c7e427bfb47ec7d9a85e3 /compiler/rustc_macros/src/diagnostics/utils.rs
parent1eda78fa15da9d3e495fcaa4025bb6467134af3e (diff)
parenteba1596ab1bc4c75ad69083014560f12f40aad2f (diff)
downloadrust-93e895bc6436a2a32bb17ed49ea68ffb4aa34e72.tar.gz
rust-93e895bc6436a2a32bb17ed49ea68ffb4aa34e72.zip
Rollup merge of #145398 - estebank:use-default-fields-resolver, r=petrochenkov
Use `default_field_values` in `Resolver`

Change `Resolver` to use `feature(default_field_values)`. This change is non-exhaustive, as fields may have been added since I made this commit, and `Fx(Index/Hash)(Map/Set)` types would need to have a `const` constructable to change the majority of the fields left over.

Using default field values should make it easier to review when we add or remove fields to `Resolver` in the future, and highlight which fields are run-time dependent in `Resolver::new`.

r? ``@petrochenkov``
Diffstat (limited to 'compiler/rustc_macros/src/diagnostics/utils.rs')
0 files changed, 0 insertions, 0 deletions