about summary refs log tree commit diff
path: root/compiler/rustc_errors/src/snippet.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-10-23 08:14:30 +0200
committerGitHub <noreply@github.com>2022-10-23 08:14:30 +0200
commit5290d5e32194aeb7cab5167a03d66ad35f76247a (patch)
tree107eaf4af442eadfd6b722a2e64336e7cc705dd7 /compiler/rustc_errors/src/snippet.rs
parent6e95b6da885f42a4e1314595089fa4295e329d11 (diff)
parentaa8931c61235d4ff3a87665229614da6ac0a0ee5 (diff)
downloadrust-5290d5e32194aeb7cab5167a03d66ad35f76247a.tar.gz
rust-5290d5e32194aeb7cab5167a03d66ad35f76247a.zip
Rollup merge of #103123 - compiler-errors:early-binder-iter, r=cjgillot
Introduce `subst_iter` and `subst_iter_copied` on `EarlyBinder`

Makes working with bounds lists a bit easier, which I seem to do a lot.

Specifically, means that we don't need to do `.transpose_iter().map(|(pred, _)| *pred)` every time we want to iterate through an `EarlyBinder<&'tcx [(Predicate, Span)]>` (and even then, still have to call `subst` later), which was a very awkward idiom imo.
Diffstat (limited to 'compiler/rustc_errors/src/snippet.rs')
0 files changed, 0 insertions, 0 deletions