rust/compiler/rustc_infer
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
..
src Rollup merge of #108186 - compiler-errors:closures-with-late-bound-types-r-bad, r=cjgillot 2023-02-18 13:26:47 +01:00
Cargo.toml remove unused imports 2023-02-06 17:40:18 +03:00