rust/tests/ui/unsafe
Matthew Jasper 868de8e76b Visit patterns in THIR let expressions
This fixes some THIR unsafety checking errors not being emitted for
let expressions in these situations.
2023-11-06 16:23:09 +00:00
..
auxiliary Add test cases for suggestions with unsafe operations contained inside macros 2023-06-13 15:48:57 +02:00
access_union_field.mir.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
access_union_field.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
access_union_field.thir.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
edition-2024-unsafe_op_in_unsafe_fn.mir.stderr Add suggestion to THIR unsafe_op_in_unsafe_fn lint 2023-11-06 16:23:09 +00:00
edition-2024-unsafe_op_in_unsafe_fn.rs Add suggestion to THIR unsafe_op_in_unsafe_fn lint 2023-11-06 16:23:09 +00:00
edition-2024-unsafe_op_in_unsafe_fn.thir.stderr Add suggestion to THIR unsafe_op_in_unsafe_fn lint 2023-11-06 16:23:09 +00:00
foreign-unsafe-fn-called.mir.stderr Move some UI tests into subdirectories 2023-04-02 19:42:30 -04:00
foreign-unsafe-fn-called.rs Move some UI tests into subdirectories 2023-04-02 19:42:30 -04:00
foreign-unsafe-fn-called.thir.stderr Move some UI tests into subdirectories 2023-04-02 19:42:30 -04:00
initializing-ranged-via-ctor.rs rustc_layout_scalar_valid_range makes ctors unsafe 2023-08-30 15:01:58 -07:00
initializing-ranged-via-ctor.stderr Pretty print Fn traits in rustc_on_unimplemented 2023-11-02 20:57:05 +00:00
inline_asm.mir.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
inline_asm.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
inline_asm.thir.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-3080.mir.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-3080.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-3080.thir.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-45087-unreachable-unsafe.mir.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-45087-unreachable-unsafe.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-45087-unreachable-unsafe.thir.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-45107-unnecessary-unsafe-in-closure.mir.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-45107-unnecessary-unsafe-in-closure.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-45107-unnecessary-unsafe-in-closure.thir.stderr Make THIR unused_unsafe lint consistent with MIR 2023-10-25 10:10:13 +00:00
issue-47412.mir.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-47412.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-47412.thir.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-85435-unsafe-op-in-let-under-unsafe-under-closure.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-87414-query-cycle.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-106126-good-path-bug.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-115348-false-positive-warning-of-unnecessary-unsafe.rs add a regression test 2023-09-06 17:46:46 +08:00
issue-115348-false-positive-warning-of-unnecessary-unsafe.stderr add a regression test 2023-09-06 17:46:46 +08:00
new-unsafe-pointers.rs Move some UI tests into subdirectories 2023-04-02 19:42:30 -04:00
ranged_ints2_const.mirunsafeck.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
ranged_ints2_const.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
ranged_ints2_const.thirunsafeck.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
ranged_ints2.mirunsafeck.stderr Visit patterns in THIR let expressions 2023-11-06 16:23:09 +00:00
ranged_ints2.rs Visit patterns in THIR let expressions 2023-11-06 16:23:09 +00:00
ranged_ints2.thirunsafeck.stderr Visit patterns in THIR let expressions 2023-11-06 16:23:09 +00:00
ranged_ints3_const.mirunsafeck.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
ranged_ints3_const.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
ranged_ints3_const.thirunsafeck.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
ranged_ints3_match.mirunsafeck.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
ranged_ints3_match.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
ranged_ints3_match.thirunsafeck.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
ranged_ints3.mirunsafeck.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
ranged_ints3.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
ranged_ints3.thirunsafeck.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
ranged_ints4_const.mirunsafeck.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
ranged_ints4_const.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
ranged_ints4_const.thirunsafeck.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
ranged_ints4.mirunsafeck.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
ranged_ints4.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
ranged_ints4.thirunsafeck.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
ranged_ints_const.mir.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
ranged_ints_const.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
ranged_ints_const.thir.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
ranged_ints_macro.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
ranged_ints.mir.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
ranged_ints.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
ranged_ints.thir.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
ranged-ctor-as-fn-ptr.rs Test and note unsafe ctor to fn ptr coercion 2023-08-30 15:09:40 -07:00
ranged-ctor-as-fn-ptr.stderr Test and note unsafe ctor to fn ptr coercion 2023-08-30 15:09:40 -07:00
rfc-2585-unsafe_op_in_unsafe_fn.mir.stderr Add note about unsafe functions body not being unsafe 2023-06-13 15:48:57 +02:00
rfc-2585-unsafe_op_in_unsafe_fn.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
rfc-2585-unsafe_op_in_unsafe_fn.thir.stderr Add suggestion to THIR unsafe_op_in_unsafe_fn lint 2023-11-06 16:23:09 +00:00
union_access_through_block.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
union_destructure.mir.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
union_destructure.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
union_wild_or_wild.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
union-assignop.mirunsafeck.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
union-assignop.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
union-assignop.thirunsafeck.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
union-modification.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
union.mir.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
union.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
union.thir.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unsafe-around-compiler-generated-unsafe.mir.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unsafe-around-compiler-generated-unsafe.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unsafe-around-compiler-generated-unsafe.thir.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unsafe-assign.mirunsafeck.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unsafe-assign.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unsafe-assign.thirunsafeck.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unsafe-block-without-braces.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unsafe-block-without-braces.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unsafe-borrow.mirunsafeck.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unsafe-borrow.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unsafe-borrow.thirunsafeck.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unsafe-const-fn.mir.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unsafe-const-fn.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unsafe-const-fn.thir.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unsafe-fn-assign-deref-ptr.mir.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unsafe-fn-assign-deref-ptr.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unsafe-fn-assign-deref-ptr.thir.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unsafe-fn-autoderef.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unsafe-fn-autoderef.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unsafe-fn-called-from-safe.mir.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unsafe-fn-called-from-safe.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unsafe-fn-called-from-safe.thir.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unsafe-fn-called-from-unsafe-blk.rs Move some UI tests into subdirectories 2023-04-02 19:42:30 -04:00
unsafe-fn-called-from-unsafe-fn.rs Move some UI tests into subdirectories 2023-04-02 19:42:30 -04:00
unsafe-fn-deref-ptr.mir.stderr Also test destructuring assignment. 2023-03-09 17:45:13 +00:00
unsafe-fn-deref-ptr.rs Also test destructuring assignment. 2023-03-09 17:45:13 +00:00
unsafe-fn-deref-ptr.thir.stderr Also test destructuring assignment. 2023-03-09 17:45:13 +00:00
unsafe-fn-used-as-value.mir.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unsafe-fn-used-as-value.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unsafe-fn-used-as-value.thir.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unsafe-not-inherited.mirunsafeck.stderr Implement "items do not inherit unsafety" for THIR unsafeck 2023-07-15 11:59:38 -04:00
unsafe-not-inherited.rs Implement "items do not inherit unsafety" for THIR unsafeck 2023-07-15 11:59:38 -04:00
unsafe-not-inherited.thirunsafeck.stderr Implement "items do not inherit unsafety" for THIR unsafeck 2023-07-15 11:59:38 -04:00
unsafe-pointer-assignability.rs Move some UI tests into subdirectories 2023-04-02 19:42:30 -04:00
unsafe-subtyping.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unsafe-subtyping.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unsafe-trait-impl.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unsafe-trait-impl.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unsafe-unstable-const-fn.mir.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unsafe-unstable-const-fn.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unsafe-unstable-const-fn.thir.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wrapping-unsafe-block-sugg.mir.fixed Add suggestion to THIR unsafe_op_in_unsafe_fn lint 2023-11-06 16:23:09 +00:00
wrapping-unsafe-block-sugg.mir.stderr Add suggestion to THIR unsafe_op_in_unsafe_fn lint 2023-11-06 16:23:09 +00:00
wrapping-unsafe-block-sugg.rs Add suggestion to THIR unsafe_op_in_unsafe_fn lint 2023-11-06 16:23:09 +00:00
wrapping-unsafe-block-sugg.thir.fixed Add suggestion to THIR unsafe_op_in_unsafe_fn lint 2023-11-06 16:23:09 +00:00
wrapping-unsafe-block-sugg.thir.stderr Add suggestion to THIR unsafe_op_in_unsafe_fn lint 2023-11-06 16:23:09 +00:00