Skip to content

Commit 20645ca

Browse files
Add generator lang-item
1 parent 64b245c commit 20645ca

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/ops/generator.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ pub trait Generator<R = ()> {
8282
/// `return` statement or implicitly as the last expression of a generator
8383
/// literal. For example futures would use this as `Result<T, E>` as it
8484
/// represents a completed future.
85+
#[cfg_attr(not(bootstrap), lang = "generator_return")]
8586
type Return;
8687

8788
/// Resumes the execution of this generator.

0 commit comments

Comments
 (0)