We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
map | unwrap_or
map_or
1 parent a36c636 commit 42b9d3fCopy full SHA for 42b9d3f
compiler/rustc_data_structures/src/obligation_forest/mod.rs
@@ -366,8 +366,7 @@ impl<O: ForestObligation> ObligationForest<O> {
366
&& self
367
.error_cache
368
.get(&obligation_tree_id)
369
- .map(|errors| errors.contains(v.key()))
370
- .unwrap_or(false);
+ .map_or(false, |errors| errors.contains(v.key()));
371
372
if already_failed {
373
Err(())
0 commit comments