rust/tests
Matthias Krüger 890982e47b
Rollup merge of #121377 - pitaj:lazy_cell_fn_pointer, r=dtolnay
Stabilize `LazyCell` and `LazyLock`

Closes #109736

This stabilizes the [`LazyLock`](https://doc.rust-lang.org/stable/std/sync/struct.LazyLock.html) and [`LazyCell`](https://doc.rust-lang.org/stable/std/cell/struct.LazyCell.html) types:

```rust
static HASHMAP: LazyLock<HashMap<i32, String>> = LazyLock::new(|| {
    println!("initializing");
    let mut m = HashMap::new();
    m.insert(13, "Spica".to_string());
    m.insert(74, "Hoyten".to_string());
    m
});

let lazy: LazyCell<i32> = LazyCell::new(|| {
    println!("initializing");
    92
});
```

r? libs-api
2024-05-25 22:15:16 +02:00
..
assembly test: Add assembly tests for x86_64-unknown-linux-none target 2024-05-12 01:25:11 +02:00
auxiliary Clean up users of rust_dbg_call 2024-04-17 15:08:08 -04:00
codegen Rollup merge of #125222 - Oneirical:fifth, r=jieyouxu 2024-05-23 07:41:18 +02:00
codegen-units Fix some minor issues from the ui-test auto-porting 2024-05-11 19:58:35 -04:00
coverage coverage: Simplify counter expressions using simple algebra 2024-05-14 13:58:40 +10:00
coverage-run-rustdoc
crashes Rollup merge of #125451 - oli-obk:const_type_mismatch, r=compiler-errors 2024-05-25 12:54:34 +02:00
debuginfo Fix tests/debuginfo/strings-and-strs. 2024-05-20 15:01:59 +10:00
incremental Update tests/incremental/foreign.rs 2024-05-20 11:13:10 -04:00
mir-opt Add assert_unsafe_precondition to unchecked_{add,sub,neg,mul,shl,shr} methods 2024-05-23 21:02:31 -04:00
pretty hir pretty: fix block indent 2024-05-20 20:30:44 +02:00
run-make Auto merge of #121571 - clarfonthey:unchecked-math-preconditions, r=saethlin 2024-05-25 18:07:32 +00:00
run-make-fulldeps
run-pass-valgrind
rustdoc Move tests into appropriate subdirectories 2024-05-21 21:21:26 -07:00
rustdoc-gui Rollup merge of #124738 - notriddle:notriddle/search-form-js, r=GuillaumeGomez 2024-05-07 18:12:54 +02:00
rustdoc-js rustdoc-search: add parser for & syntax 2024-04-19 14:31:21 -07:00
rustdoc-js-std rustdoc-search: add parser for & syntax 2024-04-19 14:31:21 -07:00
rustdoc-json rustdoc-json: Add test for keywords with --document-private-items 2024-05-24 16:40:20 +00:00
rustdoc-ui Move tests into appropriate subdirectories 2024-05-21 21:21:26 -07:00
ui Rollup merge of #125527 - programmerjake:patch-2, r=workingjubilee 2024-05-25 12:54:38 +02:00
ui-fulldeps Add conversion from IntrinsicDef to FnDef 2024-05-23 15:35:18 +00:00
COMPILER_TESTS.md