diff options
| author | Dan Robertson <dan@dlrobertson.com> | 2019-01-03 15:51:50 +0000 |
|---|---|---|
| committer | Dan Robertson <dan@dlrobertson.com> | 2019-01-03 15:51:50 +0000 |
| commit | 917985e7fe7721c43bd00c847b69828119b246a2 (patch) | |
| tree | f7f874f4d10365f6c2dd27a3aa7be9b67e1e9a14 /src/libcore | |
| parent | cae164753f557f668cb75610abda4f790981e5e6 (diff) | |
| download | rust-917985e7fe7721c43bd00c847b69828119b246a2.tar.gz rust-917985e7fe7721c43bd00c847b69828119b246a2.zip | |
VaList::copy should not require a mutable ref
VaList::copy does not need to take a mutable reference. The va_copy intrinsic takes a immutable reference.
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/ffi.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/ffi.rs b/src/libcore/ffi.rs index 899fae90946..0717a88b6b8 100644 --- a/src/libcore/ffi.rs +++ b/src/libcore/ffi.rs @@ -186,7 +186,7 @@ impl<'a> VaList<'a> { reason = "the `c_variadic` feature has not been properly tested on \ all supported platforms", issue = "27745")] - pub unsafe fn copy<F, R>(&mut self, f: F) -> R + pub unsafe fn copy<F, R>(&self, f: F) -> R where F: for<'copy> FnOnce(VaList<'copy>) -> R { #[cfg(any(all(not(target_arch = "aarch64"), not(target_arch = "powerpc"), not(target_arch = "x86_64")), |
