std: use the c_int
from core::ffi
instead of libc
· model-checking/verify-rust-std@00d4964 (original) (raw)
Navigation Menu
- GitHub Copilot Write better code with AI
- GitHub Models New Manage and compare prompts
- GitHub Advanced Security Find and fix vulnerabilities
- Actions Automate any workflow
- Codespaces Instant dev environments
- Issues Plan and track work
- Code Review Manage code changes
- Discussions Collaborate outside of code
- Code Search Find more, search less
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Commit 00d4964
std: use the c_int
from core::ffi
instead of libc
File tree
1 file changed
lines changed
- std/src/sys/thread_local/destructors
1 file changed
lines changed
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -25,7 +25,7 @@ pub unsafe fn register(t: *mut u8, dtor: unsafe extern "C" fn(*mut u8)) { | ||
25 | 25 | #[cfi_encoding = "i"] |
26 | 26 | #[repr(transparent)] |
27 | 27 | #[allow(non_camel_case_types)] |
28 | -pub struct c_int(#[allow(dead_code)] pub libc::c_int); | |
28 | +pub struct c_int(#[allow(dead_code)] pub core::ffi::c_int); | |
29 | 29 | |
30 | 30 | extern "C" { |
31 | 31 | #[linkage = "extern_weak"] |