Skip to content

Commit 887dc73

Browse files
committed
Update the help message for --rust-target
1 parent a8a6057 commit 887dc73

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

bindgen/features.rs

-4
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,6 @@ macro_rules! define_rust_targets {
120120
}
121121
}
122122

123-
#[cfg(feature = "__cli")]
124-
/// Strings of allowed `RustTarget` values
125-
pub(crate) const RUST_TARGET_STRINGS: &[&str] = &[$(concat!("1.", stringify!($minor)),)*];
126-
127123
#[derive(Debug, Copy, Clone, Eq, PartialEq, Hash)]
128124
pub(crate) struct RustFeatures {
129125
$($(pub(crate) $feature: bool,)*)*

bindgen/options/cli.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use crate::{
33
callbacks::{
44
AttributeInfo, DeriveInfo, ItemInfo, ParseCallbacks, TypeKind,
55
},
6-
features::RUST_TARGET_STRINGS,
6+
features::EARLIEST_STABLE_RUST,
77
regex_set::RegexSet,
88
Abi, AliasVariation, Builder, CodegenConfig, EnumVariation,
99
FieldVisibilityKind, Formatter, MacroTypeVariation, NonCopyUnionStyle,
@@ -21,8 +21,7 @@ use std::{fs::File, process::exit};
2121

2222
fn rust_target_help() -> String {
2323
format!(
24-
"Version of the Rust compiler to target. Valid options are: {:?}. Defaults to {}.",
25-
RUST_TARGET_STRINGS,
24+
"Version of the Rust compiler to target. Any Rust version after {EARLIEST_STABLE_RUST} is supported. Defaults to {}.",
2625
RustTarget::default()
2726
)
2827
}

0 commit comments

Comments
 (0)