diff options
| author | Tyson Nottingham <tgnottingham@gmail.com> | 2020-09-20 17:40:40 -0700 |
|---|---|---|
| committer | Tyson Nottingham <tgnottingham@gmail.com> | 2020-10-26 16:34:04 -0700 |
| commit | df59a44feadad386a8b69cfafaf50605c6af2689 (patch) | |
| tree | 7ef316cd9c873cd650f7f1ded323db08bcf55405 /compiler/rustc_errors/src/snippet.rs | |
| parent | 0dce3f606e05cffab7361c132a399d3550ab0df8 (diff) | |
| download | rust-df59a44feadad386a8b69cfafaf50605c6af2689.tar.gz rust-df59a44feadad386a8b69cfafaf50605c6af2689.zip | |
rustc_span: improve bounds checks in byte_pos_to_line_and_col
The effect of this change is to consider edge-case spans that start or end at the position one past the end of a file to be valid during span hashing and encoding. This change means that these spans will be preserved across incremental compilation sessions when they are part of a serialized query result, instead of causing the dummy span to be used.
Diffstat (limited to 'compiler/rustc_errors/src/snippet.rs')
0 files changed, 0 insertions, 0 deletions
