summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poveda <christian.poveda@ferrous-systems.com>2022-09-22 11:13:50 -0500
committerEmilio Cobos Álvarez <emilio@crisal.io>2022-09-22 21:18:25 -1000
commit0f3b8a840c4456d1db6d005cfdf52c0f6b9dcd81 (patch)
treeb1972c1d5880a8287d63824610f86f0a227b11a1
parent995943ce06b0b8d59ceeb056844e474ee0ae644e (diff)
update to rust 1.64
-rw-r--r--src/features.rs8
-rw-r--r--tests/expectations/tests/core_ffi_c.rs1
-rw-r--r--tests/headers/core_ffi_c.h2
3 files changed, 7 insertions, 4 deletions
diff --git a/src/features.rs b/src/features.rs
index f18ffa88..bb836ce8 100644
--- a/src/features.rs
+++ b/src/features.rs
@@ -127,10 +127,12 @@ macro_rules! rust_target_base {
/// Rust stable 1.47
/// * `larger_arrays` ([Tracking issue](https://github.com/rust-lang/rust/pull/74060))
=> Stable_1_47 => 1.47;
+ /// Rust stable 1.64
+ /// * `core_ffi_c` ([Tracking issue](https://github.com/rust-lang/rust/issues/94501))
+ => Stable_1_64 => 1.64;
/// Nightly rust
/// * `thiscall` calling convention ([Tracking issue](https://github.com/rust-lang/rust/issues/42202))
/// * `vectorcall` calling convention (no tracking issue)
- /// * `core_ffi_c` ([Tracking issue](https://github.com/rust-lang/rust/issues/94501))
=> Nightly => nightly;
);
}
@@ -234,10 +236,12 @@ rust_feature_def!(
Stable_1_47 {
=> larger_arrays;
}
+ Stable_1_64 {
+ => core_ffi_c;
+ }
Nightly {
=> thiscall_abi;
=> vectorcall_abi;
- => core_ffi_c;
}
);
diff --git a/tests/expectations/tests/core_ffi_c.rs b/tests/expectations/tests/core_ffi_c.rs
index 4a74c839..7e138a89 100644
--- a/tests/expectations/tests/core_ffi_c.rs
+++ b/tests/expectations/tests/core_ffi_c.rs
@@ -4,7 +4,6 @@
non_camel_case_types,
non_upper_case_globals
)]
-#![cfg(feature = "nightly")]
pub type c_char = ::core::ffi::c_char;
pub type c_double = ::core::ffi::c_double;
diff --git a/tests/headers/core_ffi_c.h b/tests/headers/core_ffi_c.h
index 06623138..6df1e2f8 100644
--- a/tests/headers/core_ffi_c.h
+++ b/tests/headers/core_ffi_c.h
@@ -1,4 +1,4 @@
-// bindgen-flags: --rust-target nightly --raw-line '#![cfg(feature = "nightly")]' --use-core --no-convert-floats
+// bindgen-flags: --use-core --rust-target 1.64 --no-convert-floats
typedef char c_char;
typedef double c_double;
typedef float c_float;