From 87374d89e07c5c5d99895848ca8986fc7fd416bd Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Mon, 19 Jun 2023 14:03:36 +0000 Subject: [PATCH] Rustup to rustc 1.72.0-nightly (2d0aa5768 2023-06-18) --- example/mini_core.rs | 4 +++- patches/stdlib-lock.toml | 11 +++++++++-- rust-toolchain | 2 +- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/example/mini_core.rs b/example/mini_core.rs index 79ca4c03985..9ecc4c5dd5b 100644 --- a/example/mini_core.rs +++ b/example/mini_core.rs @@ -547,7 +547,9 @@ pub fn new(val: T) -> Box { impl Drop for Box { fn drop(&mut self) { // inner value is dropped by compiler - libc::free(self.0.pointer.0 as *mut u8); + unsafe { + libc::free(self.0.pointer.0 as *mut u8); + } } } diff --git a/patches/stdlib-lock.toml b/patches/stdlib-lock.toml index 1dde9e54d7e..ef2c35c77c5 100644 --- a/patches/stdlib-lock.toml +++ b/patches/stdlib-lock.toml @@ -34,6 +34,12 @@ dependencies = [ "rand_xorshift", ] +[[package]] +name = "allocator-api2" +version = "0.2.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56fc6cf8dc8c4158eed8649f9b8b0ea1518eb62b544fe9490d66fa0b349eafe9" + [[package]] name = "auxv" version = "0.3.3" @@ -145,10 +151,11 @@ dependencies = [ [[package]] name = "hashbrown" -version = "0.13.2" +version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "43a3c133739dddd0d2990f9a4bdf8eb4b21ef50e4851ca85ab661199821d510e" +checksum = "2c6201b9ff9fd90a5a3bac2e56a830d0caa509576f0e503818ee82c181b3437a" dependencies = [ + "allocator-api2", "compiler_builtins", "rustc-std-workspace-alloc", "rustc-std-workspace-core", diff --git a/rust-toolchain b/rust-toolchain index fa3a10b9adc..85406a3bead 100644 --- a/rust-toolchain +++ b/rust-toolchain @@ -1,3 +1,3 @@ [toolchain] -channel = "nightly-2023-06-15" +channel = "nightly-2023-06-19" components = ["rust-src", "rustc-dev", "llvm-tools"]