Update to Rust 1.40.0. Closes #253
* Update mem::uninitialized to MaybeUninit * Update to Rust version 1.40 in AppVeyor * Update readme for Rust version requirement
This commit is contained in:
parent
afa100313c
commit
8502c031f8
|
@ -66,7 +66,7 @@ The Visual Studio 2017 Redistributable is required to run these builds.
|
|||
|
||||
## Building
|
||||
|
||||
Requires Rust stable version 1.38.0 or newer to build.
|
||||
Requires Rust stable version 1.40.0 or newer to build.
|
||||
|
||||
Compile and run:
|
||||
```bash
|
||||
|
|
|
@ -21,7 +21,7 @@ build_script:
|
|||
|
||||
appveyor AddMessage "Platform rust: %RUST_INSTALL%"
|
||||
|
||||
appveyor DownloadFile "https://static.rust-lang.org/dist/rust-1.38.0-%RUST_INSTALL%.exe" -FileName rust-install.exe
|
||||
appveyor DownloadFile "https://static.rust-lang.org/dist/rust-1.40.0-%RUST_INSTALL%.exe" -FileName rust-install.exe
|
||||
|
||||
"./rust-install.exe" /VERYSILENT /NORESTART /DIR="C:\Rust\"
|
||||
|
||||
|
|
|
@ -481,7 +481,7 @@ impl ComponentMem {
|
|||
component_size: mem::size_of::<T>(),
|
||||
drop_func: Box::new(|data| {
|
||||
unsafe {
|
||||
let mut val: T = mem::uninitialized();
|
||||
let mut val: T = mem::MaybeUninit::uninit().assume_init();
|
||||
ptr::copy(data as *mut T, &mut val, 1);
|
||||
mem::drop(val);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue