Ralf Jung
|
a575828431
|
adjust tests
|
2022-12-15 15:50:15 +00:00 |
|
Ralf Jung
|
fa83763491
|
always check alignment during CTFE
|
2022-12-15 15:36:11 +00:00 |
|
Oli Scherer
|
cb26b35b12
|
Make some diagnostics not depend on the source of what they reference being available
|
2022-12-13 09:48:22 +00:00 |
|
Oli Scherer
|
18a2c28052
|
Bless 32 bit tests
|
2022-12-06 18:59:47 +00:00 |
|
Oli Scherer
|
99348a5330
|
Change CTFE backtraces to use note instead of label to preserve their order
labels are reordered within the file in which they are reported, which can mess up the stack trace
|
2022-12-06 18:59:46 +00:00 |
|
Oli Scherer
|
7782a2b70d
|
Remove now-redundant file/line info from const backtraces
|
2022-12-06 18:59:46 +00:00 |
|
Camille GILLOT
|
8077d03b3f
|
Bless 32bit ui.
|
2022-09-23 18:42:14 +02:00 |
|
Camille GILLOT
|
aac2c7ddd8
|
Always print '_, even for erased lifetimes.
|
2022-09-23 18:42:14 +02:00 |
|
Ralf Jung
|
cf2c65b251
|
adjust tests
|
2022-08-27 18:37:49 -04:00 |
|
Ralf Jung
|
58f2ede15f
|
interpret, ptr_offset_from: refactor and test too-far-apart check
|
2022-07-24 19:35:40 -04:00 |
|
Konrad Borowski
|
0753fd117b
|
Partially stabilize const_slice_from_raw_parts
This doesn't stabilize methods working on mutable pointers.
|
2022-07-09 23:20:02 +02:00 |
|
Ralf Jung
|
46956f76ca
|
adjust dangling-int-ptr error message
|
2022-07-05 08:08:24 -04:00 |
|
Camille GILLOT
|
42e4eee893
|
Shorten def_span for more items.
|
2022-07-01 17:39:19 +02:00 |
|
Ralf Jung
|
238501c137
|
interpret: adjust error from constructing an invalid value
|
2022-06-29 11:26:24 -04:00 |
|
b-naber
|
705d818bd5
|
implement valtrees as the type-system representation for constant values
|
2022-06-14 16:07:11 +02:00 |
|
Ralf Jung
|
e5245ef1eb
|
interpret: unify offset_from check with offset check
|
2022-06-09 20:47:06 -04:00 |
|
Maybe Waffle
|
3a2bb78228
|
normalize harder
|
2022-05-31 03:46:04 +04:00 |
|
Maybe Waffle
|
1e0747f8d2
|
normalize forbidden slices
|
2022-05-30 18:27:07 +04:00 |
|
Maybe Waffle
|
1f8a6410bf
|
test forbidden slices on all two usizesizes
|
2022-05-30 15:44:56 +04:00 |
|
Maybe Waffle
|
6d10217382
|
--bless
|
2022-05-30 15:44:56 +04:00 |
|
Maybe Waffle
|
0cca47ea1a
|
Use // error-pattern: header in forbidden_slices.rs test
|
2022-05-30 15:44:56 +04:00 |
|
Maybe Waffle
|
10ee6f8e06
|
Rename slice_from_ptr_range_const -> const_slice_from_ptr_range
This is in line with other `const fn` features.
|
2022-05-30 15:44:56 +04:00 |
|
Maybe Waffle
|
a63a83a8b6
|
Add ui tests for slice::from_{ptr_range,raw_parts}
|
2022-05-30 15:44:56 +04:00 |
|
SaltyKitkat
|
022756f814
|
update stderr messages
|
2022-02-13 17:30:10 +08:00 |
|
SaltyKitkat
|
3c142b0ffe
|
stabilize const_ptr_offset
|
2022-02-13 15:26:14 +08:00 |
|
Eduard-Mihai Burtescu
|
a1d014bdbc
|
Avoid using the copy_nonoverlapping wrapper through mem::replace.
|
2021-08-08 13:59:36 +03:00 |
|
Fabian Wolff
|
f8372f876c
|
Remove trailing whitespace from error messages
|
2021-08-04 10:48:30 +02:00 |
|
Ralf Jung
|
4e28065618
|
tweak pointer out-of-bounds error message
|
2021-07-15 22:47:11 +02:00 |
|
Ralf Jung
|
4759090d15
|
adjust tests
|
2021-07-14 18:17:49 +02:00 |
|
Ralf Jung
|
5f0dd6db94
|
remove const_raw_ptr_to_usize_cast feature
|
2021-07-10 12:08:58 +02:00 |
|
Albin Hedman
|
4aa1267cbb
|
Update and bless tests for const read out of bounds
|
2021-06-27 14:24:49 +02:00 |
|
Albin Hedman
|
4b64baff67
|
Bless out_of_bounds_read test
|
2021-06-27 12:05:20 +02:00 |
|
Albin Hedman
|
38e9538122
|
Revert "Remove tests that were also added in PR 79684."
This reverts commit e118a2cbf1.
|
2021-06-27 12:05:18 +02:00 |
|
Felix S. Klock II
|
e118a2cbf1
|
Remove tests that were also added in PR 79684.
|
2021-06-04 16:44:28 -04:00 |
|
bors
|
8e54a21139
|
Auto merge of #81238 - RalfJung:copy-intrinsics, r=m-ou-se
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-13 20:30:07 +00:00 |
|
Jeffrey Griffin
|
ff315e34e8
|
improve error message for disallowed ptr-to-int casts in const eval
|
2021-02-05 00:52:19 -08:00 |
|
Ralf Jung
|
8477d352ac
|
make const_err a future incompat lint
|
2021-02-03 15:45:43 +01:00 |
|
Ralf Jung
|
18d12ad171
|
directly expose copy and copy_nonoverlapping intrinsics
|
2021-01-21 10:41:22 +01:00 |
|
Albin Hedman
|
5e27765ddf
|
Add tests
|
2020-12-26 03:45:51 +01:00 |
|