diff options
| author | est31 <MTest31@outlook.com> | 2023-03-22 15:38:55 +0100 |
|---|---|---|
| committer | est31 <MTest31@outlook.com> | 2023-03-22 15:39:24 +0100 |
| commit | edd7d4a9f76cd77e486d60923a4c6d30c512145f (patch) | |
| tree | c7c880ee2b90c86b73e18667ad3f6ce68b5511f3 /compiler/rustc_codegen_llvm | |
| parent | febd59e122f67d26d410a62f661a941a706b28ec (diff) | |
| download | rust-edd7d4a9f76cd77e486d60923a4c6d30c512145f.tar.gz rust-edd7d4a9f76cd77e486d60923a4c6d30c512145f.zip | |
More general captures
This avoids repetition
Diffstat (limited to 'compiler/rustc_codegen_llvm')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/llvm_util.rs | 2 |
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 }); |
