Skip to content

Commit 101dd7b

Browse files
committed
Use is_none instead of if let
1 parent 9b98af8 commit 101dd7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/traits/error_reporting.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2289,7 +2289,7 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
22892289
let span = self.tcx.def_span(generator_did);
22902290

22912291
// Do not ICE on closure typeck (#66868).
2292-
if let None = self.tcx.hir().as_local_hir_id(generator_did) {
2292+
if self.tcx.hir().as_local_hir_id(generator_did).is_none() {
22932293
return false;
22942294
}
22952295

0 commit comments

Comments
 (0)