mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-30 06:43:20 +03:00
98e8f99bc0
Report unconstrained region in hidden types lazily Fixes https://github.com/rust-lang/trait-system-refactor-initiative/issues/264 I didn't copy the mechanism of HIR typeck as I found that we just need to be lax in the unconstrained region case. It already ignores non-defining uses and invalid params. About tests, I'm having trouble coming up with more complex ones. 🙁 This fixes `ukanren` and `codecrafters-redis-rust` but not rust-lang/rust#151322 and rust-lang/rust#151323. I believe they are a [different problem](https://github.com/rust-lang/rust/issues/151322#issuecomment-3864656974). r? @lcnr