about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm_util.rs
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2021-09-30 19:38:50 +0200
committerGuillaume Gomez <guillaume.gomez@huawei.com>2021-10-01 23:17:19 +0200
commit759eba0a08ef80f958e671e822ad02e2b5409946 (patch)
tree9f5193b2b18a57a327164a4cc197711dd1a72678 /compiler/rustc_codegen_llvm/src/llvm_util.rs
parentb6057bf7b7ee7c58e6a39ead02eaa13b75f908c2 (diff)
downloadrust-759eba0a08ef80f958e671e822ad02e2b5409946.tar.gz
rust-759eba0a08ef80f958e671e822ad02e2b5409946.zip
Fix clippy lints
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
-rw-r--r--compiler/rustc_codegen_llvm/src/llvm_util.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/llvm_util.rs b/compiler/rustc_codegen_llvm/src/llvm_util.rs
index f9172e43773..c5deb11edd0 100644
--- a/compiler/rustc_codegen_llvm/src/llvm_util.rs
+++ b/compiler/rustc_codegen_llvm/src/llvm_util.rs
@@ -298,7 +298,7 @@ fn print_target_features(sess: &Session, tm: &llvm::TargetMachine) {
     for (feature, desc) in &target_features {
         println!("    {1:0$} - {2}.", max_feature_len, feature, desc);
     }
-    if target_features.len() == 0 {
+    if target_features.is_empty() {
         println!("    Target features listing is not supported by this LLVM version.");
     }
     println!("\nUse +feature to enable a feature, or -feature to disable it.");