Skip to content

Commit

Permalink
detect: Update comments about libc
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Nov 20, 2024
1 parent df05e62 commit dbd9c12
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/imp/detect/aarch64_aa64reg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ mod imp {

use super::AA64Reg;

// core::ffi::c_* (except c_void) requires Rust 1.64, libc 1.0 plans to require Rust 1.63
// core::ffi::c_* (except c_void) requires Rust 1.64, libc requires Rust 1.63
#[allow(non_camel_case_types)]
pub(super) mod ffi {
pub(crate) use super::super::c_types::{c_char, c_int, c_size_t, c_void};
Expand Down Expand Up @@ -231,7 +231,7 @@ mod imp {

use super::AA64Reg;

// core::ffi::c_* (except c_void) requires Rust 1.64, libc 1.0 plans to require Rust 1.63
// core::ffi::c_* (except c_void) requires Rust 1.64, libc requires Rust 1.63
#[allow(non_camel_case_types)]
pub(super) mod ffi {
pub(crate) use super::super::c_types::{c_int, c_size_t, c_uint, c_void};
Expand Down
2 changes: 1 addition & 1 deletion src/imp/detect/aarch64_apple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ include!("common.rs");

use core::{mem, ptr};

// core::ffi::c_* (except c_void) requires Rust 1.64, libc 1.0 plans to require Rust 1.63
// core::ffi::c_* (except c_void) requires Rust 1.64, libc requires Rust 1.63
#[allow(non_camel_case_types)]
mod ffi {
pub(crate) use super::c_types::{c_char, c_int, c_size_t, c_void};
Expand Down
2 changes: 1 addition & 1 deletion src/imp/detect/aarch64_illumos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Run-time detection on AArch64 illumos is currently disabled by default as AArch6

include!("common.rs");

// core::ffi::c_* (except c_void) requires Rust 1.64, libc 1.0 plans to require Rust 1.63
// core::ffi::c_* (except c_void) requires Rust 1.64, libc requires Rust 1.63
#[allow(non_camel_case_types)]
mod ffi {
pub(crate) use super::c_types::c_uint;
Expand Down
4 changes: 2 additions & 2 deletions src/imp/detect/auxv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ include!("common.rs");
use os::ffi;
#[cfg(any(target_os = "linux", target_os = "android"))]
mod os {
// core::ffi::c_* (except c_void) requires Rust 1.64, libc 1.0 plans to require Rust 1.63
// core::ffi::c_* (except c_void) requires Rust 1.64, libc requires Rust 1.63
#[cfg_attr(test, allow(dead_code))]
pub(super) mod ffi {
pub(crate) use super::super::c_types::c_ulong;
Expand Down Expand Up @@ -292,7 +292,7 @@ mod os {
mod os {
use core::mem;

// core::ffi::c_* (except c_void) requires Rust 1.64, libc 1.0 plans to require Rust 1.63
// core::ffi::c_* (except c_void) requires Rust 1.64, libc requires Rust 1.63
#[cfg_attr(test, allow(dead_code))]
pub(super) mod ffi {
#[allow(unused_imports)]
Expand Down
2 changes: 1 addition & 1 deletion src/imp/detect/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ flags! {
HAS_VMOVDQA_ATOMIC(2, has_vmovdqa_atomic, "vmovdqa-atomic", any(/* always false */)),
}

// core::ffi::c_* (except c_void) requires Rust 1.64, libc 1.0 plans to require Rust 1.63
// core::ffi::c_* (except c_void) requires Rust 1.64, libc requires Rust 1.63
#[cfg(not(any(target_arch = "x86", target_arch = "x86_64")))]
#[cfg(not(windows))]
#[allow(dead_code, unused_macros, non_camel_case_types)]
Expand Down
2 changes: 1 addition & 1 deletion src/imp/detect/riscv_linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ include!("common.rs");

use core::ptr;

// core::ffi::c_* (except c_void) requires Rust 1.64, libc 1.0 plans to require Rust 1.63
// core::ffi::c_* (except c_void) requires Rust 1.64, libc requires Rust 1.63
#[allow(non_camel_case_types, non_upper_case_globals)]
mod ffi {
pub(crate) use super::c_types::{c_long, c_size_t, c_uint, c_ulong};
Expand Down

0 comments on commit dbd9c12

Please sign in to comment.