rust/tests
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
..
assembly tests/assembly/asm: Remove uses of rustc_attrs and lang_items features by using minicore 2024-12-18 02:59:07 +09:00
auxiliary tests/assembly/asm: Remove uses of rustc_attrs and lang_items features by using minicore 2024-12-18 02:59:07 +09:00
codegen Use field init shorthand where possible 2024-12-17 14:33:10 -08:00
codegen-units Use field init shorthand where possible 2024-12-17 14:33:10 -08:00
coverage Rollup merge of #134323 - Zalathar:dismantle-map-data, r=jieyouxu 2024-12-17 22:34:42 +01:00
coverage-run-rustdoc coverage: Restrict empty-span expansion to only cover { and } 2024-11-08 20:43:08 +11:00
crashes crashes: more tests 2024-12-15 17:27:52 +01:00
debuginfo Reformat Python code with ruff 2024-12-04 23:03:44 +01:00
incremental Add more info on type/trait mismatches for different crate versions 2024-12-07 18:18:08 +00:00
mir-opt mir-opt: Do not handle the cleanup BB in the EarlyOtherwiseBranch 2024-12-18 20:43:55 +08:00
pretty Update tests to use new proc-macro header 2024-11-27 07:18:25 -08:00
run-make Use field init shorthand where possible 2024-12-17 14:33:10 -08:00
rustdoc Remove rustc::existing_doc_keyword lint. 2024-12-17 13:56:10 +11:00
rustdoc-gui Remove rustc::existing_doc_keyword lint. 2024-12-17 13:56:10 +11:00
rustdoc-js Rollup merge of #134277 - notriddle:notriddle/inline-into, r=GuillaumeGomez 2024-12-16 20:00:20 +01:00
rustdoc-js-std rustdoc-search: update test with now-shorter function path 2024-12-13 09:08:44 -07:00
rustdoc-json Remove rustc::existing_doc_keyword lint. 2024-12-17 13:56:10 +11:00
rustdoc-ui Rollup merge of #134202 - nnethercote:rm-existing_doc_keyword, r=GuillaumeGomez 2024-12-17 05:36:52 -05:00
ui Rollup merge of #134394 - dianne:clarify-pat-2024-migration, r=compiler-errors 2024-12-18 22:56:54 +08:00
ui-fulldeps Fix tests 2024-12-14 14:53:59 +00:00
COMPILER_TESTS.md