rust/tests
Jubilee 9ccc7b78ec
Rollup merge of #123168 - joshtriplett:size-of-prelude, r=Amanieu
Add `size_of` and `size_of_val` and `align_of` and `align_of_val` to the prelude

(Note: need to update the PR to add `align_of` and `align_of_val`, and remove the second commit with the myriad changes to appease the lint.)

Many, many projects use `size_of` to get the size of a type. However,
it's also often equally easy to hardcode a size (e.g. `8` instead of
`size_of::<u64>()`). Minimizing friction in the use of `size_of` helps
ensure that people use it and make code more self-documenting.

The name `size_of` is unambiguous: the name alone, without any prefix or
path, is self-explanatory and unmistakeable for any other functionality.
Adding it to the prelude cannot produce any name conflicts, as any local
definition will silently shadow the one from the prelude. Thus, we don't
need to wait for a new edition prelude to add it.
2024-06-05 01:14:29 -07:00
..
assembly Run rustfmt on tests/assembly/. 2024-05-30 16:15:46 +10:00
auxiliary Clean up users of rust_dbg_call 2024-04-17 15:08:08 -04:00
codegen Test codegen for repr(packed,simd) -> repr(simd) 2024-06-02 20:15:15 -07:00
codegen-units Run rustfmt on tests/codegen-units/. 2024-05-31 15:56:45 +10:00
coverage coverage: Instrument the RHS value of lazy logical operators 2024-05-30 15:38:46 +10:00
coverage-run-rustdoc
crashes Rollup merge of #125865 - ajwock:ice_not_fully_resolved, r=fee1-dead 2024-06-04 08:52:13 -04:00
debuginfo Increase vtable layout size 2024-06-01 07:42:05 -04:00
incremental Update tests/incremental/foreign.rs 2024-05-20 11:13:10 -04:00
mir-opt rustfmt tests/mir-opt. 2024-06-03 14:17:16 +10:00
pretty Create const block DefIds in typeck instead of ast lowering 2024-05-28 13:38:43 +00:00
run-make Auto merge of #125989 - GuillaumeGomez:rollup-xu69i13, r=GuillaumeGomez 2024-06-04 21:21:18 +00:00
run-make-fulldeps Remove tests/run-make-fulldeps/pretty-expanded 2024-06-05 00:51:09 +10:00
run-pass-valgrind rustfmt tests/run-pass-valgrind/. 2024-06-04 09:53:02 +10:00
rustdoc Update code format and tests 2024-06-04 13:49:39 +02:00
rustdoc-gui Rollup merge of #124738 - notriddle:notriddle/search-form-js, r=GuillaumeGomez 2024-05-07 18:12:54 +02:00
rustdoc-js rustfmt tests/rustdoc-js/. 2024-06-04 14:15:06 +10:00
rustdoc-js-std rustdoc-search: add parser for & syntax 2024-04-19 14:31:21 -07:00
rustdoc-json rustfmt tests/rustdoc-json/. 2024-06-04 14:15:19 +10:00
rustdoc-ui Rollup merge of #125667 - oli-obk:taintify, r=TaKO8Ki 2024-06-04 08:52:12 -04:00
ui Rollup merge of #123168 - joshtriplett:size-of-prelude, r=Amanieu 2024-06-05 01:14:29 -07:00
ui-fulldeps Split smir Const into TyConst and MirConst 2024-06-04 10:14:45 +01:00
COMPILER_TESTS.md