David Barsky
4d541f7cf3
internal: log original syntax on panic
2024-10-23 12:56:00 -07:00
David Barsky
d28811bcce
chore: rename salsa to ra_salsa
2024-10-14 10:09:22 -04:00
Lukas Wirth
03013688ec
internal: Filter out opaque tokens in some of IDE feature macro descensions
2024-10-04 11:53:12 +02:00
Chayim Refael Friedman
b14cd717dc
Fix a bug in span map merge, and add explanations of how span maps are stored
...
Because it took me hours to figure out that contrary to common sense, the offset stored is the *end* of the node, and we search by the *start*. Which is why we need a convoluted `partition_point()` instead of a simple `binary_search()`. And this was not documented at all. Which made me make mistakes with my implementation of `SpanMap::merge()`.
The other bug fixed about span map merging is correctly keeping track of the current offset in presence of multiple sibling macro invocations. Unrelated, but because of the previous issue it took me hours to debug, so I figured out I'll put them together for posterity.
2024-09-23 01:54:40 +03:00
Chayim Refael Friedman
d878b537bd
Get rid of $crate in expansions shown to the user
...
Be it "Expand Macro Recursively", "Inline macro" or few other things.
We replace it with the crate name, as should've always been.
2024-09-18 18:30:59 +03:00
cuishuang
ddb1e41e50
chore: fix some comments
...
Signed-off-by: cuishuang <imcusg@gmail.com>
2024-09-02 18:33:23 +08:00
Vincent Esche
584f9543ea
Replace [package.repository] = "…" of published crates with [package.repository.workspace] = true
2024-08-06 00:26:42 +02:00
Vincent Esche
163534182d
Add repository URL for published crates' missing [package.repository] fields
2024-08-06 00:25:02 +02:00
Vincent Esche
88ea306270
Replace "TBD" with more helpful desciptions in published crates' [package.description] fields
2024-08-06 00:25:02 +02:00
bors
9d99d39eaf
Auto merge of #17799 - Veykril:syntax-bridge, r=Veykril
...
Split out syntax-bridge into a separate crate
This functionality is not really tied to mbe macros, so imo it has no place in that crate.
2024-08-05 12:31:45 +00:00
Lukas Wirth
cdee65f5ea
Newtype ErasedFileAstId
2024-08-05 13:46:47 +02:00
Lukas Wirth
90803b16c1
Split out syntax-bridge into a separate crate
2024-08-05 13:45:00 +02:00
Lukas Wirth
a895797455
Fix error spans for include! and compile_error!
2024-07-29 15:57:01 +02:00
Lukas Wirth
8e0d60e115
Remove Params and Fields from AstIdMap
2024-07-25 10:22:05 +02:00
Lukas Wirth
20e27b874d
Encode edition within FileId in the hir layer
2024-07-18 08:49:10 +02:00
Wilfred Hughes
501cef922d
internal: Fix rustdoc warnings
...
`cargo doc` generates a bunch of warnings on rust-analyzer. Fix all the
bare URL and empty code block warnings.
2024-06-13 17:29:10 -07:00
Lukas Wirth
c86f3d3234
internal: Remove FileId::BOGUS
2024-06-12 08:16:07 +02:00
Hamir Mahal
e3d09394c2
style: simplify string interpolation
2024-05-30 16:18:49 -07:00
Lukas Wirth
7c39263450
Allow rust files to be used linkedProjects
2024-04-21 16:26:55 +02:00