about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/mod.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-03-03 20:06:27 +0100
committerGitHub <noreply@github.com>2023-03-03 20:06:27 +0100
commit44e794f8abd0396af158a1dee59c30f60dc2ee3a (patch)
treeedbcf39a7d2faa123f5387d055b13394ceb23f61 /compiler/rustc_mir_transform/src/coverage/mod.rs
parent4f49352e92ed229a1f51423e087734b86c6fe814 (diff)
parentcbf4d4e3a5a1feeeedf605ffb8894c7e391f0f2f (diff)
downloadrust-44e794f8abd0396af158a1dee59c30f60dc2ee3a.tar.gz
rust-44e794f8abd0396af158a1dee59c30f60dc2ee3a.zip
Rollup merge of #108553 - compiler-errors:non-lt-late-bound-in-anon-ct, r=petrochenkov
Deny capturing late-bound non-lifetime param in anon const

Introduce a new AnonConstBoundary so we can detect when we capture a late-bound non-lifetime param with `non_lifetime_binders` enabled.

In the future, we could technically do something like introduce an early-bound parameter on the anon const, and stick the late-bound param in its substs (kinda like how we turn late-bound lifetimes in opaques into early-bound ones). But for now, just deny it so we don't ICE.

Fixes #108191
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/mod.rs')
0 files changed, 0 insertions, 0 deletions