rust/compiler/rustc_infer/src
Matthias Krüger d3d5163921
Rollup merge of #108186 - compiler-errors:closures-with-late-bound-types-r-bad, r=cjgillot
Deny non-lifetime bound vars in `for<..> ||` closure binders

Moves the check for illegal bound var types from astconv to resolve_bound_vars. If a binder is defined to have a type or const late-bound var that's not allowed, we'll resolve any usages to ty error or const error values, so we shouldn't ever see late-bound types or consts in places they aren't expected.

Fixes #108184
Fixes #108181
Fixes #108192
2023-02-18 13:26:47 +01:00
..
errors Specify correct spans in suggest_await_on_expect_found 2023-02-14 23:16:29 +03:00
infer Rollup merge of #108186 - compiler-errors:closures-with-late-bound-types-r-bad, r=cjgillot 2023-02-18 13:26:47 +01:00
traits Add Clause::ConstArgHasType variant 2023-02-17 09:30:33 +00:00
lib.rs Remove #![allow(rustc::potential_query_instability)] from rustc_infer 2022-10-28 15:32:49 +02:00