Files
rust/tests/crashes
bors 52bf0cf795 Auto merge of #140553 - BoxyUwU:defer_type_system_ctfe, r=compiler-errors
Defer evaluating type system constants when they use infers or params

Split out of #137972, the parts necessary for associated const equality and min generic const args to make progress and have correct semantics around when CTFE is invoked. According to a [previous perf run](https://perf.rust-lang.org/compare.html?start=93257e2d20809d82d1bc0fcc1942480d1a66d7cd&end=01b4cbf0f47c3f782330db88fa5ba199bba1f8a2&stat=instructions:u) of adding the new `const_arg_kind` query we should expect minor regressions here.

I think this is acceptable as we should be able to remove this query relatively soon once mgca is more complete as we'll then be able to implement GCE in terms of mgca and rip out `GCEConst` at which point it's trivial to determine what kind of anon const we're dealing with (either it has generics and is a repeat expr hack, or it doesnt and is a normal anon const).

This should only affect unstable code as we handle repeat exprs specially and those are the only kinds of type system consts that are allowed to make use of generic parameters.

Fixes #133066
Fixes #133199
Fixes #136894
Fixes #137813

r? compiler-errors
2025-05-23 05:30:45 +00:00
..
2025-05-21 20:20:19 +01:00
2024-04-26 17:20:16 +02:00
2024-04-19 23:09:37 +02:00
2024-04-19 23:09:37 +02:00
2025-01-25 23:40:35 +01:00
2024-04-18 18:55:20 +02:00
2024-04-18 18:55:20 +02:00
2024-12-08 14:17:25 +01:00
2024-12-08 14:17:25 +01:00
2024-04-19 23:09:37 +02:00
2024-04-18 18:55:20 +02:00
2024-12-08 14:17:25 +01:00
2024-12-08 14:17:25 +01:00
2024-04-18 18:55:20 +02:00
2024-12-08 14:17:25 +01:00
2024-04-18 18:55:20 +02:00
2024-04-18 06:13:47 +02:00
2024-12-08 14:17:25 +01:00
2024-05-29 17:06:54 +01:00
2024-04-18 18:55:20 +02:00
2024-04-18 18:55:20 +02:00
2024-09-01 22:28:23 +02:00
2024-04-18 06:13:47 +02:00
2024-04-18 06:13:47 +02:00
2024-12-08 14:17:25 +01:00
2024-04-18 06:13:47 +02:00
2024-04-21 21:04:32 +02:00
2024-04-26 17:20:16 +02:00
2024-04-26 17:20:16 +02:00
2024-11-22 11:12:15 -08:00
2024-06-09 10:16:12 +02:00
2024-06-09 10:16:12 +02:00
2024-06-09 10:16:12 +02:00
2024-06-09 10:16:12 +02:00
2024-06-09 10:16:12 +02:00
2024-06-09 10:16:12 +02:00
2024-06-09 10:16:12 +02:00
2024-11-02 23:44:12 +01:00
2024-06-16 20:38:08 +02:00
2024-06-29 09:33:28 +02:00
2024-06-29 09:33:28 +02:00
2024-07-04 23:44:10 +02:00
2025-05-01 20:05:07 +01:00
2024-08-19 00:38:28 +02:00
2024-08-30 12:38:22 +02:00
2024-08-30 12:38:22 +02:00
2024-09-15 21:18:41 +02:00
2024-09-15 21:18:41 +02:00
2024-12-08 14:17:25 +01:00
2024-09-18 00:10:25 +02:00
2024-09-29 11:58:09 +02:00
2024-12-15 17:27:52 +01:00
2024-10-09 15:34:45 +02:00
2024-10-09 15:34:45 +02:00
2024-10-09 15:34:45 +02:00
2024-10-09 15:34:45 +02:00
2024-10-09 15:34:45 +02:00
2024-10-09 15:34:45 +02:00
2024-10-09 15:34:45 +02:00
2024-12-08 13:09:46 +01:00
2024-10-12 11:29:38 +02:00
2024-10-20 10:05:39 +02:00
2024-10-20 10:05:39 +02:00
2024-11-02 23:44:12 +01:00
2024-11-06 22:10:23 +01:00
2024-12-12 22:09:39 +01:00
2024-12-12 22:09:39 +01:00
2024-12-12 22:09:39 +01:00
2024-12-12 22:09:39 +01:00
2024-12-15 17:27:52 +01:00
2024-12-12 22:55:31 +01:00
2024-12-12 22:55:31 +01:00
2024-12-12 22:55:31 +01:00
2024-12-12 22:55:31 +01:00
2024-12-15 17:27:52 +01:00
2024-12-12 22:55:31 +01:00
2025-01-04 14:38:06 +01:00
2025-01-04 14:38:06 +01:00
2025-01-04 14:38:06 +01:00
2025-01-04 14:38:06 +01:00
2025-01-04 14:38:06 +01:00
2025-01-12 10:11:29 +01:00
2025-02-09 10:40:18 +01:00
2025-02-09 10:40:18 +01:00
2025-02-09 10:40:18 +01:00
2025-02-09 10:40:18 +01:00
2025-02-09 10:40:18 +01:00
2025-02-09 10:40:18 +01:00
2025-03-08 20:13:07 +01:00
2025-03-08 20:13:07 +01:00
2025-03-08 20:13:07 +01:00
2025-03-08 20:13:07 +01:00
2025-03-08 20:13:07 +01:00
2025-03-08 20:13:07 +01:00
2025-03-08 20:13:07 +01:00
2025-03-08 20:13:07 +01:00
2025-03-08 20:13:07 +01:00
2025-03-08 20:13:07 +01:00
2025-03-08 20:13:07 +01:00
2025-03-08 20:13:07 +01:00
2025-03-08 20:13:07 +01:00
2025-03-08 20:13:07 +01:00
2025-03-08 20:13:07 +01:00
2025-03-08 20:13:07 +01:00
2025-03-08 20:13:07 +01:00
2025-03-08 20:13:07 +01:00
2025-03-08 20:13:07 +01:00
2025-03-08 20:13:07 +01:00
2025-03-08 20:13:07 +01:00
2025-03-08 20:13:07 +01:00
2025-03-08 20:13:07 +01:00
2025-03-08 20:13:07 +01:00
2025-03-08 20:13:07 +01:00
2025-03-08 20:13:07 +01:00
2025-03-08 20:13:07 +01:00
2025-03-08 20:13:07 +01:00
2025-03-08 20:13:07 +01:00
2025-03-08 20:13:07 +01:00
2025-03-08 20:13:07 +01:00
2025-05-01 17:04:37 +02:00
2025-03-08 20:13:07 +01:00
2025-05-01 17:04:37 +02:00
2025-05-01 17:04:37 +02:00
2025-05-01 17:04:37 +02:00
2025-05-01 17:04:37 +02:00
2025-05-01 17:04:37 +02:00
2025-05-01 17:04:37 +02:00
2025-05-01 17:04:37 +02:00
2025-05-01 17:04:37 +02:00
2025-05-01 17:04:37 +02:00
2025-05-01 17:04:37 +02:00
2025-05-01 17:04:37 +02:00
2025-05-01 17:04:37 +02:00
2025-05-01 17:04:37 +02:00
2025-05-01 17:04:37 +02:00
2025-05-01 17:04:37 +02:00
2025-05-01 17:04:37 +02:00
2025-05-01 17:04:37 +02:00
2025-05-01 17:04:37 +02:00
2025-05-01 17:04:37 +02:00
2025-05-01 17:04:37 +02:00
2025-05-01 17:04:37 +02:00
2025-05-01 17:04:37 +02:00
2025-05-01 17:04:37 +02:00
2025-05-18 17:25:34 +02:00
2025-05-18 17:25:34 +02:00
2025-05-18 17:25:34 +02:00
2025-05-18 17:25:34 +02:00
2025-05-18 17:25:34 +02:00
2025-05-18 17:25:34 +02:00
2025-05-18 17:25:34 +02:00
2025-05-18 17:25:34 +02:00
2025-05-18 17:25:34 +02:00
2025-05-18 17:25:34 +02:00
2025-05-18 17:25:34 +02:00
2025-05-18 17:25:34 +02:00
2025-05-18 17:25:34 +02:00
2025-05-18 17:25:34 +02:00
2025-05-18 17:25:34 +02:00
2025-05-18 17:25:34 +02:00
2025-05-18 17:25:34 +02:00
2025-05-18 17:25:34 +02:00
2025-05-18 17:25:34 +02:00
2025-05-18 17:25:34 +02:00
2025-05-18 17:25:34 +02:00
2025-05-18 17:25:34 +02:00
2025-05-18 17:25:34 +02:00
2025-05-18 17:25:34 +02:00
2025-05-18 17:25:34 +02:00
2025-05-18 17:25:34 +02:00
2025-05-18 17:25:34 +02:00
2025-05-18 17:25:34 +02:00
2025-05-18 17:25:34 +02:00
2025-05-18 17:25:34 +02:00

This is serves as a collection of crashes so that accidental ICE fixes are tracked. This was formally done at https://github.com/rust-lang/glacier but doing it inside the rustc testsuite is more convenient.

It is imperative that a test in the suite causes an internal compiler error/panic or makes rustc crash in some other way. A test will "pass" if rustc exits with something other than 1 or 0.

When adding crashes from https://github.com/rust-lang/rust/issues, the issue number should be noted in the file name (12345.rs should suffice) and also inside the file via //@ known-bug #4321 if possible.

If you happen to fix one of the crashes, please move it to a fitting subdirectory in tests/ui and give it a meaningful name. Also please add a doc comment at the top of the file explaining why this test exists. :) Adding Fixes #NNNNN Fixes #MMMMM to the description of your pull request will ensure the corresponding tickets will be closed automatically upon merge. The ticket ids can be found in the file name or the known-bug annotation inside the testfile.

Please do not re-report any crashes that you find here!