mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-01 22:31:47 +00:00
Update RustPython to get main versions of end_location etc. (#445)
This commit is contained in:
parent
cf0d198365
commit
edefa5219c
15 changed files with 34 additions and 35 deletions
|
@ -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."),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue