Matthias Krüger
e413c2e770
Rollup merge of #110259 - ndrewxie:issue-109964-fix-gitstuff, r=cjgillot
...
Added diagnostic for pin! macro in addition to Box::pin if Unpin isn't implemented
I made a PR earlier, but accidentally renamed a branch and that deleted the PR... sorry for the duplicate
Currently, if an operation on `Pin<T>` is performed that requires `T` to implement `Unpin`, the diagnostic suggestion is to use `Box::pin` ("note: consider using `Box::pin`").
This PR suggests pin! as well, as that's another valid way of pinning a value, and avoids a heap allocation. Appropriate diagnostic suggestions were included to highlight the difference in semantics (local pinning for pin! vs non-local for Box::pin).
Fixes #109964
2023-04-13 21:58:37 +02:00
..
2023-01-30 20:12:19 +00:00
2023-03-03 05:02:34 +00:00
2023-02-14 20:22:10 +00:00
2023-01-30 20:12:19 +00:00
2023-01-30 20:12:19 +00:00
2023-02-22 08:40:47 -07:00
2023-03-16 04:02:56 +00:00
2023-03-16 04:02:56 +00:00
2023-01-30 20:12:19 +00:00
2023-01-30 20:12:19 +00:00
2023-03-14 16:39:45 +01:00
2023-03-14 16:39:45 +01:00
2023-04-12 22:50:10 +00:00
2023-01-30 20:12:19 +00:00
2023-04-03 15:59:21 +00:00
2023-04-03 15:59:21 +00:00
2023-02-28 07:55:19 +00:00
2023-02-28 07:55:19 +00:00
2023-01-30 20:12:19 +00:00
2023-04-12 22:50:10 +00:00
2023-03-06 16:37:34 +00:00
2023-03-06 16:37:34 +00:00
2023-04-12 22:50:10 +00:00
2023-04-12 22:50:10 +00:00
2023-01-30 20:12:19 +00:00
2023-04-12 22:50:10 +00:00
2023-04-12 18:03:11 -04:00
2023-01-30 20:12:19 +00:00
2023-02-22 08:40:47 -07:00
2023-01-30 20:12:19 +00:00
2023-02-13 16:23:23 +01:00
2023-02-13 16:23:23 +01:00
2023-02-21 05:21:07 +00:00
2023-03-03 08:39:36 +01:00
2023-04-12 22:50:10 +00:00
2023-01-30 20:12:19 +00:00
2023-04-12 22:50:10 +00:00
2023-01-30 20:12:19 +00:00
2023-01-30 20:12:19 +00:00
2023-01-30 20:12:19 +00:00
2023-02-13 16:23:23 +01:00
2023-01-30 20:12:19 +00:00
2023-04-13 21:58:37 +02:00
2023-02-21 05:21:07 +00:00
2023-02-23 10:27:06 -07:00
2023-02-23 10:27:06 -07:00
2023-01-30 20:12:19 +00:00
2023-02-23 10:27:06 -07:00
2023-01-30 20:12:19 +00:00
2023-03-27 14:56:59 +02:00
2023-01-30 20:12:19 +00:00
2023-02-23 10:27:06 -07:00
2023-02-23 10:27:06 -07:00
2023-01-30 20:12:19 +00:00
2023-01-30 20:12:21 +00:00
2023-01-30 20:12:19 +00:00
2023-02-23 10:27:06 -07:00
2023-02-23 10:27:06 -07:00
2023-02-09 02:38:55 +00:00
2023-02-09 02:38:55 +00:00
2023-02-09 02:38:55 +00:00
2023-01-30 20:12:19 +00:00
2023-01-30 20:12:19 +00:00
2023-03-05 16:08:06 +00:00
2023-03-05 16:08:06 +00:00
2023-03-24 19:52:34 +08:00
2023-03-24 19:52:34 +08:00
2023-03-24 19:52:34 +08:00
2023-03-20 22:48:26 +08:00
2023-03-20 22:48:26 +08:00
2023-03-21 01:23:28 +08:00
2023-03-30 17:26:12 +00:00
2023-03-22 13:52:24 +08:00
2023-03-22 13:52:24 +08:00
2023-01-30 20:12:19 +00:00
2023-02-13 16:23:23 +01:00
2023-02-13 16:23:23 +01:00
2023-01-30 20:12:19 +00:00
2023-01-30 20:12:19 +00:00
2023-03-08 00:00:18 +00:00
2023-03-08 00:00:18 +00:00
2023-03-08 00:00:19 +00:00
2023-03-08 00:00:18 +00:00
2023-03-08 00:00:19 +00:00
2023-03-08 00:00:18 +00:00
2023-03-08 00:00:18 +00:00
2023-03-08 00:00:18 +00:00
2023-03-08 00:00:18 +00:00
2023-03-08 00:00:18 +00:00
2023-03-08 00:00:18 +00:00
2023-02-23 10:27:06 -07:00
2023-02-23 10:27:06 -07:00
2023-02-23 10:27:06 -07:00
2023-02-23 10:27:06 -07:00
2023-02-23 10:27:06 -07:00
2023-03-04 00:29:52 +00:00
2023-03-04 00:29:52 +00:00
2023-03-27 21:01:23 -04:00
2023-01-30 20:12:19 +00:00
2023-04-12 22:50:10 +00:00
2023-02-13 16:23:23 +01:00
2023-01-30 20:12:19 +00:00
2023-04-12 22:50:10 +00:00
2023-01-30 20:12:19 +00:00
2023-01-30 13:39:25 -08:00
2023-01-30 13:39:25 -08:00
2023-04-03 15:59:21 +00:00
2023-01-30 20:12:21 +00:00
2023-02-06 11:26:36 -08:00
2023-02-06 11:26:36 -08:00
2023-01-30 20:12:19 +00:00
2023-01-30 20:12:19 +00:00
2023-01-30 20:12:19 +00:00
2023-02-22 08:40:47 -07:00
2023-01-30 20:12:19 +00:00
2023-02-10 18:18:08 +00:00
2023-02-10 18:18:08 +00:00
2023-02-03 21:37:41 +00:00
2023-02-03 21:37:41 +00:00
2023-02-03 21:37:41 +00:00
2023-01-30 20:12:19 +00:00
2023-04-12 18:03:11 -04:00
2023-04-12 18:03:11 -04:00
2023-01-30 20:12:19 +00:00
2023-03-17 15:39:05 +00:00
2023-03-17 15:39:05 +00:00
2023-02-28 17:29:46 +00:00
2023-02-28 17:29:46 +00:00
2023-04-12 22:50:10 +00:00
2023-01-30 20:12:21 +00:00
2023-01-30 20:12:21 +00:00
2023-02-15 12:31:38 +00:00
2023-02-15 12:31:38 +00:00
2023-02-22 08:40:47 -07:00
2023-02-23 10:27:06 -07:00
2023-02-06 21:48:10 +00:00
2023-02-06 21:48:10 +00:00
2023-01-30 20:12:19 +00:00
2023-04-12 22:50:10 +00:00
2023-04-12 22:50:10 +00:00
2023-02-23 10:27:06 -07:00
2023-02-23 10:27:06 -07:00