rust/compiler/rustc_const_eval/src
bors 4ba4ac612d Auto merge of #134443 - joshtriplett:use-field-init-shorthand, r=lqd,tgross35,nnethercote
Use field init shorthand where possible

Field init shorthand allows writing initializers like `tcx: tcx` as
`tcx`. The compiler already uses it extensively. Fix the last few places
where it isn't yet used.

EDIT: this PR also updates `rustfmt.toml` to set
`use_field_init_shorthand = true`.
2024-12-18 19:16:15 +00:00
..
check_consts Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
const_eval Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
interpret Auto merge of #134443 - joshtriplett:use-field-init-shorthand, r=lqd,tgross35,nnethercote 2024-12-18 19:16:15 +00:00
util Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
errors.rs Deduplicate checking drop terminator 2024-11-22 16:54:41 +00:00
lib.rs report UB when the niche value refers to the untagged variant 2024-11-30 18:26:30 +01:00