]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_codegen_llvm/src/llvm_util.rs
Rollup merge of #83655 - sebpop:arm64-outline-atomics, r=workingjubilee
[rust.git] / compiler / rustc_codegen_llvm / src / llvm_util.rs
index 2d053abd44efe7d15ff402f8c07f29ac2fb6486b..b15efcd0dc2b1855504cc6823a69ed9b3cccf7bc 100644 (file)
@@ -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.");