]> git.lizzy.rs Git - rust.git/commit
libcore: Fix `Sized` bounds on overloaded function traits.
authorAndrew Paseltiner <apaseltiner@gmail.com>
Fri, 5 Dec 2014 18:53:38 +0000 (13:53 -0500)
committerAndrew Paseltiner <apaseltiner@gmail.com>
Fri, 5 Dec 2014 19:04:57 +0000 (14:04 -0500)
commit600faba5bc0b0b8bfef048ca9e8698e5f8c157f0
tree3403e94541e4a46342744061416eae543f70b42d
parent4573da6f4ffb276c31773679fd19581fc15ded8f
libcore: Fix `Sized` bounds on overloaded function traits.

- Remove the `for Sized?` bound on `core::ops::FnOnce`, as it takes
  `self` by value and can never be implemented by an unsized type.
- Add a missing `Sized?` bound to the blanket `core::ops::FnMut` impl,
  as both `Fn` and `FnMut` are `for Sized?`.
src/libcore/ops.rs