File tree 2 files changed +10
-10
lines changed
2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -1204,14 +1204,14 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
1204
1204
) ?;
1205
1205
}
1206
1206
"freebsd" => {
1207
- this . write_int ( ino , & this . project_field_named ( & entry_place , "d_fileno" ) ? ) ? ;
1208
- // `d_off` only exists on FreeBSD 12+, but we support v11 as well.
1209
- // `libc` uses a build script to determine which version of the API to use,
1210
- // and cross-builds always end up using v11.
1211
- // To support both v11 and v12+, we dynamically check whether the field exists.
1212
- if this . projectable_has_field ( & entry_place , "d_off" ) {
1213
- this . write_int ( 0 , & this . project_field_named ( & entry_place, "d_off" ) ? ) ? ;
1214
- }
1207
+ # [ rustfmt :: skip ]
1208
+ this . write_int_fields_named (
1209
+ & [
1210
+ ( "d_fileno" , ino . into ( ) ) ,
1211
+ ( "d_off" , 0 ) ,
1212
+ ] ,
1213
+ & entry_place,
1214
+ ) ? ;
1215
1215
}
1216
1216
_ => unreachable ! ( ) ,
1217
1217
}
Original file line number Diff line number Diff line change @@ -119,9 +119,9 @@ dependencies = [
119
119
120
120
[[package ]]
121
121
name = " libc"
122
- version = " 0.2.155 "
122
+ version = " 0.2.158 "
123
123
source = " registry+https://github.com/rust-lang/crates.io-index"
124
- checksum = " 97b3888a4aecf77e811145cadf6eef5901f4782c53886191b2f693f24761847c "
124
+ checksum = " d8adc4bb1803a324070e64a98ae98f38934d91957a99cfb3a43dcbc01bc56439 "
125
125
126
126
[[package ]]
127
127
name = " linux-raw-sys"
You can’t perform that action at this time.
0 commit comments