diff options
| author | bors <bors@rust-lang.org> | 2024-06-16 14:46:34 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-06-16 14:46:34 +0000 |
| commit | 55cac26a9ef17da1c9c77c0816e88e178b7cc5dd (patch) | |
| tree | 979350436e560304d4a735bd3c6318d181b0c9f7 /compiler/rustc_ty_utils/src/instance.rs | |
| parent | f6236f63d2c2ccbb363cf98f29c994d60ad1eb64 (diff) | |
| parent | 14da80c37279ada8d92d3f900414ebc0d7935e13 (diff) | |
| download | rust-55cac26a9ef17da1c9c77c0816e88e178b7cc5dd.tar.gz rust-55cac26a9ef17da1c9c77c0816e88e178b7cc5dd.zip | |
Auto merge of #126545 - petrochenkov:spimprove, r=BoxyUwU
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
