rust/tests
bors 4e5b31c2b0 Auto merge of #115166 - Urgau:invalid_ref_casting-invalid-unsafecell-usage, r=est31
Lint on invalid usage of `UnsafeCell::raw_get` in reference casting

This PR proposes to take into account `UnsafeCell::raw_get` method call for non-Freeze types for the `invalid_reference_casting` lint.

The goal of this is to catch those kind of invalid reference casting:
```rust
fn as_mut<T>(x: &T) -> &mut T {
    unsafe { &mut *std::cell::UnsafeCell::raw_get(x as *const _ as *const _) }
    //~^ ERROR casting `&T` to `&mut T` is undefined behavior
}
```

r? `@est31`
2023-09-07 00:24:45 +00:00
..
assembly
auxiliary
codegen Auto merge of #114946 - anforowicz:generic-fix-for-asan-lto, r=tmiasko 2023-09-06 20:04:03 +00:00
codegen-units
coverage-map Copy most of tests/run-coverage into tests/coverage-map/status-quo 2023-09-05 11:55:34 +10:00
debuginfo
incremental
mir-opt Refactor how MIR represents composite debuginfo. 2023-09-05 17:20:07 +00:00
pretty
run-coverage update tests that are ignored by debug 2023-09-01 04:01:54 +08:00
run-coverage-rustdoc
run-make ignore-cross-compile remaining tests that run binaries 2023-08-30 13:45:57 +02:00
run-make-fulldeps
run-pass-valgrind
rustdoc Auto merge of #115286 - saethlin:detangler, r=petrochenkov 2023-09-02 04:53:19 +00:00
rustdoc-gui Migrate GUI colors test to original CSS color format 2023-09-03 12:49:22 +02:00
rustdoc-js Correctly handle paths from foreign items 2023-09-02 23:04:37 +02:00
rustdoc-js-std Add tests for type-based search 2023-09-01 15:16:11 +02:00
rustdoc-json
rustdoc-ui
ui Auto merge of #115166 - Urgau:invalid_ref_casting-invalid-unsafecell-usage, r=est31 2023-09-07 00:24:45 +00:00
ui-fulldeps Implement and test monomorphization 2023-09-06 08:16:04 +00:00
COMPILER_TESTS.md