diff options
| author | bors <bors@rust-lang.org> | 2024-12-18 19:16:15 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-12-18 19:16:15 +0000 |
| commit | 4ba4ac612d36e3409e8e1e31e12acc028808f85f (patch) | |
| tree | 4984f3ca5507abb2a5ccd2aad7346390edff999f /compiler/rustc_codegen_llvm/src/lib.rs | |
| parent | a52085d9f6a6e596b0cbad4502cddf86bc878028 (diff) | |
| parent | a105cd606628b07e79ab343cc183a176e278c809 (diff) | |
| download | rust-4ba4ac612d36e3409e8e1e31e12acc028808f85f.tar.gz rust-4ba4ac612d36e3409e8e1e31e12acc028808f85f.zip | |
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`.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/lib.rs')
0 files changed, 0 insertions, 0 deletions
