-Ctarget-feature is not unsafe (any more)

This commit is contained in:
Ralf Jung
2026-08-03 19:11:14 +02:00
parent baf1f7cc4f
commit 6bc1b1b1b7

View File

@@ -2335,10 +2335,12 @@ options! {
parse_symbol_mangling_version, [TRACKED],
"which mangling version to use for symbol names ('legacy', 'v0' (default), or 'hashed')"),
target_cpu: Option<String> = (None, parse_opt_string, [TRACKED] { TARGET_MODIFIER: TargetCpu },
"select target processor (`rustc --print target-cpus` for details)"),
"select target processor (`rustc --print target-cpus` for details) \
The resulting binary must only be executed on CPUs that have all the features \
of the given CPU."),
target_feature: String = (String::new(), parse_target_feature, [TRACKED],
"target specific attributes. (`rustc --print target-features` for details). \
This feature is unsafe."),
"target-specific attributes (`rustc --print target-features` for details). \
The resulting binary must only be executed on CPUs that have all the given features."),
unsafe_allow_abi_mismatch: Vec<String> = (Vec::new(), parse_comma_list, [UNTRACKED],
"Allow incompatible target modifiers in dependency crates (comma separated list)"),
// tidy-alphabetical-end