Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b3c1dcb

Browse files
authoredJun 13, 2024
Rollup merge of rust-lang#126360 - compiler-errors:uplift-structural-traits, r=lcnr
Uplift `structural_traits.rs` into the new trait solver Self-explanatory. I will leave some comments inline regarding design decisions.
2 parents bdb9aa2 + 78d94ee commit b3c1dcb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎core/src/ops/coroutine.rs

+2
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ pub trait Coroutine<R = ()> {
7676
/// values which are allowed to be returned each time a coroutine yields.
7777
/// For example an iterator-as-a-coroutine would likely have this type as
7878
/// `T`, the type being iterated over.
79+
#[cfg_attr(not(bootstrap), lang = "coroutine_yield")]
7980
type Yield;
8081

8182
/// The type of value this coroutine returns.
@@ -84,6 +85,7 @@ pub trait Coroutine<R = ()> {
8485
/// `return` statement or implicitly as the last expression of a coroutine
8586
/// literal. For example futures would use this as `Result<T, E>` as it
8687
/// represents a completed future.
88+
#[cfg_attr(not(bootstrap), lang = "coroutine_return")]
8789
type Return;
8890

8991
/// Resumes the execution of this coroutine.

0 commit comments

Comments
 (0)
Failed to load comments.