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>2024-04-19 19:30:49 +0200
committerGitHub <noreply@github.com>2024-04-19 19:30:49 +0200
commit26d4b1bfbae5d3e752359cd1367e16271c5f36e1 (patch)
tree069ad4428e0fa931d822a6eaa70e09da0d85832d /compiler/rustc_errors/src/snippet.rs
parentb1eee427a0bc0459ec5176b71ff71797727a1794 (diff)
parentffb42065774b5d500ef5649d4caa91e9e344ff46 (diff)
downloadrust-26d4b1bfbae5d3e752359cd1367e16271c5f36e1.tar.gz
rust-26d4b1bfbae5d3e752359cd1367e16271c5f36e1.zip
Rollup merge of #124106 - compiler-errors:tait-lifetime-dedup, r=oli-obk
Don't repeatedly duplicate TAIT lifetimes for each subsequently nested TAIT

Make it so that nested TAITs inherit the lifetimes from their parent item, not their parent TAIT. This is because we don't need to re-duplicate lifetimes for nested TAITs over and over, since the only lifetimes they can capture are from the parent item anyways.

This mirrors how RPITs work. This is **not** a functional change that should be observable, since the whole point of duplicating lifetimes and marking the shadowed ones (and uncaptured ones) as bivariant is designed to *not* be observable.

r? oli-obk
Diffstat (limited to 'compiler/rustc_errors/src/snippet.rs')
0 files changed, 0 insertions, 0 deletions