mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-03 01:25:15 +00:00
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