1
Fork 0

Apply cfg-bootstrap switch

This commit is contained in:
Mark Rousskov 2021-11-30 10:50:44 -05:00
parent e9bc25dc34
commit b221c877e8
16 changed files with 9 additions and 38 deletions

View file

@ -82,7 +82,7 @@ pub trait Generator<R = ()> {
/// `return` statement or implicitly as the last expression of a generator
/// literal. For example futures would use this as `Result<T, E>` as it
/// represents a completed future.
#[cfg_attr(not(bootstrap), lang = "generator_return")]
#[lang = "generator_return"]
type Return;
/// Resumes the execution of this generator.