Guillaume Gomez
09575ecde1
Rollup merge of #150385 - fix-expr-can-have-side-effects, r=jdonszelmann,samueltardieu
...
fix `Expr::can_have_side_effects` for `[x; N]` style array literal and binary expressions
AFAIK `[0; 3]` is basically a syntax sugar for `[0, 0, 0]` so it should return whether the repeat's element can have side effects, like what it does on arrays.
And it seems that the rule for unary operators and indexings can be applied to binary operators as well.
2026-01-09 11:59:58 +01:00
..
2025-11-23 20:34:07 +00:00
2026-01-02 23:13:21 +01:00
2025-12-19 15:04:30 -08:00
2026-01-08 22:21:21 +01:00
2025-11-10 09:57:08 +08:00
2026-01-08 20:29:00 +05:00
2026-01-06 01:36:53 +00:00
2026-01-06 09:03:35 +01:00
2026-01-06 09:04:08 +01:00
2025-11-05 11:25:27 +00:00
2026-01-07 13:27:12 +00:00
2026-01-06 09:03:35 +01:00
2025-12-24 15:16:59 +00:00
2025-12-27 18:41:14 +00:00
2026-01-08 22:21:21 +01:00
2026-01-08 22:21:21 +01:00
2025-12-27 13:42:01 +01:00
2025-12-14 09:16:11 +00:00
2025-11-05 11:25:27 +00:00
2025-12-24 10:21:07 +00:00
2025-12-31 03:01:05 +01:00
2025-11-21 14:16:12 +00:00
2025-12-16 13:23:48 +00:00
2026-01-06 22:59:32 +00:00
2026-01-05 12:31:42 +08:00
2025-11-26 22:44:25 +01:00
2025-12-24 06:41:42 +00:00
2025-12-20 13:46:22 +00:00
2025-10-12 08:08:30 +00:00
2026-01-09 11:59:58 +01:00
2026-01-08 22:21:21 +01:00
2026-01-08 20:29:00 +05:00
2026-01-07 08:44:32 +08:00
2025-11-05 11:25:27 +00:00
2025-12-18 22:25:34 +01:00
2025-12-23 07:46:12 +11:00
2026-01-04 11:53:31 +08:00
2025-12-27 11:20:42 +01:00
2026-01-07 08:44:32 +08:00
2025-12-19 15:04:30 -08:00
2025-12-31 14:30:48 +01:00
2025-10-15 13:17:25 +01:00
2025-12-09 17:36:48 +01:00
2026-01-08 20:29:00 +05:00
2026-01-08 22:21:21 +01:00
2026-01-06 16:19:41 +01:00
2025-12-27 03:12:17 +00:00
2025-12-30 22:01:49 -05:00
2026-01-08 16:25:30 +01:00
2026-01-05 12:31:42 +08:00
2026-01-08 14:10:33 +01:00
2026-01-08 14:10:33 +01:00
2026-01-06 22:59:32 +00:00
2026-01-03 22:46:09 +05:30
2025-11-05 11:25:27 +00:00
2026-01-08 14:10:33 +01:00
2025-12-22 06:58:28 +00:00
2025-12-12 07:33:09 +01:00
2025-11-14 09:01:22 +08:00
2025-12-22 16:26:14 +01:00
2026-01-08 11:35:33 +01:00
2025-12-21 22:11:33 +01:00
2025-11-05 11:25:29 +00:00
2026-01-04 06:58:31 -08:00
2026-01-02 22:34:17 +00:00
2025-12-28 16:12:27 +00:00
2026-01-08 22:21:19 +01:00
2025-12-20 13:46:22 +00:00
2026-01-07 08:44:32 +08:00
2025-11-08 13:50:47 -05:00
2026-01-06 04:38:51 +00:00
2026-01-08 10:49:44 +00:00
2026-01-06 01:36:53 +00:00
2025-12-16 01:47:28 +02:00
2025-09-19 12:00:30 -07:00