This commit is contained in:
harupy 2022-12-12 22:36:34 +09:00
parent 06c92bb899
commit 165b979733

View file

@ -439,7 +439,8 @@ TryStatement: ast::Stmt = {
.last() .last()
.map(|last| last.end_location) .map(|last| last.end_location)
.or_else(|| orelse.last().map(|last| last.end_location)) .or_else(|| orelse.last().map(|last| last.end_location))
.unwrap_or_else(|| handlers.last().unwrap().end_location); .or_else(|| handlers.last().map(|last| last.end_location))
.unwrap();
ast::Stmt { ast::Stmt {
custom: (), custom: (),
location, location,