summary refs log tree commit diff
path: root/tests/ui/structs-enums
AgeCommit message (Collapse)AuthorLines
2024-03-11Update test directives for `wasm32-wasip1`Alex Crichton-1/+8
* The WASI targets deal with the `main` symbol a bit differently than native so some `codegen` and `assembly` tests have been ignored. * All `ignore-emscripten` directives have been updated to `ignore-wasm32` to be more clear that all wasm targets are ignored and it's not just Emscripten. * Most `ignore-wasm32-bare` directives are now gone. * Some ignore directives for wasm were switched to `needs-unwind` instead. * Many `ignore-wasm32*` directives are removed as the tests work with WASI as opposed to `wasm32-unknown-unknown`.
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-25Use generic `NonZero` in tests.Markus Reiter-15/+17
2024-02-16[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives许杰友 Jieyou Xu (Joe)-187/+187
2024-02-08Continue to borrowck even if there were previous errorsOli Scherer-3/+17
2024-02-07Update testsr0cky-1/+13
2024-01-02Adjust compiler tests for unused_tuple_struct_fields -> dead_codeJake Goulding-7/+7
2023-12-15Stabilize `ptr::{from_ref, from_mut}`Maybe Waffle-1/+0
2023-12-10remove redundant importssurechen-4/+0
detects redundant imports that can be eliminated. for #117772 : In order to facilitate review and modification, split the checking code and removing redundant imports code into two PR.
2023-11-24Show number in error message even for one errorNilstrieb-15/+15
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-09-25Gate and validate #[rustc_safe_intrinsic]León Orell Valerian Liehr-2/+2
2023-09-21added support for GNU/HurdSamuel Thibault-0/+1
2023-08-24Move issue 29181, 2804, 17431, 66768Olanti-0/+159
2023-05-29Address commentCaio-0/+73
2023-05-08suggest struct when we get colon in fileds in enumyukang-0/+43
2023-04-28layout-alignment-promotion logic should depend on the niche-biasThe 8472-0/+19
For start-biased layout we want to avoid overpromoting so that the niche doesn't get pushed back. For end-biased layout we want to avoid promoting fields that may contain one of the niches of interest.
2023-04-27don't promote large fields to higher alignments if that would affect niche ↵The 8472-0/+18
placement
2023-04-27try two different niche-placement strategies when layouting univariant structsThe 8472-1/+29
2023-03-03Add unuseless `#[allow(unused_allocation)]`Maybe Waffle-15/+11
2023-02-28Add QNX Neutrino support to libstdFlorian Bartels-1/+3
Co-authored-by: gh-tr <troach@qnx.com>
2023-02-02Recover _ as .. in field patternMichael Goulet-19/+7
2023-01-11Move /src/test to /testsAlbert Larsan-0/+5393