@@ -137,10 +137,12 @@ macro_rules! rust_target_base {
137
137
/// Rust stable 1.68
138
138
/// * `abi_efiapi` calling convention ([Tracking issue](https://github.com/rust-lang/rust/issues/65815))
139
139
=> Stable_1_68 => 1.68 ;
140
+ /// Rust stable 1.71
141
+ /// * `c_unwind` calling convention ([Tracking issue](https://github.com/rust-lang/rust/issues/74990))
142
+ => Stable_1_71 => 1.71 ;
140
143
/// Nightly rust
141
144
/// * `thiscall` calling convention ([Tracking issue](https://github.com/rust-lang/rust/issues/42202))
142
145
/// * `vectorcall` calling convention (no tracking issue)
143
- /// * `c_unwind` calling convention ([Tracking issue](https://github.com/rust-lang/rust/issues/74990))
144
146
=> Nightly => nightly;
145
147
) ;
146
148
}
@@ -150,7 +152,7 @@ rust_target_base!(rust_target_def);
150
152
rust_target_base ! ( rust_target_values_def) ;
151
153
152
154
/// Latest stable release of Rust
153
- pub const LATEST_STABLE_RUST : RustTarget = RustTarget :: Stable_1_68 ;
155
+ pub const LATEST_STABLE_RUST : RustTarget = RustTarget :: Stable_1_71 ;
154
156
155
157
/// Create RustFeatures struct definition, new(), and a getter for each field
156
158
macro_rules! rust_feature_def {
@@ -253,10 +255,12 @@ rust_feature_def!(
253
255
Stable_1_68 {
254
256
=> abi_efiapi;
255
257
}
258
+ Stable_1_71 {
259
+ => c_unwind_abi;
260
+ }
256
261
Nightly {
257
262
=> thiscall_abi;
258
263
=> vectorcall_abi;
259
- => c_unwind_abi;
260
264
}
261
265
) ;
262
266
@@ -296,6 +300,12 @@ mod test {
296
300
!f_1_21. thiscall_abi &&
297
301
!f_1_21. vectorcall_abi
298
302
) ;
303
+ let features = RustFeatures :: from ( RustTarget :: Stable_1_71 ) ;
304
+ assert ! (
305
+ features. c_unwind_abi &&
306
+ features. abi_efiapi &&
307
+ !features. thiscall_abi
308
+ ) ;
299
309
let f_nightly = RustFeatures :: from ( RustTarget :: Nightly ) ;
300
310
assert ! (
301
311
f_nightly. static_lifetime_elision &&
@@ -306,8 +316,7 @@ mod test {
306
316
f_nightly. maybe_uninit &&
307
317
f_nightly. repr_align &&
308
318
f_nightly. thiscall_abi &&
309
- f_nightly. vectorcall_abi &&
310
- f_nightly. c_unwind_abi
319
+ f_nightly. vectorcall_abi
311
320
) ;
312
321
}
313
322
@@ -324,6 +333,7 @@ mod test {
324
333
test_target ( "1.19" , RustTarget :: Stable_1_19 ) ;
325
334
test_target ( "1.21" , RustTarget :: Stable_1_21 ) ;
326
335
test_target ( "1.25" , RustTarget :: Stable_1_25 ) ;
336
+ test_target ( "1.71" , RustTarget :: Stable_1_71 ) ;
327
337
test_target ( "nightly" , RustTarget :: Nightly ) ;
328
338
}
329
339
}
0 commit comments