rust/crates
bors[bot] 317059985a
Merge #10202
10202: fix: Type param hover shows correct sized bounds. r=flodiebold a=iDawer

Closes  #9949

This adds implicit `: Sized` bound to type parameters at lowering step.

Hovering on type parameter does not show it's `: Sized` bound be it set explicitly or implicitly. This is because it doesn't track that the bound was set implicitly.

### Perf

```rust
./target/rust-analyzer-baseline-3dae94bf -q analysis-stats --memory-usage .
Database loaded:     4.51s, 311minstr, 110mb (metadata 1.08s, 22minstr, 743kb; build 3.20s, 8730kinstr, -237kb)
  crates: 38, mods: 770, decls: 17173, fns: 12835
Item Collection:     29.63s, 85ginstr, 372mb
  exprs: 353460, ??ty: 364 (0%), ?ty: 232 (0%), !ty: 144
Inference:           118.25s, 284ginstr, 601mb
Total:               147.88s, 370ginstr, 973mb

./target/rust-analyzer-hover-ty-param-dfb15292 -q analysis-stats --memory-usage .
Database loaded:     4.53s, 311minstr, 110mb (metadata 1.10s, 22minstr, 743kb; build 3.20s, 8672kinstr, -189kb)
  crates: 38, mods: 770, decls: 17173, fns: 12835
Item Collection:     29.59s, 85ginstr, 372mb
  exprs: 353460, ??ty: 364 (0%), ?ty: 232 (0%), !ty: 144
Inference:           121.69s, 296ginstr, 601mb
Total:               151.28s, 382ginstr, 974mb

```

Co-authored-by: Dawer <7803845+iDawer@users.noreply.github.com>
2021-09-12 07:54:56 +00:00
..
base_db remove unused deps 2021-09-11 16:20:04 +01:00
cfg Simplify int_in_range 2021-08-31 13:11:17 +02:00
flycheck minor: fix some clippy lints 2021-09-03 16:00:50 +02:00
hir Merge #10202 2021-09-12 07:54:56 +00:00
hir_def Support the new rustc_builtin_macro syntax 2021-09-09 21:32:41 +02:00
hir_expand removing seemingly unused dev deps. 2021-09-11 16:26:36 +01:00
hir_ty Merge #10202 2021-09-12 07:54:56 +00:00
ide Merge #10202 2021-09-12 07:54:56 +00:00
ide_assists minor: update test 2021-09-04 15:19:44 +05:00
ide_completion remove unused deps 2021-09-11 16:20:04 +01:00
ide_db Minor: replace old name CrateDefMap 2021-09-05 19:22:34 +09:00
ide_diagnostics Merge #10089 2021-08-30 19:35:00 +00:00
ide_ssr fix: avoid pathological macro expansions 2021-08-09 16:15:02 +03:00
limit internal: add API to check what are the max limits in practice 2021-07-31 18:26:43 +03:00
mbe removing seemingly unused dev deps. 2021-09-11 16:26:36 +01:00
parser minor: modernize 2021-09-06 18:54:16 +03:00
paths internal: improve compilation critical path a bit 2021-08-28 22:43:37 +03:00
proc_macro_api remove unused deps 2021-09-11 16:20:04 +01:00
proc_macro_srv removing seemingly unused dev deps. 2021-09-11 16:26:36 +01:00
proc_macro_test cargo_metadata 0.14 2021-07-09 11:01:55 -04:00
profile Update dependency minor versions 2021-09-04 00:27:05 -07:00
project_model Rename is_member to is_local 2021-09-07 17:29:58 +02:00
rust-analyzer removing seemingly unused dev deps. 2021-09-11 16:26:36 +01:00
sourcegen minor: make sure that project_root works correctly 2021-07-13 15:02:29 +03:00
stdx minor: improve readability 2021-09-11 18:42:38 +03:00
syntax remove unused deps 2021-09-11 16:20:04 +01:00
test_utils Refactor & improve handling of overloaded binary operators 2021-08-22 17:35:50 +02:00
text_edit Handle all rename special cases for all record pattern fields 2021-08-16 22:48:38 +02:00
toolchain minor: drop dummy authors field 2021-07-05 14:19:41 +03:00
tt internal: reduce coupling 2021-08-31 19:14:33 +03:00
vfs internal: document that ascription is preferred to a turbo fish 2021-08-11 14:16:15 +03:00
vfs-notify remove unused deps 2021-09-11 16:20:04 +01:00