We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c9d42c commit 8094e84Copy full SHA for 8094e84
compiler/rustc_target/src/spec/mod.rs
@@ -2608,6 +2608,9 @@ impl TargetOptions {
2608
self.features.split(',').any(|f| f.strip_prefix('+').is_some_and(|f| f == search_feature))
2609
}
2610
2611
+ /// We should try to minimize the number of negative features defined for any target
2612
+ /// because they often interact very poorly with how `-Ctarget-cpu` works.
2613
+ /// However, their mere existence is still a possibility, so!
2614
pub(crate) fn has_neg_feature(&self, search_feature: &str) -> bool {
2615
self.features.split(',').any(|f| f.strip_prefix('-').is_some_and(|f| f == search_feature))
2616
0 commit comments