Change is_unsized to add_implicitly_sized
This commit is contained in:
parent
f1f1d56d93
commit
216906fb75
4 changed files with 64 additions and 124 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue