1
Fork 0

Change is_unsized to add_implicitly_sized

This commit is contained in:
jackh726 2021-08-15 03:09:47 -04:00
parent f1f1d56d93
commit 216906fb75
4 changed files with 64 additions and 124 deletions

View file

@ -1353,7 +1353,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
// Error if `?Trait` bounds in where clauses don't refer directly to type paramters.
// Note: we used to clone these bounds directly onto the type parameter (and avoid lowering
// these into hir when we lower thee where clauses), but this makes it quite difficult to
// keep track of the Span info. Now, `is_unsized` in `AstConv` checks both param bounds and
// keep track of the Span info. Now, `add_implicitly_sized` in `AstConv` checks both param bounds and
// where clauses for `?Sized`.
for pred in &generics.where_clause.predicates {
if let WherePredicate::BoundPredicate(ref bound_pred) = *pred {