diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2024-06-16 00:53:00 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2024-06-16 14:08:25 +0300 |
| commit | 14da80c37279ada8d92d3f900414ebc0d7935e13 (patch) | |
| tree | c60adcf97679dcaff62880e42726206b57d10002 /compiler/rustc_ty_utils/src/instance.rs | |
| parent | 12b33d36f3de0fb30ca08c49f5b2f4fa111861a4 (diff) | |
| download | rust-14da80c37279ada8d92d3f900414ebc0d7935e13.tar.gz rust-14da80c37279ada8d92d3f900414ebc0d7935e13.zip | |
rustc_span: Minor improvements
Introduce `{IndexNewtype,SyntaxContext}::from_u16` for convenience because small indices are sometimes encoded as `u16`.
Use `SpanData::span` instead of `Span::new` where appropriate.
Add a clarifying comment about decoding span parents.
Diffstat (limited to 'compiler/rustc_ty_utils/src/instance.rs')
0 files changed, 0 insertions, 0 deletions
