diff options
| author | SLASHLogin <loginmlgxd@gmail.com> | 2022-08-25 15:42:20 +0200 |
|---|---|---|
| committer | SLASHLogin <loginmlgxd@gmail.com> | 2022-11-09 14:56:20 +0100 |
| commit | a54c8003abd74310af973cbaca87d8ff7b9b4f0e (patch) | |
| tree | 912efe323d4da517f8e1c1c02249825c27bdca30 /compiler/rustc_codegen_llvm/src/llvm_util.rs | |
| parent | 575f6098da83cef33676ef67e39b73b2b910a042 (diff) | |
| download | rust-a54c8003abd74310af973cbaca87d8ff7b9b4f0e.tar.gz rust-a54c8003abd74310af973cbaca87d8ff7b9b4f0e.zip | |
Formatting
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/llvm_util.rs | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/compiler/rustc_codegen_llvm/src/llvm_util.rs b/compiler/rustc_codegen_llvm/src/llvm_util.rs index f8f174692c0..81b325fee2d 100644 --- a/compiler/rustc_codegen_llvm/src/llvm_util.rs +++ b/compiler/rustc_codegen_llvm/src/llvm_util.rs @@ -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 { |
