about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-03-22 20:08:04 +0100
committerGitHub <noreply@github.com>2023-03-22 20:08:04 +0100
commit9629156fc7be5970c3a1d3c12cda952042966c04 (patch)
tree97eae9bba1ad0a196a6b78fa4fa719ea625af8e4 /compiler/rustc_codegen_llvm/src
parent040001e7c1ae4570f4cffd9aa459fc200d5426e7 (diff)
parentedd7d4a9f76cd77e486d60923a4c6d30c512145f (diff)
downloadrust-9629156fc7be5970c3a1d3c12cda952042966c04.tar.gz
rust-9629156fc7be5970c3a1d3c12cda952042966c04.zip
Rollup merge of #109489 - est31:generalize_captures, r=WaffleLapkin
More general captures

This avoids repetition of the binding.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
-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 ba58a2e68e9..46692fd5e8b 100644
--- a/compiler/rustc_codegen_llvm/src/llvm_util.rs
+++ b/compiler/rustc_codegen_llvm/src/llvm_util.rs
@@ -424,7 +424,7 @@ pub(crate) fn global_llvm_features(sess: &Session, diagnostics: bool) -> Vec<Str
         .filter_map(|s| {
             let enable_disable = match s.chars().next() {
                 None => return None,
-                Some(c @ '+' | c @ '-') => c,
+                Some(c @ ('+' | '-')) => c,
                 Some(_) => {
                     if diagnostics {
                         sess.emit_warning(UnknownCTargetFeaturePrefix { feature: s });