add known-bug test for coroutine 'static-yields-non-'static unsoundness (#144442)#156170
Open
inq wants to merge 1 commit intorust-lang:mainfrom
Open
add known-bug test for coroutine 'static-yields-non-'static unsoundness (#144442)#156170inq wants to merge 1 commit intorust-lang:mainfrom
inq wants to merge 1 commit intorust-lang:mainfrom
Conversation
Collaborator
|
r? @JohnTitor rustbot has assigned @JohnTitor. Use Why was this reviewer chosen?The reviewer was selected based on:
|
This comment has been minimized.
This comment has been minimized.
Member
|
Could you fix this? #156170 (comment) |
Coroutine variant of the closure / impl Fn 'static unsoundness family. References in PR description.
ec784e1 to
227a289
Compare
Contributor
Author
|
Oops sorry for this! Thank you! |
JohnTitor
approved these changes
May 6, 2026
Contributor
jhpratt
added a commit
to jhpratt/rust
that referenced
this pull request
May 6, 2026
…ohnTitor add known-bug test for coroutine 'static-yields-non-'static unsoundness (rust-lang#144442) Add a `known-bug` regression test for [rust-lang#144442 ("Unsoundness due to 'static coroutines that yield non-'static values").](rust-lang#144442) Existing known-bug tests: ``` - tests/ui/closures/static-closures-with-nonstatic-return.rs - tests/ui/implied-bounds/dyn-erasure-tait.rs - tests/ui/implied-bounds/dyn-erasure-no-tait.rs ``` Verified in Darwin: running the compiled binary segfaults on current main, so the bug is still present.
rust-bors Bot
pushed a commit
that referenced
this pull request
May 6, 2026
Rollup of 15 pull requests Successful merges: - #151122 (fix: more descriptive error message for enum to integer) - #155341 (generic_const_args: allow paths to non type consts) - #156062 (Added command-line argument support for `wasm32-wali-linux-musl`) - #156159 ([AIX] add -bdbg:namedsects:ss link arg) - #156174 (Wasm: remove implicit `__heap_base`/`__data_end` exports) - #156186 (fix: remap ci-llvm debug paths via `-ffile-prefix-map`) - #156193 (port `rustc_ast*` crates from `box_` to `deref_patterns`) - #156201 (Don't run ui-fulldeps tests twice in stage 1) - #155808 (Always use `ConstFn` context for `const` closures) - #156105 (interpret: correctly deal with repr(transparent) enums) - #156148 (Use `all_impls` instead of handrolling it) - #156156 (Adjust getMCSubtargetInfo signature for LLVM 23+) - #156170 (add known-bug test for coroutine 'static-yields-non-'static unsoundness (#144442)) - #156195 (Move tests codegen) - #156205 (move generalization test)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a
known-bugregression test for #144442 ("Unsoundness due to 'static coroutines that yield non-'static values").Existing known-bug tests:
Verified in Darwin: running the compiled binary segfaults on current main, so the bug is still present.