Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
2b0797a
UnsafePinned: also include the effects of UnsafeCell
RalfJung May 4, 2025
259d6f4
add Miri tests
RalfJung May 4, 2025
033ea63
Do not run PGO/BOLT in x64 Linux alt builds
Kobzol May 30, 2025
ffeb532
Fix broken link to rustc_type_ir module in serialization docs
davidjsonn Jun 1, 2025
a62b7c8
use a relative path, so that this also works offline
tshepang Jun 2, 2025
d243d37
Merge pull request #2439 from rust-lang/tshepang-offline-love
tshepang Jun 2, 2025
23285ef
distracting indirection
tshepang Jun 2, 2025
d6cc62c
Merge pull request #2440 from rust-lang/tshepang-patch-1
Noratrieb Jun 2, 2025
3b85b2f
Trivial: dedup word
smanilov Jun 2, 2025
63ecc0e
Add title and toc to Async chapter
smanilov Jun 2, 2025
f8e21d0
Merge pull request #2444 from smanilov/patch-22
tshepang Jun 2, 2025
7fe7fdd
Merge pull request #2445 from smanilov/patch-23
tshepang Jun 2, 2025
0718d8f
Fix some warning blocks that contain Markdown
fmease Jun 2, 2025
9649a9c
Merge pull request #2446 from fmease/fix-warning-blocks
fmease Jun 2, 2025
e74c2b5
Simplify long sentence
smanilov Jun 2, 2025
10f2bcc
Merge pull request #2443 from smanilov/patch-21
tshepang Jun 2, 2025
8a807cd
This commit adds a `toml` module that represents various subsections …
Shourya742 Jun 3, 2025
cc30123
move target selection to its separate module
Shourya742 Jun 3, 2025
0de60dd
Move all common types, macros and utility method to config/mod.rs
Shourya742 Jun 3, 2025
edada36
add config.rs with new module structuring
Shourya742 Jun 3, 2025
8f22a50
Use 4-core large disk runner for the alt job
Kobzol May 30, 2025
6ec7ec9
correct the imports in flags, tests and download
Shourya742 Jun 3, 2025
bf9c9d2
Preparing for merge from rustc
jieyouxu Jun 3, 2025
b65ceb2
Merge from rustc
jieyouxu Jun 3, 2025
033b829
Merge pull request #2451 from jieyouxu/rustc-pull
jieyouxu Jun 3, 2025
143d813
implement new `x` flag: `--skip-std-check-if-no-download-rustc`
onur-ozkan Jun 3, 2025
f1e6afd
bless tidy
onur-ozkan Jun 3, 2025
9e162fe
add change-entry
onur-ozkan Jun 3, 2025
674a435
update gpu offload build command
ZuseZ4 Jun 3, 2025
0ca1be9
document `skip-std-check-if-no-download-rustc` in rustc-dev-guide
onur-ozkan Jun 4, 2025
c843bec
update `skip_std_check_if_no_download_rustc` doc-comments
onur-ozkan Jun 4, 2025
ff00561
cleaned up some tests
Kivooeo Jun 3, 2025
38fd777
Update link src/doc/rustc-dev-guide/src/serialization.md
davidjsonn Jun 4, 2025
e42b9ee
Rollup merge of #140638 - RalfJung:unsafe-pinned-shared-aliased, r=wo…
matthiaskrgr Jun 5, 2025
4050766
Rollup merge of #141272 - Shourya742:2025-05-18-modularize-config-mod…
matthiaskrgr Jun 5, 2025
801fbde
Rollup merge of #141777 - Kobzol:dist-linux-alt-no-pgo-bolt, r=marcoieni
matthiaskrgr Jun 5, 2025
b457ce2
Rollup merge of #141870 - davidjsonn:master, r=fee1-dead,compiler-errors
matthiaskrgr Jun 5, 2025
bac6f19
Rollup merge of #141938 - ZuseZ4:offload-updates, r=Kobzol
matthiaskrgr Jun 5, 2025
68b311b
Rollup merge of #141962 - BoxyUwU:rdg-push, r=jieyouxu
matthiaskrgr Jun 5, 2025
ab1c2c9
Rollup merge of #141965 - Kivooeo:test-reform, r=jieyouxu
matthiaskrgr Jun 5, 2025
9bd566c
Rollup merge of #141970 - onur-ozkan:skip-stage1-std, r=Kobzol
matthiaskrgr Jun 5, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Trivial: dedup word
  • Loading branch information
smanilov authored Jun 2, 2025
commit 3b85b2f550ef5511aa86b07f28c759ea5a838693
2 changes: 1 addition & 1 deletion src/doc/rustc-dev-guide/src/coroutine-closures.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ See the "follow-up: when do..." section below for an elaborated answer. The full

When async closures are called with `AsyncFn`/`AsyncFnMut`, they return a coroutine that borrows from the closure. However, when they are called via `AsyncFnOnce`, we consume that closure, and cannot return a coroutine that borrows from data that is now dropped.

To work around around this limitation, we synthesize a separate by-move MIR body for calling `AsyncFnOnce::call_once` on a coroutine-closure that can be called by-ref.
To work around this limitation, we synthesize a separate by-move MIR body for calling `AsyncFnOnce::call_once` on a coroutine-closure that can be called by-ref.

This body operates identically to the "normal" coroutine returned from calling the coroutine-closure, except for the fact that it has a different set of upvars, since we must *move* the captures from the parent coroutine-closure into the child coroutine.

Expand Down