Update RustPython to get main versions of end_location etc. (#445)

This commit is contained in:
Charlie Marsh 2022-10-17 11:52:40 -04:00 committed by GitHub
parent cf0d198365
commit edefa5219c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 34 additions and 35 deletions

View file

@ -18,7 +18,9 @@ impl Range {
pub fn from_located<T>(located: &Located<T>) -> Self {
Range {
location: located.location,
end_location: located.end_location,
end_location: located
.end_location
.expect("AST nodes should have end_location."),
}
}
}