We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Sized
generic_predicates_for_param
1 parent 9cb66c2 commit db2e8e1Copy full SHA for db2e8e1
src/tools/rust-analyzer/crates/hir-ty/src/lower.rs
@@ -1551,6 +1551,10 @@ pub(crate) fn generic_predicates_for_param_query(
1551
}
1552
};
1553
if invalid_target {
1554
+ // If this is filtered out without lowering, `?Sized` is not gathered into `ctx.unsized_types`
1555
+ if let TypeBound::Path(_, TraitBoundModifier::Maybe) = &**bound {
1556
+ ctx.lower_where_predicate(pred, &def, true).for_each(drop);
1557
+ }
1558
return false;
1559
1560
0 commit comments