bors deb9bfd246 Auto merge of #1952 - RalfJung:self-referential, r=RalfJung
exclude mutable references to !Unpin types from uniqueness guarantees

This basically works around https://github.com/rust-lang/unsafe-code-guidelines/issues/148 by not requiring uniqueness any more for mutable references to self-referential generators. That corresponds to [the same work-around that was applied in rustc itself](b815532674/compiler/rustc_middle/src/ty/layout.rs (L2482)).

I am not entirely sure if this is a good idea since it might hide too many errors in case types are "accidentally" `!Unpin`. OTOH, our test suite still passes, and to my knowledge the vast majority of types is `Unpin`. (`place.layout.ty` is monomorphic, we should always exactly know which type this is.)
2022-01-09 14:10:00 +00:00
..
2021-07-07 09:33:01 +02:00
2021-12-05 20:33:20 -05:00
2021-03-02 20:17:05 +05:30
2022-01-08 17:27:48 +01:00
2021-06-20 15:12:11 +08:00
2020-11-19 09:21:11 +01:00
2021-06-20 15:12:11 +08:00
2020-09-10 08:44:27 +02:00
2020-10-29 20:57:38 +01:00
2020-10-27 17:26:36 +01:00
2021-05-11 15:32:05 +02:00
2020-10-29 20:57:38 +01:00
2021-04-25 16:57:48 +02:00
2020-11-10 16:51:07 +01:00
2020-10-04 12:06:51 -04:00
2020-10-04 12:06:51 -04:00
2020-09-10 08:44:27 +02:00
2020-05-20 00:00:35 +02:00
2021-01-26 11:43:39 +01:00
2021-01-31 13:12:25 +01:00
2021-12-15 19:11:08 +01:00
2020-09-02 20:57:20 -05:00
2020-09-10 08:44:27 +02:00
2021-04-30 19:35:59 +08:00
2021-01-31 13:12:25 +01:00
2021-01-31 13:12:25 +01:00
2021-12-08 10:01:51 -05:00
2020-06-20 11:48:42 +02:00
2021-09-02 15:41:10 -07:00
2021-09-02 15:41:10 -07:00
2020-09-07 15:05:26 -05:00
2021-10-12 11:39:06 -04:00
2021-04-25 16:57:48 +02:00
2020-06-01 01:12:31 +02:00