Change is_some_and to take by value
This commit is contained in:
parent
744e397d88
commit
2f83134e37
3 changed files with 22 additions and 13 deletions
|
|
@ -211,7 +211,7 @@ impl<'tcx> Stack {
|
|||
}
|
||||
|
||||
// Couldn't find it in the stack; but if there is an unknown bottom it might be there.
|
||||
let found = self.unknown_bottom.is_some_and(|&unknown_limit| {
|
||||
let found = self.unknown_bottom.is_some_and(|unknown_limit| {
|
||||
tag.0 < unknown_limit.0 // unknown_limit is an upper bound for what can be in the unknown bottom.
|
||||
});
|
||||
if found { Ok(None) } else { Err(()) }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue