1
Fork 0
rust/compiler/rustc_hir_analysis/src
Matthias Krüger 44e794f8ab
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
2023-03-03 20:06:27 +01:00
..
astconv Rollup merge of #108575 - compiler-errors:erase, r=estebank 2023-03-02 07:24:01 +01:00
check Descriptive error when users try to combine RPITIT/AFIT with specialization 2023-02-28 02:03:43 +00:00
coherence Auto merge of #108324 - notriddle:notriddle/assoc-fn-method, r=compiler-errors,davidtwco,estebank,oli-obk 2023-02-23 00:19:12 +00:00
collect Rollup merge of #108553 - compiler-errors:non-lt-late-bound-in-anon-ct, r=petrochenkov 2023-03-03 20:06:27 +01:00
impl_wf_check Remove type-traversal trait aliases 2023-02-22 17:04:58 +00:00
outlives Add Clause::ConstArgHasType variant 2023-02-17 09:30:33 +00:00
structured_errors diagnostics: remove inconsistent English article "this" from E0107 2023-02-23 10:27:06 -07:00
variance Remove type-traversal trait aliases 2023-02-22 17:04:58 +00:00
autoderef.rs Remove type-traversal trait aliases 2023-02-22 17:04:58 +00:00
bounds.rs Rework hir Bounds collection 2022-12-28 23:40:09 +00:00
check_unused.rs Move the unused extern crate check back to the resolver. 2023-02-22 20:48:27 +00:00
collect.rs Rename many interner functions. 2023-02-24 07:32:24 +11:00
constrained_generic_params.rs Remove type-traversal trait aliases 2023-02-22 17:04:58 +00:00
errors.rs Deny capturing late-bound non-lifetime param in anon const 2023-02-28 05:59:54 +00:00
hir_wf_check.rs Remove type-traversal trait aliases 2023-02-22 17:04:58 +00:00
impl_wf_check.rs Remove type-traversal trait aliases 2023-02-22 17:04:58 +00:00
lib.rs Migrate rustc_hir_analysis to session diagnostic 2023-02-24 23:23:30 +03:00
structured_errors.rs rustc_typeck to rustc_hir_analysis 2022-09-27 10:37:23 +02:00