about summary refs log tree commit diff
path: root/tests/ui/thread-local
AgeCommit message (Collapse)AuthorLines
2025-09-27Hoist non-platform-specific code out of `thread_local_inner!`Jules Bertholet-3/+3
2025-09-26Support `#[rustc_align_static]` inside `thread_local!`Jules Bertholet-0/+340
2025-08-10Rehome tests/ui/issues/ tests [4/?]Oneirical-0/+8
2025-03-27Mark test as only-unix.Mara Bos-0/+1
2025-03-27Add needs-threads to test.Mara Bos-0/+1
2025-03-19Add test.Mara Bos-0/+22
2024-12-25stabilize const_swapRalf Jung-3/+2
2024-09-20Auto merge of #124895 - obeis:static-mut-hidden-ref, r=compiler-errorsbors-0/+3
Disallow hidden references to mutable static Closes #123060 Tracking: - https://github.com/rust-lang/rust/issues/123758
2024-09-15stabilize const_mut_refsRalf Jung-26/+4
2024-09-13Update tests for hidden references to mutable staticObei Sideg-0/+3
2024-03-06compiletest: Add a `//@ needs-threads` directiveAlex Crichton-1/+1
This commit is extracted from #122036 and adds a new directive to the `compiletest` test runner, `//@ needs-threads`. This is intended to capture the need that a target must implement threading to execute a specific test, typically one that uses `std::thread`. This is primarily done for WebAssembly targets which currently do not have threads by default. This enables transitioning a lot of `//@ ignore-wasm*`-style ignores into a more self-documenting `//@ needs-threads` directive. Additionally the `wasm32-wasi-preview1-threads` target, for example, does actually have threads, but isn't tested in CI at this time. This change enables running these tests for that target, but not other wasm targets.
2024-02-18Improve wording of static_mut_refObei Sideg-1/+1
Rename `static_mut_ref` lint to `static_mut_refs`.
2024-02-16[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives许杰友 Jieyou Xu (Joe)-16/+16
2024-02-12allow static_mut_ref in some tests that specifically test mutable staticsRalf Jung-81/+7
2024-02-11check_consts: fix some duplicate errors by not calling check_static ↵Ralf Jung-14/+1
unnecessarily
2024-02-10rebless after rebaseRalf Jung-0/+1
2024-02-10unstably allow constants to refer to statics and read from immutable staticsRalf Jung-5/+8
2024-01-13Bless testsGeorge-lewis-0/+2
Update tests
2024-01-07Update test for `E0796` and `static_mut_ref` lintObei Sideg-2/+77
2024-01-05Stabilize THIR unsafeckMatthew Jasper-8/+8
2024-01-05Remove revisions for THIR unsafeckMatthew Jasper-51/+5
This is to make the diff when stabilizing it easier to review.
2023-11-24Show number in error message even for one errorNilstrieb-1/+1
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-11-06Recognise thread local statics in THIR unsafeckMatthew Jasper-5/+52
2023-04-26add known-bug test for unsound issue 49682whtahy-0/+46
2023-04-02Move some UI tests into subdirectoriesjyn-0/+87
to avoid going over the existing limit now that the ui-fulldeps tests have been moved to ui.
2023-03-29Use #[cfg(target_thread_local)] on itemsJohn Kåre Alsaker-2/+4
2023-03-29Test that TLS access works outside of the dylib it's defined inJohn Kåre Alsaker-0/+49
2023-02-28Add QNX Neutrino support to libstdFlorian Bartels-0/+1
Co-authored-by: gh-tr <troach@qnx.com>
2023-01-11Move /src/test to /testsAlbert Larsan-0/+133