rust/crates/ide/src
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
..
display switch log crate to tracing 2021-08-30 15:11:42 +08:00
doc_links Some more fragment fixes 2021-07-20 17:03:39 +02:00
syntax_highlighting internal: make naming consistent 2021-08-14 17:01:28 +03:00
typing clippy::redudant_borrow 2021-06-13 09:24:16 +05:30
annotations.rs fix: multi-token mapping aware find references 2021-09-01 19:19:16 +02:00
call_hierarchy.rs fix: multi-token mapping aware find references 2021-09-01 19:19:16 +02:00
display.rs Remove ShortLabel 2021-03-16 15:44:31 +01:00
doc_links.rs resolve_doc_path is able to resolve to macros 2021-08-02 14:33:09 +02:00
expand_macro.rs fix: Fix multiple derives in one attribute not expanding all in expand_macro 2021-08-26 03:32:45 +02:00
extend_selection.rs clippy::redudant_borrow 2021-06-13 09:24:16 +05:30
file_structure.rs Gifs and screenshots for features in manual 2021-03-31 00:08:10 +01:00
fixture.rs Show type actions on ranged type hover 2021-08-11 13:52:57 +02:00
fn_references.rs 7526: Rename crate assists to ide_assists. 2021-02-23 00:59:16 +05:30
folding_ranges.rs Folding ranges respect item visibilities 2021-07-15 17:44:23 +02:00
goto_declaration.rs Return both field and local references for shorthands in goto_def 2021-07-11 16:16:16 +02:00
goto_definition.rs Simplify 2021-07-26 20:26:24 +02:00
goto_implementation.rs fix: make goto_implementation multi-token mapping aware 2021-09-01 14:51:37 +02:00
goto_type_definition.rs Give TypeInfo fields and methods more appropriate names 2021-08-03 17:28:51 +02:00
highlight_related.rs Use correct search scopes for macros 2021-09-02 17:30:55 +02:00
hover.rs Merge #10202 2021-09-12 07:54:56 +00:00
inlay_hints.rs Fix three more (reverse) “a”/“an” typos 2021-08-22 17:48:15 +02:00
join_lines.rs feat: join lines merges assignments 2021-08-22 21:28:39 +03:00
lib.rs fix: multi-token mapping aware find references 2021-09-01 19:19:16 +02:00
markdown_remove.rs Remove more unreachable pubs 2020-11-02 16:58:33 +01:00
markup.rs Rename ra_ide -> ide 2020-08-13 17:58:27 +02:00
matching_brace.rs simplify 2021-05-15 17:22:39 +02:00
move_item.rs Fix move_item test fixture indentations 2021-07-30 13:03:28 +02:00
parent_module.rs simplify 2021-05-15 17:22:39 +02:00
prime_caches.rs internal: more obviously correct code for cache priming progerss 2021-08-30 19:18:48 +03:00
references.rs fix: multi-token mapping aware find references 2021-09-01 19:19:16 +02:00
rename.rs Rename fails on renaming definitions created by macros 2021-08-20 00:12:47 +02:00
runnables.rs implement #10070 in runnables 2021-09-09 18:02:53 +03:00
ssr.rs internal: slightly improve compile times 2021-08-29 12:53:56 +03:00
status.rs fix 2021-06-29 20:34:52 +01:00
syntax_highlighting.rs Fix typo in reference modifier description 2021-08-09 14:06:14 +03:00
syntax_tree.rs Gifs and screenshots for features in manual 2021-03-31 00:08:10 +01:00
typing.rs Don't insert } when typing { in string 2021-06-21 14:54:49 +02:00
view_crate_graph.rs Add "View Crate Graph (Full)" 2021-07-02 00:10:33 +02:00
view_hir.rs Gifs and screenshots for features in manual 2021-03-31 00:08:10 +01:00
view_item_tree.rs Add a "Debug ItemTree" LSP request 2021-05-21 23:59:52 +02:00