mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
internal: add implicit Sized
bounds to type parameters.
This commit is contained in:
parent
8a8431133e
commit
3981373b93
7 changed files with 99 additions and 21 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue