]> git.lizzy.rs Git - rust.git/commitdiff
Merge #7732
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>
Sat, 20 Feb 2021 20:17:14 +0000 (20:17 +0000)
committerGitHub <noreply@github.com>
Sat, 20 Feb 2021 20:17:14 +0000 (20:17 +0000)
7732: Don't lower TypeBound::Lifetime as GenericPredicate::Error r=flodiebold a=Veykril

Basically we just discard the typebound for now instead when lowering to `GenericPredicate`. I think this shouldn't have any other side effects?

Fixes #7683(hopefully for real this time)

I also played around with introducing `GenericPredicate::LifetimeOutlives` and `GenericPredicate::TypeOutlives`(see https://github.com/Veykril/rust-analyzer/commit/b9d69048451a5f2e9c5a72c800369bbeef36fdcf) but that won't fix this issue(at least not for now) due to lifetime predicate mismatches when resolving methods so I figure this is a good way to fix it for now.

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>

Trivial merge