diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2022-12-19 14:41:35 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-19 14:41:35 +0530 |
| commit | 90035f130ecc9c8550b935cc9705531122746ee7 (patch) | |
| tree | 3d9ce0ad287ea8b7fb3d5cb67f5ac57385891389 /tests/rustdoc-ui/coverage/doc-examples.rs | |
| parent | f74bcfbdb1fa2b2c3904f2f24f0c8ddb3c00b5c6 (diff) | |
| parent | ee53452aeccae1bc162126ce3dabdecc534d445b (diff) | |
| download | rust-90035f130ecc9c8550b935cc9705531122746ee7.tar.gz rust-90035f130ecc9c8550b935cc9705531122746ee7.zip | |
Rollup merge of #105839 - LegionMammal978:mut-upvar-not-send, r=lcnr
Suggest a `T: Send` bound for `&mut T` upvars in `Send` generators Right now, we suggest a `T: Sync` bound for both `&T` and `&mut T` upvars. A user on URLO [found this confusing](https://users.rust-lang.org/t/error-complains-about-missing-sync-but-send-is-whats-missing/86021), so I wrote this quick fix to look at the mutability before making the suggestion.
Diffstat (limited to 'tests/rustdoc-ui/coverage/doc-examples.rs')
0 files changed, 0 insertions, 0 deletions
