Rollup merge of #57311 - dlrobertson:fix_valist_copy, r=KodrAus
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.
This commit is contained in:
commit
dfc1037757
1 changed files with 1 additions and 1 deletions
|
|
@ -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")),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue