]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_metadata/src/native_libs.rs
Rollup merge of #107491 - notriddle:notriddle/setting-check, r=GuillaumeGomez
[rust.git] / compiler / rustc_metadata / src / native_libs.rs
index 59869ee417377635ff55a3093aa64ebb3f2779ca..a5910100786ec71904c01b8348e026f7f556b8e9 100644 (file)
@@ -107,7 +107,7 @@ fn process_item(&mut self, id: rustc_hir::ItemId) {
             return;
         };
 
-        if abi == Abi::Rust || abi == Abi::RustIntrinsic || abi == Abi::PlatformIntrinsic {
+        if matches!(abi, Abi::Rust | Abi::RustIntrinsic | Abi::PlatformIntrinsic) {
             return;
         }
 
@@ -433,10 +433,10 @@ fn process_command_line(&mut self) {
         }
 
         // Update kind and, optionally, the name of all native libraries
-        // (there may be more than one) with the specified name.  If any
+        // (there may be more than one) with the specified name. If any
         // library is mentioned more than once, keep the latest mention
         // of it, so that any possible dependent libraries appear before
-        // it.  (This ensures that the linker is able to see symbols from
+        // it. (This ensures that the linker is able to see symbols from
         // all possible dependent libraries before linking in the library
         // in question.)
         for passed_lib in &self.tcx.sess.opts.libs {