Oli Scherer
9b5d57d0a9
Unconditionally run check_item_type on all items
2025-06-30 08:06:08 +00: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
beetrees
467eeabbb5
Stabilise repr128
2025-05-28 15:14:34 +01:00
Vadim Petrochenkov
20faf8532b
compiletest: Make diagnostic kind mandatory on line annotations
2025-04-30 10:44:24 +03:00
Vadim Petrochenkov
b3f75353a2
UI tests: add missing diagnostic kinds where possible
2025-04-08 23:06:31 +03:00
Esteban Küber
f0845adb0c
Show diff suggestion format on verbose replacement
...
```
error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields
--> $DIR/attempted-access-non-fatal.rs:7:15
|
LL | let _ = 2.l;
| ^
|
help: if intended to be a floating point literal, consider adding a `0` after the period and a `f64` suffix
|
LL - let _ = 2.l;
LL + let _ = 2.0f64;
|
```
2025-02-10 20:21:39 +00:00
FedericoBruzzone
cef97bce7b
Add TooGeneric variant to LayoutError and emit Unknown one
...
- `check-pass` test for a MRE of #135020
- fail test for #135138
- switch to `TooGeneric` for checking CMSE fn signatures
- switch to `TooGeneric` for compute `SizeSkeleton` (for transmute)
- fix broken tests
2025-01-27 00:37:34 +01:00
Michael Goulet
b89a6e4932
Consider more erroneous layouts as LayoutError::ReferencesError to suppress spurious errors
2025-01-14 19:07:37 +00:00
Ralf Jung
ed8ee39930
fix ICE on type error in promoted
2024-12-09 15:17:26 +01:00
Ralf Jung
a17294dc0f
fix ICE when promoted has layout size overflow
2024-12-01 19:52:27 +01:00
The 8472
97b84e40cb
add tests for niches in pointers
2024-11-30 16:00:55 +01:00
Nadrieril
99468bb760
Update tests
2024-08-10 12:07:17 +02:00
许杰友 Jieyou Xu (Joe)
ec2cc761bc
[AUTO-GENERATED] Migrate ui tests from // to //@ directives
2024-02-16 20:02:50 +00:00
León Orell Valerian Liehr
02320b502d
Improve the diagnostics for unused generic parameters
2024-02-01 16:18:03 +01:00
Oli Scherer
db7cd57091
Remove track_errors entirely
2024-01-23 15:23:22 +00:00
Jake Goulding
53eca9fa87
Adjust compiler tests for unused_tuple_struct_fields -> dead_code
2024-01-02 15:34:37 -05:00
Nilstrieb
41e8d152dc
Show number in error message even for one error
...
Co-authored-by: Adrian <adrian.iosdev@gmail.com >
2023-11-24 19:15:52 +01:00
Maybe Waffle
70f28a9110
Move tests from ui/discrim dir
2023-06-08 12:33:17 +00:00
Caio
c62d49e75e
Address comment
2023-05-29 12:07:41 -03:00
Caio
41d414e3f4
Address comments
2023-05-24 19:54:13 -03:00
Caio
25e395653d
Move tests
2023-05-24 19:35:59 -03:00
Tomasz Miąsko
67f455afe1
Suppress "erroneous constant used" for constants tainted by errors
...
When constant evaluation fails because its MIR is tainted by errors,
suppress note indicating that erroneous constant was used, since those
errors have to be fixed regardless of the constant being used or not.
2023-05-15 00:00:00 +00:00
Michael Goulet
ff54c801f0
Encode VariantIdx so we can decode variants in the right order
2023-05-13 00:26:35 +00:00
Boxy
73b3ce26ec
improve diagnostics and bless tests
2023-05-05 21:42:54 +01:00
Caio
4adc5f9281
Move test files
2023-04-20 15:06:17 -03:00
Camille GILLOT
65c334ee8c
Fortify tests againts mir-opts.
2023-04-14 16:26:11 +00:00
Albert Larsan
cf2dff2b1e
Move /src/test to /tests
2023-01-11 09:32:08 +00:00