Commit Graph

15 Commits

Author SHA1 Message Date
Ralf Jung 05834b2d6b improve validation error messages: show surrounding type, and more info on dyn-downcast 2026-03-19 16:37:00 +01:00
Ralf Jung 8171174715 fix panic with extra-const-ub-checks 2025-10-07 19:16:58 +02:00
Ralf Jung 17946c22b1 const-eval error: always say in which item the error occurred
also adjust the wording a little so that we don't say "the error occurred here" for two different spans
2025-06-07 13:42:30 +02:00
Oli Scherer 020216c31c Clarify why we are talking about a failed const eval at a random place 2025-06-02 15:37:15 +00:00
Oli Scherer b331b8b96d Use the informative error as the main const eval error message 2025-06-02 15:37:15 +00:00
bendn c8c074288a Suggest {to,from}_ne_bytes for transmutations between arrays and integers, etc 2025-04-24 13:14:36 +07:00
Vadim Petrochenkov b3f75353a2 UI tests: add missing diagnostic kinds where possible 2025-04-08 23:06:31 +03:00
许杰友 Jieyou Xu (Joe) ec2cc761bc [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
Maybe Waffle e36224118f Stabilize [const_]pointer_byte_offsets 2023-10-25 22:35:12 +00:00
Ralf Jung 1ac153f60b add oversized-ref test back 2023-10-16 13:52:19 +02:00
Ralf Jung ea9a24e32e avoid re-checking the offset while iterating an array/slice 2023-10-15 18:12:46 +02:00
Ralf Jung 7767cbb3b0 const validation: point at where we found a pointer but expected an integer 2023-08-02 18:51:50 +02:00
Ralf Jung a2bcafa500 interpret: refactor projection code to work on a common trait, and use that for visitors 2023-07-25 14:30:58 +02:00
bors 81c2459af6 Stabilize const_ptr_read 2023-05-05 20:36:21 +02:00
Albert Larsan cf2dff2b1e Move /src/test to /tests 2023-01-11 09:32:08 +00:00