Skip to content

Commit 526e822

Browse files
committed
use latest version of libc, remove obsolete code
1 parent 525b6cb commit 526e822

File tree

2 files changed

+1
-20
lines changed

2 files changed

+1
-20
lines changed

src/libunwind/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ doc = false
1717

1818
[dependencies]
1919
core = { path = "../libcore" }
20-
libc = { version = "0.2.43", features = ['rustc-dep-of-std'], default-features = false }
20+
libc = { version = "0.2.65", features = ['rustc-dep-of-std'], default-features = false }
2121
compiler_builtins = "0.1.0"
2222
cfg-if = "0.1.8"
2323

src/libunwind/libunwind.rs

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,7 @@
11
#![allow(nonstandard_style)]
22

3-
#[cfg(not(target_os = "hermit"))]
43
use libc::{c_int, c_void, uintptr_t};
54

6-
#[cfg(target_os = "hermit")]
7-
pub type c_int = i32;
8-
9-
#[cfg(target_os = "hermit")]
10-
pub type uintptr_t = usize;
11-
12-
#[cfg(target_os = "hermit")]
13-
#[repr(u8)]
14-
#[allow(missing_copy_implementations)]
15-
#[allow(missing_debug_implementations)]
16-
pub enum c_void {
17-
// Two dummy variants so the #[repr] attribute can be used.
18-
#[doc(hidden)]
19-
__variant1,
20-
#[doc(hidden)]
21-
__variant2,
22-
}
23-
245
#[repr(C)]
256
#[derive(Debug, Copy, Clone, PartialEq)]
267
pub enum _Unwind_Reason_Code {

0 commit comments

Comments
 (0)