Matthias Krüger
b7dc4813a8
Rollup merge of #132653 - BoxyUwU:const_arg_stmt_mac_call, r=compiler-errors
...
Don't use `maybe_unwrap_block` when checking for macro calls in a block expr
Fixes #131915
Using `maybe_unwrap_block` to determine if we are looking at a `{ mac_call!{} }` will fail sometimes as `mac_call!{}` could be a `StmtKind::MacCall` not a `StmtKind::Expr`. This caused the def collector to think that `{ mac_call!{} }` was a non-trivial const argument and create a definition for it even though it should not.
r? `@compiler-errors` cc `@camelid`
2024-11-12 06:27:17 +01:00
..
2024-11-07 14:17:16 +00:00
2024-11-08 07:35:29 +01:00
2024-10-21 15:22:17 +01:00
2024-11-12 06:27:17 +01:00
2024-10-07 11:15:04 -07:00
2024-11-10 17:43:46 +09:00
2024-11-11 12:26:00 +00:00
2024-10-28 18:05:08 +03:00
2024-11-04 23:27:45 +01:00
2024-11-09 19:41:53 +00:00
2024-10-27 17:04:12 +00:00
2024-11-09 20:42:56 +00:00
2024-11-09 20:42:56 +00:00
2024-11-11 21:58:32 +01:00
2024-11-11 21:58:32 +01:00
2024-11-09 20:28:44 -08:00
2024-10-24 17:02:11 +11:00
2024-11-11 22:46:38 +11:00
2024-11-08 09:16:00 +01:00
2024-09-22 19:11:29 -04:00
2024-11-11 00:00:58 +00:00
2024-10-30 06:40:36 +01:00
2024-11-09 10:52:03 +01:00
2024-10-19 22:32:38 +08:00
2024-09-26 19:51:14 +00:00
2024-09-22 19:11:29 -04:00
2024-11-11 21:58:29 +01:00
2024-11-11 21:29:18 +01:00
2024-10-30 22:38:49 -07:00
2024-11-12 06:27:16 +01:00
2024-11-03 15:51:39 +03:00
2024-10-10 12:49:18 +02:00
2024-10-14 23:22:51 +02:00
2024-11-08 04:56:08 +00:00
2024-11-08 12:46:39 +11:00
2024-10-30 01:13:18 +00:00
2024-11-10 22:20:35 +01:00
2024-11-10 02:52:25 +00:00
2024-11-09 08:01:31 -08:00
2024-09-22 19:11:29 -04:00
2024-10-27 21:23:28 -04:00
2024-11-07 18:48:22 -08:00
2024-11-12 06:27:17 +01:00
2024-11-12 06:27:17 +01:00
2024-11-03 13:38:47 -08:00
2024-11-10 17:43:07 +01:00
2024-11-10 02:52:25 +00:00
2024-11-07 14:17:16 +00:00
2024-11-11 00:00:58 +00:00
2024-10-14 23:22:51 +02:00
2024-11-11 12:26:00 +00:00
2024-11-03 13:38:47 -08:00
2024-11-11 21:29:18 +01:00
2024-10-03 12:47:08 +03:00
2024-11-03 15:51:39 +03:00
2024-11-12 06:27:17 +01:00
2024-11-02 20:31:47 -07:00
2024-10-16 15:44:16 +02:00
2024-11-12 02:51:21 +00:00
2024-11-07 18:48:22 -08:00
2024-11-11 21:58:29 +01:00
2024-11-04 04:45:52 +00:00
2024-11-11 09:12:03 +00:00
2024-11-09 19:41:53 +00:00
2024-10-29 17:01:24 +01:00
2024-10-28 10:18:50 -07:00
2024-11-07 15:54:40 +00:00
2024-11-03 18:59:41 +00:00
2024-10-22 23:13:04 +02:00
2024-11-08 18:51:28 +11:00