about summary refs log tree commit diff
path: root/tests/ui/const-ptr
AgeCommit message (Collapse)AuthorLines
2023-12-07also print 'immutable' flagRalf Jung-1/+1
2023-11-26Update std::simd usage and test outputsCaleb Zulawski-8/+8
2023-10-25Stabilize `[const_]pointer_byte_offsets`Maybe Waffle-22/+18
2023-10-16Stop trying to preserve pretty-printing.Camille GILLOT-1/+1
2023-10-16Normalize alloc-id in tests.Camille GILLOT-7/+7
2023-10-15don't UB on dangling ptr deref, instead check inbounds on projectionsRalf Jung-70/+62
2023-08-02const validation: point at where we found a pointer but expected an integerRalf Jung-5/+7
2023-06-01Use translatable diagnostics in `rustc_const_eval`Deadbeef-5/+5
2023-05-05Stabilize const_ptr_readbors-5/+3
2023-04-27Also use `mir::Offset` for pointer `add`Scott McMurray-4/+0
2023-03-11`MaybeUninit::assume_init_read` should have `noundef` load metadataScott McMurray-3/+3
I was looking into `array::IntoIter` optimization, and noticed that it wasn't annotating the loads with `noundef` for simple things like `array::IntoIter<i32, N>`. Turned out to be a more general problem as `MaybeUninit::assume_init_read` isn't marking the load as initialized (<https://rust.godbolt.org/z/Mxd8TPTnv>), which is unfortunate since that's basically its reason to exist. This PR lowers `ptr::read(p)` to `copy *p` in MIR, which fortuitiously also improves the IR we give to LLVM for things like `mem::replace`.
2023-01-11Move /src/test to /testsAlbert Larsan-0/+504