Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upImmovable generators and unsafe block #47787
Comments
rozaliev
referenced this issue
Jan 26, 2018
Open
[async] allows unsafe functions to work without unsafe block #2
pietroalbini
added
C-enhancement
A-generators
labels
Jan 26, 2018
added a commit
to Zoxc/rust
that referenced
this issue
Mar 20, 2018
Zoxc
referenced this issue
Mar 20, 2018
Merged
Make resuming generators unsafe instead of the creation of immovable generators #49194
added a commit
to Zoxc/rust
that referenced
this issue
Mar 20, 2018
added a commit
to Zoxc/rust
that referenced
this issue
Mar 20, 2018
added a commit
to Zoxc/rust
that referenced
this issue
Mar 20, 2018
added a commit
to Zoxc/rust
that referenced
this issue
Mar 20, 2018
added a commit
to Zoxc/rust
that referenced
this issue
Mar 20, 2018
added a commit
to alexcrichton/rust
that referenced
this issue
Mar 23, 2018
added a commit
to kennytm/rust
that referenced
this issue
Mar 24, 2018
added a commit
to kennytm/rust
that referenced
this issue
Mar 24, 2018
bors
closed this
in
#49194
Mar 24, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
rozaliev commentedJan 26, 2018
Immovable generators require unsafe block, thus allowing every unsafe function inside generator to work. There is no way to say I want immovable generator, but its body should not be marked unsafe.
It can probably be fixed by adding new
ImmovableGeneratortrait and making creation of immovable generators safe.cc @Zoxc