granite-rust/tests
bors 3984bc5833 Auto merge of #106294 - Nilstrieb:noundef-everything, r=nikic
Put `noundef` on all scalars that don't allow uninit

Previously, it was only put on scalars with range validity invariants like bool, was uninit was obviously invalid for those.

Since then, we have normatively declared all uninit primitives to be undefined behavior and can therefore put `noundef` on them.

The remaining concern was the `mem::uninitialized` function, which cause quite a lot of UB in the older parts of the ecosystem. After #99182, this function now doesn't return uninit values anymore, making users of it safe from this change.

The only real sources of UB where people could encounter uninit primitives are `MaybeUninit::uninit().assume_init()`, which has always be clear in the docs about being UB and from heap allocations (like reading from the spare capacity of a vec). This is hopefully rare enough to not break anything.

cc `@nagisa` `@scottmcm` `@nikic`
2023-01-17 17:39:48 +00:00
..
assembly Change src/test to tests in source files, fix tidy and tests 2023-01-11 09:32:13 +00:00
auxiliary Move /src/test to /tests 2023-01-11 09:32:08 +00:00
codegen Add more codegen tests 2023-01-17 16:23:22 +01:00
codegen-units Move /src/test to /tests 2023-01-11 09:32:08 +00:00
debuginfo Move /src/test to /tests 2023-01-11 09:32:08 +00:00
incremental Move /src/test to /tests 2023-01-11 09:32:08 +00:00
mir-opt Auto merge of #106850 - cjgillot:issue-106141, r=oli-obk 2023-01-16 12:30:49 +00:00
pretty Change src/test to tests in source files, fix tidy and tests 2023-01-11 09:32:13 +00:00
run-make Change src/test to tests in source files, fix tidy and tests 2023-01-11 09:32:13 +00:00
run-make-fulldeps Auto merge of #106092 - asquared31415:start_lang_item_checks, r=davidtwco 2023-01-13 07:45:34 +00:00
run-pass-valgrind Move /src/test to /tests 2023-01-11 09:32:08 +00:00
rustdoc Rollup merge of #106869 - notriddle:notriddle/item-decl-pre-rust, r=GuillaumeGomez 2023-01-17 05:25:22 +01:00
rustdoc-gui Rollup merge of #106869 - notriddle:notriddle/item-decl-pre-rust, r=GuillaumeGomez 2023-01-17 05:25:22 +01:00
rustdoc-js Move /src/test to /tests 2023-01-11 09:32:08 +00:00
rustdoc-js-std Move /src/test to /tests 2023-01-11 09:32:08 +00:00
rustdoc-json Move /src/test to /tests 2023-01-11 09:32:08 +00:00
rustdoc-ui Rollup merge of #106566 - clubby789:contiguous-weird-unicode, r=cjgillot 2023-01-14 13:04:24 +01:00
ui Rollup merge of #106962 - compiler-errors:use-sugg-span, r=oli-obk 2023-01-17 20:33:05 +05:30
ui-fulldeps Auto merge of #106004 - fee1-dead-contrib:const-closures, r=oli-obk 2023-01-13 05:04:48 +00:00
COMPILER_TESTS.md Move /src/test to /tests 2023-01-11 09:32:08 +00:00