Files
rust/tests/ui
Matthias Krüger 51be0df011 Rollup merge of #116522 - bvanjoi:fix-115599, r=oli-obk
use `PatKind::Error` when an ADT const value has violation

Fixes #115599

Since the [to_pat](https://github.com/rust-lang/rust/pull/111913/files#diff-6d8d99538aca600d633270051580c7a9e40b35824ea2863d9dda2c85a733b5d9R126-R155) behavior has been changed in the #111913 update, the kind of `inlined_const_ast_pat` has transformed from `PatKind::Leaf { pattern: Pat { kind: Wild, ..} } ` to `PatKind::Constant`. This caused a scenario where there are no matched candidates, leading to a testing of the candidates. This process ultimately attempts to test the string const, triggering the `bug!` invocation finally.

r? ``@oli-obk``
2023-10-15 21:29:07 +02:00
..
2023-10-06 11:02:11 +00:00
2023-09-19 12:48:40 +00:00
2023-10-08 10:06:17 +00:00
2023-09-22 18:57:27 +03:00
2023-10-05 01:04:41 +00:00
2023-10-04 08:01:11 +08:00
2023-10-08 10:06:17 +00:00
2023-05-30 13:03:40 +02:00
2023-10-04 08:01:11 +08:00
2023-10-04 18:12:20 +11:00
2023-07-17 22:06:32 +00:00
2023-09-19 12:48:40 +00:00
2023-09-06 12:09:29 +03:00
2023-10-12 21:50:18 +00:00
2023-10-13 21:01:36 +00:00
2023-10-08 10:06:17 +00:00
2023-09-23 13:47:30 +00:00
2023-10-08 10:06:17 +00:00
2023-10-08 10:06:17 +00:00
2023-10-11 04:55:55 +02:00
2023-09-13 15:00:31 +00:00
2023-08-28 17:47:37 -03:00
2023-10-08 10:06:17 +00:00
2023-04-29 13:01:46 +01:00
2023-07-29 11:47:26 +02:00
2023-10-11 04:55:55 +02:00
2023-10-08 10:06:17 +00:00
2023-10-05 01:04:41 +00:00
2023-10-13 21:01:36 +00:00
2023-10-13 21:01:36 +00:00
2023-04-03 09:24:11 +02:00
2023-08-06 13:34:53 +00:00
2023-08-14 16:57:51 -07:00
2023-10-02 23:14:29 +00:00
2023-03-29 18:04:44 -04:00
2023-08-15 00:57:18 +08:00
2023-09-18 17:29:13 +01:00
2023-10-13 21:01:36 +00:00
2023-10-05 01:04:41 +00:00
2023-08-26 19:25:46 +00:00
2023-04-29 13:01:46 +01:00
2023-10-05 01:04:41 +00:00
2023-10-08 10:06:17 +00:00
2023-04-13 22:10:26 -05:00
2023-04-13 22:10:26 -05:00
2023-09-10 23:06:14 +02:00
2023-09-10 23:06:14 +02:00