mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 21:54:42 +00:00
fix: Wrong Sized
predicate for generic_predicates_for_param
This commit is contained in:
parent
3723e5910c
commit
71080cfb6b
1 changed files with 4 additions and 0 deletions
|
@ -1551,6 +1551,10 @@ pub(crate) fn generic_predicates_for_param_query(
|
|||
}
|
||||
};
|
||||
if invalid_target {
|
||||
// If this is filtered out without lowering, `?Sized` is not gathered into `ctx.unsized_types`
|
||||
if let TypeBound::Path(_, TraitBoundModifier::Maybe) = &**bound {
|
||||
ctx.lower_where_predicate(pred, &def, true).for_each(drop);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue