Refactor execution errors (#198)

This commit is contained in:
Mike Voronov
2021-12-21 11:37:35 +03:00
committed by GitHub
parent 54e383cdaf
commit f69b5aa728
58 changed files with 695 additions and 405 deletions

View File

@ -189,7 +189,7 @@ fn find_closest<'d>(
) -> Option<&'d RefCell<Stream>> {
// descriptors are placed in a order of decreasing scopes, so it's enough to get the latest suitable
for descriptor in descriptors.rev() {
if descriptor.span.contains(position) {
if descriptor.span.contains_position(position) {
return Some(&descriptor.stream);
}
}