More general captures
This avoids repetition
This commit is contained in:
parent
febd59e122
commit
edd7d4a9f7
3 changed files with 3 additions and 3 deletions
|
@ -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 });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue