Skip to content

tests/ui/async-await/gat-is-send-across-await.rs: New regression test - #154179

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
Enselic:gat-is-send-across-await
Mar 24, 2026
Merged

tests/ui/async-await/gat-is-send-across-await.rs: New regression test#154179
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
Enselic:gat-is-send-across-await

Conversation

@Enselic

@EnselicEnselic commented Mar 21, 2026

Copy link
Copy Markdown
Member

The test began passing in nightly-2025-10-16. Probably by c50aebb (#144064) because it fixed two "does not live long enough" errors. The test fails to compile with nightly-2025-10-15 with such an error:

$ rustc +nightly-2025-10-15 --edition 2018 tests/ui/async-await/gat-is-send-across-await.rs
error: `impl G` does not live long enough
--> tests/ui/async-await/gat-is-send-across-await.rs:16:24
|
16 | let _: &dyn Send = &async move {
| ________________________^
17 | | let _gat = g.as_gat();
18 | | async{}.await
19 | | };
| |_____^

Closes#111852 since that's where the test comes from.

@rustbotrustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Mar 21, 2026
@rustbot

Copy link
Copy Markdown
Collaborator

r? @petrochenkov

rustbot has assigned @petrochenkov.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: compiler
  • compiler expanded to 69 candidates
  • Random selection from 15 candidates

@rust-log-analyzer

This comment has been minimized.

The test began passing in `nightly-2025-10-16`. Probably by c50aebb
because it fixed two "does not live long enough" errors. The test fails
to compile with `nightly-2025-10-15` with such an error:
$ rustc +nightly-2025-10-15 --edition 2018 tests/ui/async-await/gat-is-send-across-await.rs
error: `impl G` does not live long enough
--> tests/ui/async-await/gat-is-send-across-await.rs:16:24
|
16 | let _: &dyn Send = &async move {
| ________________________^
17 | | let _gat = g.as_gat();
18 | | async{}.await
19 | | };
| |_____^
@petrochenkov

Copy link
Copy Markdown
Contributor

@bors r+ rollup

@rust-bors

rust-borsBot commented Mar 23, 2026

Copy link
Copy Markdown
Contributor

📌 Commit aed54f2 has been approved by petrochenkov

It is now in the queue for this repository.

@rust-borsrust-borsBot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Mar 23, 2026
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Mar 23, 2026
…r=petrochenkov
tests/ui/async-await/gat-is-send-across-await.rs: New regression test
The test began passing in `nightly-2025-10-16`. Probably by c50aebb (rust-lang#144064) because it fixed two "does not live long enough" errors. The test fails to compile with `nightly-2025-10-15` with such an error:
$ rustc +nightly-2025-10-15 --edition 2018 tests/ui/async-await/gat-is-send-across-await.rs
error: `impl G` does not live long enough
--> tests/ui/async-await/gat-is-send-across-await.rs:16:24
|
16 | let _: &dyn Send = &async move {
| ________________________^
17 | | let _gat = g.as_gat();
18 | | async{}.await
19 | | };
| |_____^
Closesrust-lang#111852 since that's where the test comes from.
This was referenced Mar 23, 2026
rust-borsBot pushed a commit that referenced this pull request Mar 23, 2026
…uwer
Rollup of 8 pull requests
Successful merges:
- #122668 (Add APIs for dealing with titlecase)
- #153041 (Remove `ATTRIBUTE_ORDER`)
- #153912 (Avoid prematurely choosing a glob import)
- #154093 (const validity checking: do not recurse to references inside MaybeDangling)
- #154257 (Revert eagerly normalize in generalize)
- #154179 (tests/ui/async-await/gat-is-send-across-await.rs: New regression test)
- #154224 (Remove more `BuiltinLintDiag` variants)
- #154245 (Allow applying autodiff macros to trait functions.)
@rust-bors
rust-borsBot merged commit e158c29 into rust-lang:mainMar 24, 2026
11 checks passed
@rustbotrustbot added this to the 1.96.0 milestone Mar 24, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

error: X does not live long enough doesn't provide enough context

4 participants

@Enselic@rustbot@rust-log-analyzer@petrochenkov