rust/src/test
Matthias Krüger c4b83ebe7c
Rollup merge of #100507 - cameron1024:suggest-lazy, r=compiler-errors
suggest `once_cell::Lazy` for non-const statics

Addresses https://github.com/rust-lang/rust/issues/100410

Some questions:
 - removing the `if` seems to include too many cases (e.g. calls to non-const functions inside a `const fn`), but this code excludes the following case:
```rust
const FOO: Foo = non_const_fn();
```
Should we suggest `once_cell` in this case as well?
 - The original issue mentions suggesting `AtomicI32` instead of `Mutex<i32>`, should this PR address that as well?
2022-08-20 07:08:59 +02:00
..
assembly Update the minimum external LLVM to 13 2022-08-14 13:46:51 -07:00
auxiliary
codegen Rollup merge of #100460 - cuviper:drop-llvm-12, r=nagisa 2022-08-16 06:05:57 +02:00
codegen-units Warn about dead tuple struct fields 2022-08-03 12:17:23 +02:00
debuginfo [debuginfo] Fix msvc-pretty-enums debuginfo test for i686. 2022-08-15 10:50:09 +02:00
incremental Remove deferred sized checks 2022-08-16 22:30:56 +00:00
mir-opt Rollup merge of #100598 - ouz-a:91633, r=compiler-errors 2022-08-19 12:26:45 +05:30
pretty Add pp-exact test involving where T: 2022-06-16 17:03:47 -07:00
run-make Auto merge of #98655 - nnethercote:dont-derive-PartialEq-ne, r=dtolnay 2022-08-18 10:11:11 +00:00
run-make-fulldeps Rollup merge of #99573 - tbodt:stabilize-backtrace, r=yaahc 2022-08-10 07:21:33 +02:00
run-pass-valgrind Remove even more box syntax uses from src/test 2022-08-07 04:22:20 +02:00
rustdoc rustdoc: count deref and non-deref as same set of used methods 2022-08-18 15:31:14 -07:00
rustdoc-gui Update existing rustdoc-gui tests and add a new one 2022-08-18 16:14:46 +02:00
rustdoc-js rustdoc: also index raw pointers 2022-05-31 11:21:55 -07:00
rustdoc-js-std Rollup merge of #96887 - notriddle:notriddle/as-raw-fd, r=jsha 2022-05-11 13:16:31 +09:00
rustdoc-json Rollup merge of #99474 - aDotInTheVoid:rustdoc-json-noinline-test-cleanup, r=CraftSpider 2022-08-17 12:32:47 +02:00
rustdoc-ui Rollup merge of #100229 - RalfJung:extra-const-ub-checks, r=lcnr 2022-08-12 20:39:11 +05:30
ui Rollup merge of #100507 - cameron1024:suggest-lazy, r=compiler-errors 2022-08-20 07:08:59 +02:00
ui-fulldeps Change fluent_messages macro to expect _ slugs instead of - slugs 2022-08-12 22:26:08 +02:00
COMPILER_TESTS.md