| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2023-01-11 | Move /src/test to /tests | Albert Larsan | -504/+0 | |
| 2022-12-27 | Fix ui constant tests for big-endian platforms | Ulrich Weigand | -275/+36 | |
| 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-12-15 | adjust tests | Ralf Jung | -59/+62 | |
| 2022-12-15 | always check alignment during CTFE | Ralf Jung | -28/+32 | |
| 2022-12-13 | Make some diagnostics not depend on the source of what they reference being ↵ | Oli Scherer | -157/+23 | |
| available | ||||
| 2022-12-06 | Bless 32 bit tests | Oli Scherer | -77/+110 | |
| 2022-12-06 | Change CTFE backtraces to use `note` instead of `label` to preserve their order | Oli Scherer | -101/+143 | |
| labels are reordered within the file in which they are reported, which can mess up the stack trace | ||||
| 2022-12-06 | Remove now-redundant file/line info from const backtraces | Oli Scherer | -60/+60 | |
| 2022-09-23 | Bless 32bit ui. | Camille GILLOT | -8/+8 | |
| 2022-09-23 | Always print '_, even for erased lifetimes. | Camille GILLOT | -8/+8 | |
| 2022-08-27 | adjust tests | Ralf Jung | -8/+12 | |
| 2022-07-24 | interpret, ptr_offset_from: refactor and test too-far-apart check | Ralf Jung | -4/+4 | |
| 2022-07-09 | Partially stabilize const_slice_from_raw_parts | Konrad Borowski | -58/+56 | |
| This doesn't stabilize methods working on mutable pointers. | ||||
| 2022-07-05 | adjust dangling-int-ptr error message | Ralf Jung | -10/+10 | |
| 2022-07-01 | Shorten def_span for more items. | Camille GILLOT | -68/+26 | |
| 2022-06-29 | interpret: adjust error from constructing an invalid value | Ralf Jung | -16/+16 | |
| 2022-06-14 | implement valtrees as the type-system representation for constant values | b-naber | -3/+3 | |
| 2022-06-09 | interpret: unify offset_from check with offset check | Ralf Jung | -4/+4 | |
| 2022-05-31 | normalize harder | Maybe Waffle | -58/+59 | |
| 2022-05-30 | normalize forbidden slices | Maybe Waffle | -78/+79 | |
| 2022-05-30 | test forbidden slices on all two usizesizes | Maybe Waffle | -28/+309 | |
| 2022-05-30 | --bless | Maybe Waffle | -28/+28 | |
| 2022-05-30 | Use `// error-pattern:` header in `forbidden_slices.rs` test | Maybe Waffle | -0/+1 | |
| 2022-05-30 | Rename slice_from_ptr_range_const -> const_slice_from_ptr_range | Maybe Waffle | -2/+2 | |
| This is in line with other `const fn` features. | ||||
| 2022-05-30 | Add ui tests for `slice::from_{ptr_range,raw_parts}` | Maybe Waffle | -0/+481 | |
| 2022-02-13 | update stderr messages | SaltyKitkat | -6/+6 | |
| 2022-02-13 | stabilize const_ptr_offset | SaltyKitkat | -1/+0 | |
| 2021-08-08 | Avoid using the `copy_nonoverlapping` wrapper through `mem::replace`. | Eduard-Mihai Burtescu | -30/+15 | |
| 2021-08-04 | Remove trailing whitespace from error messages | Fabian Wolff | -8/+8 | |
| 2021-07-15 | tweak pointer out-of-bounds error message | Ralf Jung | -3/+3 | |
| 2021-07-14 | adjust tests | Ralf Jung | -3/+3 | |
| 2021-07-10 | remove const_raw_ptr_to_usize_cast feature | Ralf Jung | -27/+0 | |
| 2021-06-27 | Update and bless tests for const read out of bounds | Albin Hedman | -28/+36 | |
| 2021-06-27 | Bless out_of_bounds_read test | Albin Hedman | -26/+29 | |
| 2021-06-27 | Revert "Remove tests that were also added in PR 79684." | Albin Hedman | -0/+75 | |
| This reverts commit e118a2cbf1e590cb5a7586ad01c6c3431c2b4f48. | ||||
| 2021-06-04 | Remove tests that were also added in PR 79684. | Felix S. Klock II | -75/+0 | |
| 2021-02-13 | Auto merge of #81238 - RalfJung:copy-intrinsics, r=m-ou-se | bors | -29/+26 | |
| directly expose copy and copy_nonoverlapping intrinsics This effectively un-does https://github.com/rust-lang/rust/pull/57997. That should help with `ptr::read` codegen in debug builds (and any other of these low-level functions that bottoms out at `copy`/`copy_nonoverlapping`), where the wrapper function will not get inlined. See the discussion in https://github.com/rust-lang/rust/pull/80290 and https://github.com/rust-lang/rust/issues/81163. Cc `@bjorn3` `@therealprof` | ||||
| 2021-02-05 | improve error message for disallowed ptr-to-int casts in const eval | Jeffrey Griffin | -0/+27 | |
| 2021-02-03 | make const_err a future incompat lint | Ralf Jung | -0/+8 | |
| 2021-01-21 | directly expose copy and copy_nonoverlapping intrinsics | Ralf Jung | -26/+23 | |
| 2020-12-26 | Add tests | Albin Hedman | -0/+70 | |
