File tree Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -547,7 +547,9 @@ impl<T> Box<T> {
547
547
impl < T : ?Sized , A > Drop for Box < T , A > {
548
548
fn drop ( & mut self ) {
549
549
// inner value is dropped by compiler
550
- libc:: free ( self . 0 . pointer . 0 as * mut u8 ) ;
550
+ unsafe {
551
+ libc:: free ( self . 0 . pointer . 0 as * mut u8 ) ;
552
+ }
551
553
}
552
554
}
553
555
Original file line number Diff line number Diff line change @@ -34,6 +34,12 @@ dependencies = [
34
34
" rand_xorshift" ,
35
35
]
36
36
37
+ [[package ]]
38
+ name = " allocator-api2"
39
+ version = " 0.2.15"
40
+ source = " registry+https://github.com/rust-lang/crates.io-index"
41
+ checksum = " 56fc6cf8dc8c4158eed8649f9b8b0ea1518eb62b544fe9490d66fa0b349eafe9"
42
+
37
43
[[package ]]
38
44
name = " auxv"
39
45
version = " 0.3.3"
@@ -145,10 +151,11 @@ dependencies = [
145
151
146
152
[[package ]]
147
153
name = " hashbrown"
148
- version = " 0.13.2 "
154
+ version = " 0.14.0 "
149
155
source = " registry+https://github.com/rust-lang/crates.io-index"
150
- checksum = " 43a3c133739dddd0d2990f9a4bdf8eb4b21ef50e4851ca85ab661199821d510e "
156
+ checksum = " 2c6201b9ff9fd90a5a3bac2e56a830d0caa509576f0e503818ee82c181b3437a "
151
157
dependencies = [
158
+ " allocator-api2" ,
152
159
" compiler_builtins" ,
153
160
" rustc-std-workspace-alloc" ,
154
161
" rustc-std-workspace-core" ,
Original file line number Diff line number Diff line change 1
1
[toolchain]
2
- channel = "nightly-2023-06-15 "
2
+ channel = "nightly-2023-06-19 "
3
3
components = ["rust-src", "rustc-dev", "llvm-tools"]
You can’t perform that action at this time.
0 commit comments