Lines Matching refs:RustTarget
20 pub enum RustTarget {
29 impl Default for RustTarget {
31 fn default() -> RustTarget {
36 impl FromStr for RustTarget {
47 stringify!($value) => Ok(RustTarget::$release),
60 impl From<RustTarget> for String {
61 fn from(target: RustTarget) -> Self {
64 RustTarget::$release => stringify!($value),
137 pub const LATEST_STABLE_RUST: RustTarget = RustTarget::Stable_1_40;
169 impl From<RustTarget> for RustFeatures {
170 fn from(rust_target: RustTarget) -> Self {
174 if rust_target >= RustTarget::$rust_target {
232 let default_rust_target: RustTarget = Default::default(); in default()
244 let f_1_0 = RustFeatures::from(RustTarget::Stable_1_0); in target_features()
253 let f_1_21 = RustFeatures::from(RustTarget::Stable_1_21); in target_features()
262 let f_nightly = RustFeatures::from(RustTarget::Nightly); in target_features()
274 fn test_target(target_str: &str, target: RustTarget) { in test_target() argument
277 assert_eq!(target, RustTarget::from_str(target_str).unwrap()); in test_target()
282 test_target("1.0", RustTarget::Stable_1_0); in str_to_target()
283 test_target("1.19", RustTarget::Stable_1_19); in str_to_target()
284 test_target("1.21", RustTarget::Stable_1_21); in str_to_target()
285 test_target("1.25", RustTarget::Stable_1_25); in str_to_target()
286 test_target("nightly", RustTarget::Nightly); in str_to_target()