1error: redundant pattern matching, consider using `is_ok()` 2 --> $DIR/redundant_pattern_matching_drop_order.rs:12:12 3 | 4LL | if let Ok(_) = m.lock() {} 5 | -------^^^^^----------- help: try this: `if m.lock().is_ok()` 6 | 7 = note: `-D clippy::redundant-pattern-matching` implied by `-D warnings` 8 = note: this will change drop order of the result, as well as all temporaries 9 = note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important 10 11error: redundant pattern matching, consider using `is_err()` 12 --> $DIR/redundant_pattern_matching_drop_order.rs:13:12 13 | 14LL | if let Err(_) = Err::<(), _>(m.lock().unwrap().0) {} 15 | -------^^^^^^------------------------------------ help: try this: `if Err::<(), _>(m.lock().unwrap().0).is_err()` 16 | 17 = note: this will change drop order of the result, as well as all temporaries 18 = note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important 19 20error: redundant pattern matching, consider using `is_ok()` 21 --> $DIR/redundant_pattern_matching_drop_order.rs:16:16 22 | 23LL | if let Ok(_) = Ok::<_, std::sync::MutexGuard<()>>(()) {} 24 | -------^^^^^----------------------------------------- help: try this: `if Ok::<_, std::sync::MutexGuard<()>>(()).is_ok()` 25 | 26 = note: this will change drop order of the result, as well as all temporaries 27 = note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important 28 29error: redundant pattern matching, consider using `is_ok()` 30 --> $DIR/redundant_pattern_matching_drop_order.rs:18:12 31 | 32LL | if let Ok(_) = Ok::<_, std::sync::MutexGuard<()>>(()) { 33 | -------^^^^^----------------------------------------- help: try this: `if Ok::<_, std::sync::MutexGuard<()>>(()).is_ok()` 34 | 35 = note: this will change drop order of the result, as well as all temporaries 36 = note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important 37 38error: redundant pattern matching, consider using `is_ok()` 39 --> $DIR/redundant_pattern_matching_drop_order.rs:21:12 40 | 41LL | if let Ok(_) = Ok::<_, std::sync::MutexGuard<()>>(()) {} 42 | -------^^^^^----------------------------------------- help: try this: `if Ok::<_, std::sync::MutexGuard<()>>(()).is_ok()` 43 44error: redundant pattern matching, consider using `is_err()` 45 --> $DIR/redundant_pattern_matching_drop_order.rs:22:12 46 | 47LL | if let Err(_) = Err::<std::sync::MutexGuard<()>, _>(()) {} 48 | -------^^^^^^------------------------------------------ help: try this: `if Err::<std::sync::MutexGuard<()>, _>(()).is_err()` 49 50error: redundant pattern matching, consider using `is_ok()` 51 --> $DIR/redundant_pattern_matching_drop_order.rs:24:12 52 | 53LL | if let Ok(_) = Ok::<_, ()>(String::new()) {} 54 | -------^^^^^----------------------------- help: try this: `if Ok::<_, ()>(String::new()).is_ok()` 55 56error: redundant pattern matching, consider using `is_err()` 57 --> $DIR/redundant_pattern_matching_drop_order.rs:25:12 58 | 59LL | if let Err(_) = Err::<(), _>((String::new(), ())) {} 60 | -------^^^^^^------------------------------------ help: try this: `if Err::<(), _>((String::new(), ())).is_err()` 61 62error: redundant pattern matching, consider using `is_some()` 63 --> $DIR/redundant_pattern_matching_drop_order.rs:28:12 64 | 65LL | if let Some(_) = Some(m.lock()) {} 66 | -------^^^^^^^----------------- help: try this: `if Some(m.lock()).is_some()` 67 | 68 = note: this will change drop order of the result, as well as all temporaries 69 = note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important 70 71error: redundant pattern matching, consider using `is_some()` 72 --> $DIR/redundant_pattern_matching_drop_order.rs:29:12 73 | 74LL | if let Some(_) = Some(m.lock().unwrap().0) {} 75 | -------^^^^^^^---------------------------- help: try this: `if Some(m.lock().unwrap().0).is_some()` 76 | 77 = note: this will change drop order of the result, as well as all temporaries 78 = note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important 79 80error: redundant pattern matching, consider using `is_none()` 81 --> $DIR/redundant_pattern_matching_drop_order.rs:32:16 82 | 83LL | if let None = None::<std::sync::MutexGuard<()>> {} 84 | -------^^^^------------------------------------ help: try this: `if None::<std::sync::MutexGuard<()>>.is_none()` 85 | 86 = note: this will change drop order of the result, as well as all temporaries 87 = note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important 88 89error: redundant pattern matching, consider using `is_none()` 90 --> $DIR/redundant_pattern_matching_drop_order.rs:34:12 91 | 92LL | if let None = None::<std::sync::MutexGuard<()>> { 93 | -------^^^^------------------------------------ help: try this: `if None::<std::sync::MutexGuard<()>>.is_none()` 94 | 95 = note: this will change drop order of the result, as well as all temporaries 96 = note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important 97 98error: redundant pattern matching, consider using `is_none()` 99 --> $DIR/redundant_pattern_matching_drop_order.rs:38:12 100 | 101LL | if let None = None::<std::sync::MutexGuard<()>> {} 102 | -------^^^^------------------------------------ help: try this: `if None::<std::sync::MutexGuard<()>>.is_none()` 103 104error: redundant pattern matching, consider using `is_some()` 105 --> $DIR/redundant_pattern_matching_drop_order.rs:40:12 106 | 107LL | if let Some(_) = Some(String::new()) {} 108 | -------^^^^^^^---------------------- help: try this: `if Some(String::new()).is_some()` 109 110error: redundant pattern matching, consider using `is_some()` 111 --> $DIR/redundant_pattern_matching_drop_order.rs:41:12 112 | 113LL | if let Some(_) = Some((String::new(), ())) {} 114 | -------^^^^^^^---------------------------- help: try this: `if Some((String::new(), ())).is_some()` 115 116error: redundant pattern matching, consider using `is_ready()` 117 --> $DIR/redundant_pattern_matching_drop_order.rs:44:12 118 | 119LL | if let Ready(_) = Ready(m.lock()) {} 120 | -------^^^^^^^^------------------ help: try this: `if Ready(m.lock()).is_ready()` 121 | 122 = note: this will change drop order of the result, as well as all temporaries 123 = note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important 124 125error: redundant pattern matching, consider using `is_ready()` 126 --> $DIR/redundant_pattern_matching_drop_order.rs:45:12 127 | 128LL | if let Ready(_) = Ready(m.lock().unwrap().0) {} 129 | -------^^^^^^^^----------------------------- help: try this: `if Ready(m.lock().unwrap().0).is_ready()` 130 | 131 = note: this will change drop order of the result, as well as all temporaries 132 = note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important 133 134error: redundant pattern matching, consider using `is_pending()` 135 --> $DIR/redundant_pattern_matching_drop_order.rs:48:16 136 | 137LL | if let Pending = Pending::<std::sync::MutexGuard<()>> {} 138 | -------^^^^^^^--------------------------------------- help: try this: `if Pending::<std::sync::MutexGuard<()>>.is_pending()` 139 | 140 = note: this will change drop order of the result, as well as all temporaries 141 = note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important 142 143error: redundant pattern matching, consider using `is_pending()` 144 --> $DIR/redundant_pattern_matching_drop_order.rs:50:12 145 | 146LL | if let Pending = Pending::<std::sync::MutexGuard<()>> { 147 | -------^^^^^^^--------------------------------------- help: try this: `if Pending::<std::sync::MutexGuard<()>>.is_pending()` 148 | 149 = note: this will change drop order of the result, as well as all temporaries 150 = note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important 151 152error: redundant pattern matching, consider using `is_pending()` 153 --> $DIR/redundant_pattern_matching_drop_order.rs:54:12 154 | 155LL | if let Pending = Pending::<std::sync::MutexGuard<()>> {} 156 | -------^^^^^^^--------------------------------------- help: try this: `if Pending::<std::sync::MutexGuard<()>>.is_pending()` 157 158error: redundant pattern matching, consider using `is_ready()` 159 --> $DIR/redundant_pattern_matching_drop_order.rs:56:12 160 | 161LL | if let Ready(_) = Ready(String::new()) {} 162 | -------^^^^^^^^----------------------- help: try this: `if Ready(String::new()).is_ready()` 163 164error: redundant pattern matching, consider using `is_ready()` 165 --> $DIR/redundant_pattern_matching_drop_order.rs:57:12 166 | 167LL | if let Ready(_) = Ready((String::new(), ())) {} 168 | -------^^^^^^^^----------------------------- help: try this: `if Ready((String::new(), ())).is_ready()` 169 170error: aborting due to 22 previous errors 171 172