about summary refs log tree commit diff
path: root/src/tools/rust-analyzer/crates/ide
AgeCommit message (Collapse)AuthorLines
2024-05-13Render literal escaping errors in hoversLukas Wirth-12/+12
2024-05-13Fix literal hovers being confusing and wrong for floatsLukas Wirth-97/+157
2024-05-06Implement unsafe attribute parsingLukas Wirth-5/+9
2024-04-30fix: Tracing span names should match function namesWilfred Hughes-1/+1
When viewing traces, it's slightly confusing when the span name doesn't match the function name. Ensure the names are consistent. (It might be worth moving most of these to use #[tracing::instrument] so the name can never go stale. @davidbarsky suggested that is marginally slower, so I've just done the simple change here.)
2024-04-30Fix coercion of async blockmorine0122-0/+26
2024-04-25Auto merge of #17134 - Veykril:lt-err-display, r=Veykrilbors-1/+20
internal: Don't render unknown lifetimes when rendering generic args cc https://github.com/rust-lang/rust-analyzer/issues/17098
2024-04-25Auto merge of #17021 - roife:add-hover-limits-for-adts, r=Veykrilbors-34/+443
Support hovering limits for adts Fix #17009 1. Currently, r-a supports limiting the number of struct fields displayed when hovering. This PR extends it to support enum variants and union fields. Since the display of these three (ADTs) is similar, this PR extends 'hover_show_structFields' to 'hover_show_adtFieldsOrVariants'. 2. This PR also resolved the problem that the layout of ADT was not restricted by display limitations when hovering on the Self type. 3. Additionally, this PR changes the default value of display limitations to `10` (instead of the original `null`), which helps users discover this feature.
2024-04-25Add inlay hints lifetime arg testsLukas Wirth-1/+20
2024-04-21Auto merge of #16938 - Nilstrieb:dont-panic-tests, r=Veykrilbors-7/+7
Implement `BeginPanic` handling in const eval for #16935, needs some figuring out of how to write these tests correctly
2024-04-21Allow rust files to be used linkedProjectsLukas Wirth-0/+48752
2024-04-21Peek for panic message in test outputLukas Wirth-7/+7
2024-04-20fix: remove space within `{}` when no fields in structroife-1/+21
2024-04-20Add hovering limitations support for variantsroife-20/+115
2024-04-19fix: add a separate setting for enum variantsroife-36/+102
2024-04-18Handle panicking like rustc CTFE doesNilstrieb-0/+48712
Instead of using `core::fmt::format` to format panic messages, which may in turn panic too and cause recursive panics and other messy things, redirect `panic_fmt` to `const_panic_fmt` like CTFE, which in turn goes to `panic_display` and does the things normally. See the tests for the full call stack.
2024-04-16fix: adjust the limitation for ADTs' fields to 5roife-4/+4
2024-04-16fix: the fields or variants of ADT was not restricted by limitations when ↵roife-3/+40
hovering on Self type
2024-04-16Update tests and docs for hover_show_adtFieldsOrVariantsroife-34/+225
2024-04-16Add config hover_show_adtFieldsOrVariants to handle hovering limitation for ADTsroife-0/+48672