Formatting
This commit is contained in:
parent
575f6098da
commit
a54c8003ab
2 changed files with 14 additions and 6 deletions
|
@ -1,6 +1,6 @@
|
|||
use crate::back::write::create_informational_target_machine;
|
||||
use crate::llvm;
|
||||
use crate::errors::UnknownCTargetFeature;
|
||||
use crate::llvm;
|
||||
use libc::c_int;
|
||||
use rustc_codegen_ssa::target_features::{
|
||||
supported_target_features, tied_target_features, RUSTC_SPECIFIC_FEATURES,
|
||||
|
@ -435,7 +435,9 @@ pub(crate) fn global_llvm_features(sess: &Session, diagnostics: bool) -> Vec<Str
|
|||
Some(c @ '+' | c @ '-') => c,
|
||||
Some(_) => {
|
||||
if diagnostics {
|
||||
sess.emit_warning(UnknownCTargetFeature::UnknownFeaturePrefix { feature: s.to_string() });
|
||||
sess.emit_warning(UnknownCTargetFeature::UnknownFeaturePrefix {
|
||||
feature: s.to_string(),
|
||||
});
|
||||
}
|
||||
return None;
|
||||
}
|
||||
|
@ -452,7 +454,10 @@ pub(crate) fn global_llvm_features(sess: &Session, diagnostics: bool) -> Vec<Str
|
|||
None
|
||||
}
|
||||
});
|
||||
sess.emit_warning(UnknownCTargetFeature::UnknownFeature { feature: feature.to_string(), rust_feature: rust_feature.map(|f| f.to_string()) });
|
||||
sess.emit_warning(UnknownCTargetFeature::UnknownFeature {
|
||||
feature: feature.to_string(),
|
||||
rust_feature: rust_feature.map(|f| f.to_string()),
|
||||
});
|
||||
}
|
||||
|
||||
if diagnostics {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue