about summary refs log tree commit diff
path: root/tests/ui/abi/statics
AgeCommit message (Collapse)AuthorLines
2024-09-13Update tests for hidden references to mutable staticObei Sideg-33/+3
2024-07-18Use more accurate span for `addr_of!` suggestionEsteban Küber-2/+2
Use a multipart suggestion instead of a single whole-span replacement: ``` error[E0796]: creating a shared reference to a mutable static --> $DIR/reference-to-mut-static-unsafe-fn.rs:10:18 | LL | let _y = &X; | ^^ shared reference to mutable static | = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior help: use `addr_of!` instead to create a raw pointer | LL | let _y = addr_of!(X); | ~~~~~~~~~ + ```
2024-04-15Use the rustc_private libc less in testsBen Kimock-8/+6
2024-03-11Update test directives for `wasm32-wasip1`Alex Crichton-4/+2
* 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-02-18Improve wording of static_mut_refObei Sideg-13/+13
Rename `static_mut_ref` lint to `static_mut_refs`.
2024-02-16[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives许杰友 Jieyou Xu (Joe)-2/+2
2024-01-07Update test for `E0796` and `static_mut_ref` lintObei Sideg-0/+33
2023-01-11Move /src/test to /testsAlbert Larsan-0/+41