Repository navigation
Introduce -Z pack-coroutine-layout flag - #159795
Conversation
|
Some changes occurred to MIR optimizations cc @rust-lang/wg-mir-opt These commits modify the If this was unintentional then you should revert the changes before this PR is merged. |
This comment has been minimized.
This comment has been minimized.
5ab688f to
ce492c5
Compare
This comment has been minimized.
This comment has been minimized.
|
The second commit is not what I'd describe as cosmetic. It contains quite a lot of behaviour changes that should stay in the main PR. |
This comment has been minimized.
This comment has been minimized.
ce492c5 to
f850e99
Compare
This comment has been minimized.
This comment has been minimized.
|
Sorry for the late reply. I wasn't completely splitting this commit in a proper way. This time it should stay very cosmetic. |
-Z coroutine-layout flag-Z pack-coroutine-layout flag
f850e99 to
81b4856
Compare
This comment has been minimized.
This comment has been minimized.
81b4856 to
2b36027
Compare
This comment has been minimized.
This comment has been minimized.
2b36027 to
26ec5d6
Compare
This comment has been minimized.
This comment has been minimized.
|
r? tmandry |
|
Reminder, once the PR becomes ready for a review, use |
26ec5d6 to
6d7c2f7
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
|
@rustbot ready |
We will now give users two options, to go with the traditional coroutine layout as of Dec 2025 or the new proposed compact layout. The compact layout will be documented in the RelocateUpvar MIR pass later. Co-authored-by: Dario Nieuwenhuis <dirbaio@dirbaio.net> Signed-off-by: Xiangfei Ding <dingxiangfei2009@protonmail.ch>
6d7c2f7 to
f499038
Compare
|
@bors r+ rollup |
… r=tmandry Introduce `-Z pack-coroutine-layout` flag This is still mostly cosmetic, but more stuff is coming over from rust-lang#135527. Only the tip of the branch matters, the other commit will be shipped from another PR. It will go away after a rebase, hopefully. r? @cjgillot
Rollup of 16 pull requests Successful merges: - #166037 (reflection: enable tool attributes to be reflectable) - #165008 (Support `NonNull` pointers as `asm!` input operands) - #165465 (Use `emit_ptr_va_arg` for `va_arg` on M68k) - #166042 (Fix out of scope method suggestion) - #166090 (bootstrap: rebuild LLD when LLVM changes) - #159795 (Introduce `-Z pack-coroutine-layout` flag) - #163556 (arm: only f32 and f64 are valid HFA bases) - #164665 (Add Reference annotations for inline assembly) - #165725 (change target modifier errors to use the diagnostic APIs instead of structs) - #165912 (simplify `fluent_value_from_str_list_sep_by_and`) - #165982 (compiler: Stop special-casing `report_in_external_macro` in `declare_tool_lint!`) - #166006 (Detect method shadowed by another when accessing a field or calling method that isn't found in method chain) - #166083 (Record seeds in the appropriate order) - #166104 (abi/bad-custom.rs: make test run on all editions) - #166124 (platform-support: add amaanq as powerpc64-unknown-linux-gnuelfv2 maintainer) - #166127 (Add tests from failed attempt at implementing `hir::Param` move) Failed merges: - #165094 (reflection: doc attributes from adts, fields, and variants)
…uwer Rollup of 15 pull requests Successful merges: - #166037 (reflection: enable tool attributes to be reflectable) - #165465 (Use `emit_ptr_va_arg` for `va_arg` on M68k) - #166042 (Fix out of scope method suggestion) - #166090 (bootstrap: rebuild LLD when LLVM changes) - #159795 (Introduce `-Z pack-coroutine-layout` flag) - #163556 (arm: only f32 and f64 are valid HFA bases) - #164665 (Add Reference annotations for inline assembly) - #165725 (change target modifier errors to use the diagnostic APIs instead of structs) - #165912 (simplify `fluent_value_from_str_list_sep_by_and`) - #165982 (compiler: Stop special-casing `report_in_external_macro` in `declare_tool_lint!`) - #166006 (Detect method shadowed by another when accessing a field or calling method that isn't found in method chain) - #166083 (Record seeds in the appropriate order) - #166104 (abi/bad-custom.rs: make test run on all editions) - #166124 (platform-support: add amaanq as powerpc64-unknown-linux-gnuelfv2 maintainer) - #166127 (Add tests from failed attempt at implementing `hir::Param` move) Failed merges: - #165094 (reflection: doc attributes from adts, fields, and variants)
Rollup merge of #159795 - dingxiangfei2009:coro-layout-flag, r=tmandry Introduce `-Z pack-coroutine-layout` flag This is still mostly cosmetic, but more stuff is coming over from #135527. Only the tip of the branch matters, the other commit will be shipped from another PR. It will go away after a rebase, hopefully. r? @cjgillot
…uwer Rollup of 15 pull requests Successful merges: - rust-lang/rust#166037 (reflection: enable tool attributes to be reflectable) - rust-lang/rust#165465 (Use `emit_ptr_va_arg` for `va_arg` on M68k) - rust-lang/rust#166042 (Fix out of scope method suggestion) - rust-lang/rust#166090 (bootstrap: rebuild LLD when LLVM changes) - rust-lang/rust#159795 (Introduce `-Z pack-coroutine-layout` flag) - rust-lang/rust#163556 (arm: only f32 and f64 are valid HFA bases) - rust-lang/rust#164665 (Add Reference annotations for inline assembly) - rust-lang/rust#165725 (change target modifier errors to use the diagnostic APIs instead of structs) - rust-lang/rust#165912 (simplify `fluent_value_from_str_list_sep_by_and`) - rust-lang/rust#165982 (compiler: Stop special-casing `report_in_external_macro` in `declare_tool_lint!`) - rust-lang/rust#166006 (Detect method shadowed by another when accessing a field or calling method that isn't found in method chain) - rust-lang/rust#166083 (Record seeds in the appropriate order) - rust-lang/rust#166104 (abi/bad-custom.rs: make test run on all editions) - rust-lang/rust#166124 (platform-support: add amaanq as powerpc64-unknown-linux-gnuelfv2 maintainer) - rust-lang/rust#166127 (Add tests from failed attempt at implementing `hir::Param` move) Failed merges: - rust-lang/rust#165094 (reflection: doc attributes from adts, fields, and variants)
View all comments
This is still mostly cosmetic, but more stuff is coming over from #135527.
Only the tip of the branch matters, the other commit will be shipped from another PR. It will go away after a rebase, hopefully.
r? @cjgillot