]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #24168 - kballard:clone-for-extern-c-unsafe-fns, r=alexcrichton
authorbors <bors@rust-lang.org>
Thu, 9 Apr 2015 04:56:23 +0000 (04:56 +0000)
committerbors <bors@rust-lang.org>
Thu, 9 Apr 2015 04:56:23 +0000 (04:56 +0000)
We only implemented Clone on `extern "Rust" fn`s (for up to 8
parameters). This didn't cover `extern "C"` or `unsafe` (or
`unsafe extern "C"`) `fn`s, but there's no reason why they shouldn't be
cloneable as well.

The new impls are marked unstable because the existing impl for `extern
"Rust" fn`s is.

Fixes #24161.


Trivial merge