summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Brandt <johnb0@outlook.com>2019-12-19 11:26:23 -0700
committerEmilio Cobos Álvarez <emilio@crisal.io>2019-12-20 03:09:26 +0100
commit899f5992c78e461c22e904f3ecb8aa2d6ab1c28b (patch)
treebea1315d1ae631477307aed6eb296e6ea40fdb3e
parentd4e4a996e84a52b13bd4e6de52e08e34710dbe19 (diff)
Update latest stable rust to 1.40 and give non_exhaustive feature
-rw-r--r--src/features.rs10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/features.rs b/src/features.rs
index c130dd6f..4ec9dee7 100644
--- a/src/features.rs
+++ b/src/features.rs
@@ -120,9 +120,11 @@ macro_rules! rust_target_base {
/// Rust stable 1.36
/// * `MaybeUninit` instead of `mem::uninitialized()` ([PR](https://github.com/rust-lang/rust/pull/60445))
=> Stable_1_36 => 1.36;
+ /// Rust stable 1.40
+ /// * `non_exhaustive` enums/structs ([Tracking issue](https://github.com/rust-lang/rust/issues/44109))
+ => Stable_1_40 => 1.40;
/// Nightly rust
/// * `thiscall` calling convention ([Tracking issue](https://github.com/rust-lang/rust/issues/42202))
- /// * `non_exhaustive` enums/structs ([Tracking issue](https://github.com/rust-lang/rust/issues/44109))
=> Nightly => nightly;
);
}
@@ -132,7 +134,7 @@ rust_target_base!(rust_target_def);
rust_target_base!(rust_target_values_def);
/// Latest stable release of Rust
-pub const LATEST_STABLE_RUST: RustTarget = RustTarget::Stable_1_36;
+pub const LATEST_STABLE_RUST: RustTarget = RustTarget::Stable_1_40;
/// Create RustFeatures struct definition, new(), and a getter for each field
macro_rules! rust_feature_def {
@@ -217,9 +219,11 @@ rust_feature_def!(
Stable_1_36 {
=> maybe_uninit;
}
+ Stable_1_40 {
+ => non_exhaustive;
+ }
Nightly {
=> thiscall_abi;
- => non_exhaustive;
}
);