about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-09-20 03:34:51 +0000
committerbors <bors@rust-lang.org>2023-09-20 03:34:51 +0000
commit4b91288484569dd59c9a996ae45e08ae9527abc1 (patch)
tree5258c757f54a4046727441d6d12ec62e3bff6c2b /compiler/rustc_mir_transform/src
parent793d5eafc30d7c0464c94793bb592c72b109063b (diff)
parentf479a7aa8d17dd3abab4f84fe9fe3e248e362eaf (diff)
downloadrust-4b91288484569dd59c9a996ae45e08ae9527abc1.tar.gz
rust-4b91288484569dd59c9a996ae45e08ae9527abc1.zip
Auto merge of #115486 - compiler-errors:dont-capture-late-pls, r=cjgillot
Correctly deny late-bound lifetimes from parent in anon consts and TAITs

Reuse the `AnonConstBoundary` scope (introduced in #108553, renamed in this PR to `LateBoundary`) to deny late-bound vars of *all* kinds (ty/const/lifetime) in anon consts and TAITs.

Side-note, but I would like to consolidate this with the error reporting for RPITs (E0657):
https://github.com/rust-lang/rust/blob/c4f25777a08cd64b710e8a9a6159e67cbb35e6f5/compiler/rustc_hir_analysis/src/collect/resolve_bound_vars.rs#L733-L754 but the semantics about what we're allowed to capture there are slightly different, so I'm leaving that untouched.

Fixes #115474
Diffstat (limited to 'compiler/rustc_mir_transform/src')
0 files changed, 0 insertions, 0 deletions