Matthias Krüger
60c0fa1285
crashes: add more tests
2024-04-26 17:20:16 +02:00
Michael Goulet
870ed4bfa2
Add test
2024-04-25 10:51:54 -04:00
León Orell Valerian Liehr
e15d6f9d85
Rollup merge of #123993 - compiler-errors:coroutine-obl, r=lcnr
...
Do `check_coroutine_obligations` once per typeck root
We only need to do `check_coroutine_obligations` once per typeck root, especially since the new solver can't really (easily) associate which obligations correspond to which coroutines.
This requires us to move the checks for sized coroutine fields into `mir_coroutine_witnesses`, but that's fine imo.
r? lcnr
2024-04-23 17:25:16 +02:00
Matthias Krüger
8859631b40
Rollup merge of #124057 - gurry:124031-ice-layout-errored, r=compiler-errors
...
Fix ICE when ADT tail has type error
Fixes #124031
2024-04-23 06:24:55 +02:00
Gurinder Singh
06cd79bb5b
Fix ICE when ADT tail has type error
2024-04-22 09:12:36 +05:30
Matthias Krüger
6774801563
crashes: add a couple more ICE tests
2024-04-21 21:04:32 +02:00
bors
f1bff1f323
Auto merge of #124176 - matthiaskrgr:tests_are_the_best, r=jieyouxu
...
add more known crashes tests
r? `@jieyouxu`
2024-04-20 06:36:58 +00:00
Matthias Krüger
b015f61488
add more known-crashes tests
2024-04-19 23:09:37 +02:00
Maybe Waffle
e5a6d8d0cd
Remove old ICE tests that no longer ICE (yay!)
2024-04-19 11:34:37 +00:00
bors
fa0068b541
Auto merge of #124038 - matthiaskrgr:one_or_two_more_tests, r=jieyouxu
...
crashes: add a couple more ice tests
2024-04-19 01:02:44 +00:00
Matthias Krüger
1d45b7adaf
crashes: add a couple more tests
2024-04-18 18:55:20 +02:00
Scott McMurray
20cf59549f
The ICE in 121127 needs debuginfo
2024-04-18 09:42:26 -07:00
bors
b1248bc60d
Auto merge of #124046 - matthiaskrgr:one_or_two_more_tests____some_on_top, r=jieyouxu
...
crashes: add even more tests?!?
adds more tests that were not already added with https://github.com/rust-lang/rust/pull/124038 from the past 10 months or so.
Need a couple more passes through the tracker to filter out more missing ice /fixed tests but we're slowly getting there.
2024-04-18 05:23:09 +00:00
Matthias Krüger
06335c6532
crashes: add even more tests?!?
2024-04-18 06:13:47 +02:00
Oli Scherer
8c9cba2be7
Validate nested static items
2024-04-17 09:50:15 +00:00
Guillaume Gomez
4885ddfa92
Rollup merge of #123675 - oli-obk:static_wf_ice, r=compiler-errors
...
Taint const qualifs if a static is referenced that didn't pass wfcheck
It is correct to only check the signature here, as the ICE is caused by `USE_WITH_ERROR` trying to allocate memory to store the result of `WITH_ERROR` before evaluating it.
fixes #123153
2024-04-17 00:00:22 +02:00
Oli Scherer
801413ecd1
Taint const qualifs if a static is referenced that didn't pass wfcheck
2024-04-16 10:43:41 +00:00
Gurinder Singh
c30e15aded
Fail candidate assembly for erroneous types
...
Trait predicates for types which have errors may still
evaluate to OK leading to downstream ICEs. Now we return
a selection error for such types in candidate assembly and
thereby prevent such issues
2024-04-16 12:42:48 +05:30
Michael Goulet
a8c9a0bd81
crash -> test
2024-04-15 22:21:50 -04:00
Matthias Krüger
83d73e4929
crashes: readme: add reminder to add Fixes #abcde to prs to automatically close issues.
2024-04-15 21:44:04 +02:00
Matthias Krüger
2ce487c45c
crashes: limit a couple tests to only run on x86_64 and/or not on windows
2024-04-14 23:53:39 +02:00
Matthias Krüger
37df49059d
update README and add COMPILETEST_VERBOSE_CRASHES env var which when set print stdout, stderr and exit code of "crashes" tests, useful for debugging or adding new tests
2024-04-14 11:30:29 +02:00
Matthias Krüger
6d9175f98e
crashes: fix ice detection which did not trigger if code compiled without error by accident
2024-04-14 11:21:58 +02:00
Matthias Krüger
7d826ae43e
tests/crashes: add ICEs from matthiaskrgr/glacier2
2024-04-14 11:21:51 +02:00
Matthias Krüger
98dd566033
add .rs crashes from https://github.com/rust-lang/glacier
2024-04-14 11:18:23 +02:00
Matthias Krüger
7048ce7e8f
tidy: add tidy check agains \.rs files inside tests/crashes that are missing "//@ known-bug: "
2024-04-14 11:16:26 +02:00
Matthias Krüger
d6e70df1a2
crashes: add another test showing that everything works fine when we need compile-flags to repro an ice and add README
2024-04-14 11:16:15 +02:00
Matthias Krüger
7b05360a1e
bootstrap/compiletest: implement "crashes" tests that fail if no ice is reproduced
2024-04-14 11:14:45 +02:00
Matthias Krüger
65ca71815a
add initial ice as test
2024-04-14 11:04:27 +02:00