internal: add implicit Sized bounds to type parameters.

This commit is contained in:
Dawer 2021-06-06 23:41:15 +05:00
parent 8a8431133e
commit 3981373b93
7 changed files with 99 additions and 21 deletions

View file

@ -338,10 +338,6 @@ impl GenericParams {
hrtb_lifetimes: Option<&Box<[Name]>>,
target: Either<TypeRef, LifetimeRef>,
) {
if bound.question_mark_token().is_some() {
// FIXME: remove this bound
return;
}
let bound = TypeBound::from_ast(lower_ctx, bound);
let predicate = match (target, bound) {
(Either::Left(type_ref), bound) => match hrtb_lifetimes {