Apply cfg-bootstrap switch
This commit is contained in:
parent
e9bc25dc34
commit
b221c877e8
16 changed files with 9 additions and 38 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue