| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2023-01-11 | Move /src/test to /tests | Albert Larsan | -102/+0 | |
| 2022-12-27 | Fix ui constant tests for big-endian platforms | Ulrich Weigand | -0/+3 | |
| A number of tests under ui/const-ptr and ui/consts are currently failing on big-endian platforms as the binary encoding of some constants is hard-coded in the stderr test files. Fix this by providing a normalize-stderr-test rule that strips out the raw bytes hex dump, so the comparison can be done in an endianness-independent manner. Note that in most cases, this means the tests are now also independent of word size, so the 32bit and 64bit cases can be re-unified. To keep tests that verify the details of those raw bytes dumps, a new test case raw-bytes.rs performs the tests where the hex dumps were stripped out a second time, but only on little- endian platforms. In addition, src/test/ui/const-ptr/forbidden_slices.rs exposes an endian-specific difference in this diagnostic output: constructing invalid value at .<deref>[0]: encountered 0x11, but expected a boolean depending on which byte of D0 is not a boolean value (0 or 1). Fixed this by choosing a value of D0 that differs from 0 or 1 in all bytes. Fixes part of https://github.com/rust-lang/rust/issues/105383. | ||||
| 2022-10-07 | make const_err a hard error | Ralf Jung | -10/+5 | |
| 2022-09-27 | also query type_uninhabited_from | Ralf Jung | -0/+1 | |
| 2022-08-31 | Fix a bunch of typo | Dezhi Wu | -1/+1 | |
| This PR will fix some typos detected by [typos]. I only picked the ones I was sure were spelling errors to fix, mostly in the comments. [typos]: https://github.com/crate-ci/typos | ||||
| 2022-08-26 | make read_immediate error immediately on uninit, so ImmTy can carry ↵ | Ralf Jung | -1/+2 | |
| initialized Scalar | ||||
| 2022-06-05 | interpret: better control over whether we read data with provenance, and ↵ | Ralf Jung | -6/+10 | |
| implicit provenance stripping where possible | ||||
| 2022-03-24 | Check if call return type is visibly uninhabited when building MIR | Tomasz Miąsko | -2/+2 | |
| 2021-03-31 | Rename stderr->64bit.stderr where needed. | Hameer Abbasi | -1/+1 | |
| 2020-07-11 | Rollup merge of #72920 - oli-obk:const_transmute, r=RalfJung | Manish Goregaokar | -1/+1 | |
| Stabilize `transmute` in constants and statics but not const fn cc #53605 (leaving issue open so we can add `transmute` to `const fn` later) Previous attempt: #64011 r? @RalfJung cc @rust-lang/wg-const-eval | ||||
| 2020-07-11 | Stabilize `transmute` in constants and statics but not const fn | Oliver Scherer | -1/+1 | |
| 2020-07-03 | adjust ub-enum test to be endianess-independent | Ralf Jung | -2/+3 | |
| 2020-04-26 | organize Debug/Display impls a bit more; avoid sign-ignorant decimal display | Ralf Jung | -0/+1 | |
| 2020-03-08 | fix type size mismatch on 32bit | Ralf Jung | -3/+2 | |
| 2020-03-06 | please tidy | Ralf Jung | -0/+1 | |
| 2020-03-06 | test some more kinds of enums with uninhabited variants | Ralf Jung | -1/+35 | |
| 2020-03-06 | const validation ub tests: use transmute instead of unions | Ralf Jung | -31/+18 | |
| 2019-08-30 | const-eval tests: make all unions repr(C) | Ralf Jung | -0/+3 | |
| 2019-07-04 | turns out that dangling pointer branch is dead code; remove it and improve ↵ | Ralf Jung | -10/+22 | |
| the error that actually gets shown a bit | ||||
| 2018-12-25 | Remove licenses | Mark Rousskov | -10/+0 | |
| 2018-11-19 | we now do proper validation on scalars | Ralf Jung | -5/+5 | |
| 2018-11-15 | do not accept out-of-bounds pointers in enum discriminants, they might be NULL | Ralf Jung | -0/+5 | |
| 2018-11-07 | do not print wrapping ranges like normal ranges in diagnostics | Ralf Jung | -10/+19 | |
| 2018-11-05 | Also test for undef in enum discriminant | Ralf Jung | -0/+5 | |
| The error message is sub-par, but fixing that requries moving ScalarMaybeUndef to librustc which would conflict badly with another PR that is in flight. | ||||
| 2018-11-05 | fix validation error on non-integer enum discriminants | Ralf Jung | -0/+2 | |
| 2018-10-25 | Report const eval error inside the query | Oliver Schneider | -3/+3 | |
| 2018-08-22 | optimize sanity check path printing | Ralf Jung | -0/+49 | |
| During the sanity check, we keep track of the path we are below in a `Vec`. We avoid cloning that `Vec` unless we hit a pointer indirection. The `String` representation is only computed when validation actually fails. | ||||
