Remove support for gen arg
This commit is contained in:
parent
93172045c8
commit
09a5d319ab
68 changed files with 106 additions and 508 deletions
|
|
@ -786,12 +786,12 @@ impl<T: ?Sized> AsMut<T> for Box<T> {
|
|||
}
|
||||
|
||||
#[unstable(feature = "generator_trait", issue = "43122")]
|
||||
impl<T, U> Generator<U> for Box<T>
|
||||
where T: Generator<U> + ?Sized
|
||||
impl<T> Generator for Box<T>
|
||||
where T: Generator + ?Sized
|
||||
{
|
||||
type Yield = T::Yield;
|
||||
type Return = T::Return;
|
||||
fn resume(&mut self, arg: U) -> State<Self::Yield, Self::Return> {
|
||||
(**self).resume(arg)
|
||||
fn resume(&mut self) -> State<Self::Yield, Self::Return> {
|
||||
(**self).resume()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue