bors
ebf5c1a928
Auto merge of #12031 - y21:eager_transmute_more_binops, r=llogiq
...
Lint nested binary operations and handle field projections in `eager_transmute`
This PR makes the lint a bit stronger. Previously it would only lint `(x < 4).then_some(transmute(x))` (that is, a single binary op in the condition). With this change, it understands:
- multiple, nested binary ops: `(x < 4 && x > 1).then_some(...)`
- local references with projections: `(x.field < 4 && x.field > 1).then_some(transmute(x.field))`
changelog: [`eager_transmute`]: lint nested binary operations and look through field/array accesses
r? llogiq (since you reviewed my initial PR #11981 , I figured you have the most context here, sorry if you are too busy with other PRs, feel free to reassign to someone else then)
2024-01-03 21:43:01 +00:00
..
2023-12-28 19:20:18 +01:00
2023-12-16 17:40:32 +01:00
2023-12-22 20:31:48 +08:00
2023-12-26 16:58:43 -05:00
2024-01-02 19:21:51 -05:00
2023-12-15 22:52:38 +03:00
2023-12-15 22:52:38 +03:00
2023-12-16 14:12:50 +01:00
2023-12-16 14:12:50 +01:00
2023-12-16 14:12:50 +01:00
2023-12-16 14:12:50 +01:00
2023-12-16 14:12:50 +01:00
2023-12-16 14:12:50 +01:00
2023-12-16 14:12:50 +01:00
2023-12-21 18:20:25 +08:00
2023-12-21 18:20:25 +08:00
2023-12-21 18:20:25 +08:00
2023-12-16 17:40:32 +01:00
2023-12-16 17:40:32 +01:00
2023-12-16 17:40:32 +01:00
2023-12-25 09:39:32 +08:00
2023-12-25 09:39:32 +08:00
2023-12-25 09:39:32 +08:00
2024-01-02 19:21:51 -05:00
2024-01-02 19:21:51 -05:00
2023-12-25 09:39:32 +08:00
2023-12-16 14:12:50 +01:00
2023-12-28 05:27:56 +01:00
2023-12-28 05:27:56 +01:00
2023-12-28 05:27:56 +01:00
2023-12-29 19:23:31 +05:30
2023-12-29 19:23:31 +05:30
2023-12-29 19:23:31 +05:30
2023-12-22 20:31:48 +08:00
2023-12-22 20:31:48 +08:00
2023-12-22 20:31:48 +08:00
2023-12-30 13:31:32 +02:00
2023-12-30 13:31:32 +02:00
2023-12-30 13:31:32 +02:00
2023-12-16 17:40:32 +01:00
2023-12-16 17:40:32 +01:00
2023-12-22 20:31:48 +08:00
2023-12-22 20:31:48 +08:00
2023-12-16 14:12:50 +01:00
2023-12-16 14:12:50 +01:00
2023-12-16 14:12:50 +01:00
2023-12-16 14:12:50 +01:00
2023-12-16 14:12:50 +01:00
2023-12-16 14:12:50 +01:00
2023-12-22 19:02:22 -05:00
2023-12-30 04:56:46 +01:00
2023-12-30 04:56:46 +01:00
2023-12-24 17:32:00 +02:00
2023-12-24 17:32:00 +02:00
2023-12-24 17:32:00 +02:00
2023-12-24 17:32:00 +02:00
2023-12-24 17:32:00 +02:00
2023-12-24 17:32:00 +02:00
2023-12-30 04:56:46 +01:00
2023-12-30 04:56:46 +01:00
2023-12-16 14:12:50 +01:00
2023-12-16 14:12:50 +01:00
2023-12-26 17:49:51 -07:00
2023-12-26 17:49:51 -07:00
2023-12-26 17:49:51 -07:00
2023-12-23 16:22:12 +01:00
2023-12-23 16:22:12 +01:00
2023-12-23 16:22:08 +01:00
2023-12-16 14:12:50 +01:00
2023-12-16 14:12:50 +01:00
2023-12-16 14:12:50 +01:00
2023-12-25 14:28:01 +08:00
2023-12-25 14:28:01 +08:00
2023-12-16 14:12:50 +01:00
2023-12-16 14:12:50 +01:00
2023-12-16 17:40:32 +01:00
2023-12-16 17:40:32 +01:00
2023-12-16 17:40:32 +01:00
2023-12-16 14:12:50 +01:00
2023-12-16 14:12:50 +01:00
2023-12-16 14:12:50 +01:00
2023-12-16 14:12:50 +01:00
2023-12-25 21:13:41 +00:00
2023-12-25 21:13:41 +00:00
2023-12-25 21:13:41 +00:00
2023-12-16 14:12:50 +01:00
2023-12-16 14:12:50 +01:00
2023-12-16 17:40:32 +01:00
2023-12-16 17:40:32 +01:00
2023-12-16 00:43:52 +01:00
2023-12-16 00:43:52 +01:00
2023-12-16 00:43:52 +01:00
2023-12-16 14:12:50 +01:00
2023-12-16 14:12:50 +01:00
2023-12-16 14:12:50 +01:00
2024-01-02 19:21:51 -05:00
2024-01-02 19:21:51 -05:00
2023-12-15 22:58:22 +01:00
2023-12-15 22:58:22 +01:00
2023-12-16 17:40:32 +01:00
2023-12-16 17:40:32 +01:00
2023-12-16 17:40:32 +01:00
2023-12-27 19:10:04 +01:00
2023-12-27 19:10:04 +01:00
2023-12-27 19:10:04 +01:00
2023-12-27 19:10:04 +01:00
2023-12-27 19:10:04 +01:00
2023-12-27 19:10:04 +01:00
2024-01-02 19:21:51 -05:00
2023-12-16 14:12:50 +01:00
2023-12-16 14:12:50 +01:00
2023-12-16 14:12:50 +01:00
2023-12-16 14:12:50 +01:00
2023-12-16 14:12:50 +01:00
2023-12-16 14:12:50 +01:00
2023-12-16 00:43:52 +01:00
2023-12-16 00:43:52 +01:00
2023-12-16 00:43:52 +01:00
2023-12-27 22:26:25 +01:00
2023-12-27 22:26:25 +01:00
2023-12-27 22:26:25 +01:00
2023-12-31 13:30:36 +01:00
2023-12-31 13:30:36 +01:00
2023-12-31 13:30:36 +01:00
2024-01-02 19:21:51 -05:00
2024-01-01 18:06:10 +02:00
2024-01-01 18:06:10 +02:00
2024-01-01 18:06:10 +02:00
2023-12-31 11:20:49 +01:00
2023-12-31 11:20:49 +01:00
2023-12-16 14:12:50 +01:00
2023-12-16 14:12:50 +01:00
2023-12-16 14:12:50 +01:00
2023-12-16 14:12:50 +01:00
2023-12-16 14:12:50 +01:00
2023-12-18 16:55:42 +01:00
2023-12-18 16:55:42 +01:00
2023-12-18 16:55:42 +01:00
2023-12-16 14:12:50 +01:00
2023-12-16 14:12:50 +01:00
2023-12-16 14:12:50 +01:00
2023-12-16 14:12:50 +01:00
2024-01-02 19:21:51 -05:00
2024-01-02 19:21:51 -05:00
2023-12-16 14:12:50 +01:00
2023-12-16 14:12:50 +01:00
2023-12-16 14:12:50 +01:00