Skip to content

Commit 9eb753f

Browse files
committed
Update to bindgen 0.72.
1 parent dd7e7e2 commit 9eb753f

File tree

361 files changed

+546
-546
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

361 files changed

+546
-546
lines changed

gen/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ edition = "2021"
55
publish = false
66

77
[dependencies]
8-
bindgen = { version = "0.71.1", default-features = false }
8+
bindgen = { version = "0.72.1", default-features = false }
99
tempfile = "3.16.0"

src/aarch64/bootparam.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
/* automatically generated by rust-bindgen 0.71.1 */
1+
/* automatically generated by rust-bindgen 0.72.1 */
22

33

src/aarch64/btrfs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* automatically generated by rust-bindgen 0.71.1 */
1+
/* automatically generated by rust-bindgen 0.72.1 */
22

33
pub type __s8 = crate::ctypes::c_schar;
44
pub type __u8 = crate::ctypes::c_uchar;

src/aarch64/elf_uapi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* automatically generated by rust-bindgen 0.71.1 */
1+
/* automatically generated by rust-bindgen 0.72.1 */
22

33
pub type __s8 = crate::ctypes::c_schar;
44
pub type __u8 = crate::ctypes::c_uchar;

src/aarch64/errno.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* automatically generated by rust-bindgen 0.71.1 */
1+
/* automatically generated by rust-bindgen 0.72.1 */
22

33
pub const EPERM: u32 = 1;
44
pub const ENOENT: u32 = 2;

src/aarch64/general.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* automatically generated by rust-bindgen 0.71.1 */
1+
/* automatically generated by rust-bindgen 0.72.1 */
22

33
pub type __s8 = crate::ctypes::c_schar;
44
pub type __u8 = crate::ctypes::c_uchar;
@@ -2937,7 +2937,7 @@ Self::extract_bit(byte, index)
29372937
pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool {
29382938
debug_assert!(index / 8 < core::mem::size_of::<Storage>());
29392939
let byte_index = index / 8;
2940-
let byte = *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize);
2940+
let byte = unsafe { *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize) };
29412941
Self::extract_bit(byte, index)
29422942
}
29432943
#[inline]
@@ -2961,8 +2961,8 @@ let byte = &mut self.storage.as_mut()[byte_index];
29612961
pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) {
29622962
debug_assert!(index / 8 < core::mem::size_of::<Storage>());
29632963
let byte_index = index / 8;
2964-
let byte = (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize);
2965-
*byte = Self::change_bit(*byte, index, val);
2964+
let byte = unsafe { (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize) };
2965+
unsafe { *byte = Self::change_bit(*byte, index, val) };
29662966
}
29672967
#[inline]
29682968
pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 {
@@ -2985,7 +2985,7 @@ debug_assert!(bit_offset / 8 < core::mem::size_of::<Storage>());
29852985
debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::<Storage>());
29862986
let mut val = 0;
29872987
for i in 0..(bit_width as usize) {
2988-
if Self::raw_get_bit(this, i + bit_offset) {
2988+
if unsafe { Self::raw_get_bit(this, i + bit_offset) } {
29892989
let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i };
29902990
val |= 1 << index;
29912991
}
@@ -3013,7 +3013,7 @@ for i in 0..(bit_width as usize) {
30133013
let mask = 1 << i;
30143014
let val_bit_is_set = val & mask == mask;
30153015
let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i };
3016-
Self::raw_set_bit(this, index + bit_offset, val_bit_is_set);
3016+
unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) };
30173017
}
30183018
}
30193019
}

src/aarch64/if_arp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* automatically generated by rust-bindgen 0.71.1 */
1+
/* automatically generated by rust-bindgen 0.72.1 */
22

33
pub type __s8 = crate::ctypes::c_schar;
44
pub type __u8 = crate::ctypes::c_uchar;

src/aarch64/if_ether.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* automatically generated by rust-bindgen 0.71.1 */
1+
/* automatically generated by rust-bindgen 0.72.1 */
22

33
pub type __s8 = crate::ctypes::c_schar;
44
pub type __u8 = crate::ctypes::c_uchar;

src/aarch64/if_packet.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* automatically generated by rust-bindgen 0.71.1 */
1+
/* automatically generated by rust-bindgen 0.72.1 */
22

33
pub type __s8 = crate::ctypes::c_schar;
44
pub type __u8 = crate::ctypes::c_uchar;

src/aarch64/image.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* automatically generated by rust-bindgen 0.71.1 */
1+
/* automatically generated by rust-bindgen 0.72.1 */
22

33
pub type __s8 = crate::ctypes::c_schar;
44
pub type __u8 = crate::ctypes::c_uchar;

0 commit comments

Comments
 (0)