bors
|
9279c6566b
|
Auto merge of #16237 - Veykril:expand-arc-alloc, r=Veykril
internal: Remove unnecessary `Arc` allocations in `macro_expand`
|
2024-01-03 14:40:10 +00:00 |
|
Lukas Wirth
|
3fc043ce9b
|
internal: Remove unnecessary Arc allocations in macro_expand
|
2024-01-03 15:21:18 +01:00 |
|
Lukas Wirth
|
cf22f02dc5
|
fix: Fix focus range being discarded in attributes/derives when upmapping
|
2024-01-03 12:15:28 +01:00 |
|
bors
|
86e559bf3f
|
Auto merge of #16211 - tetsuharuohzeki:update-lint, r=Veykril
Use Cargo's [workspace.lints.*] to config clippy
This change begin to use [`[workspace.lints.*]`](https://doc.rust-lang.org/cargo/reference/workspaces.html#the-lints-table) that is stabilized since [Rust 1.74](https://blog.rust-lang.org/2023/11/16/Rust-1.74.0.html).
By this change, we make the configure more readable and simplify `xargo lint` more.
|
2024-01-02 14:53:22 +00:00 |
|
Lukas Wirth
|
0c3fbba3b9
|
fix: Fix SyntaxContextID using incorrect self IDs
|
2024-01-01 12:54:30 +01:00 |
|
HoLLy
|
c13330971d
|
Fix out-of-bounds panic in some macros due to unhandled self_ref
|
2023-12-31 12:51:43 +01:00 |
|
Tetsuharu Ohzeki
|
efc87092b3
|
Use Cargo's [workspace.lints.*] to config clippy
|
2023-12-29 23:51:32 +09:00 |
|
Lukas Wirth
|
9e8e124269
|
Special case fixup spans in server::Span impl, they are immutable
|
2023-12-22 10:13:00 +01:00 |
|
Lukas Wirth
|
874df3bffa
|
Add eager-expand comment
|
2023-12-21 17:23:36 +01:00 |
|
Lukas Wirth
|
428a34a9b4
|
Implement server::Span::Join
|
2023-12-21 17:23:04 +01:00 |
|
Lukas Wirth
|
5bdb479131
|
fix: Fix span marking for builtin fn macros
|
2023-12-21 16:20:27 +01:00 |
|
Lukas Wirth
|
1e1113cf5f
|
Correctly set and mark the proc-macro spans
|
2023-12-21 10:51:54 +01:00 |
|
Lukas Wirth
|
7d762d18ed
|
Record macro def site spans
|
2023-12-21 09:54:47 +01:00 |
|
Lukas Wirth
|
51a9e7831a
|
Rename some things and turn macro to macro def into a query
|
2023-12-21 09:18:25 +01:00 |
|
Lukas Wirth
|
071fe4e4e9
|
Move Intern and Lookup traits to hir-expand
|
2023-12-20 21:24:20 +01:00 |
|
Lukas Wirth
|
7b804552a5
|
Remove Delimiter::DUMMY_INVISIBLE
|
2023-12-20 14:00:14 +01:00 |
|
Lukas Wirth
|
2c6ce480e3
|
Remove Delimier::dummy_invisible
|
2023-12-20 13:06:46 +01:00 |
|
Lukas Wirth
|
4ec81230db
|
Remove usages of Span::DUMMY
|
2023-12-20 12:53:46 +01:00 |
|
Lukas Wirth
|
f48ecb6e09
|
Try to support pre and post-change metavars
|
2023-12-19 20:45:12 +01:00 |
|
Lukas Wirth
|
002e611d09
|
fix: Deduplicate annotations
|
2023-12-19 08:49:00 +01:00 |
|
Lukas Wirth
|
f49a2fed3f
|
internal: Move out WithFixture into dev-dep only crate
|
2023-12-18 15:24:08 +01:00 |
|
Lukas Wirth
|
ec6162308e
|
Move the SpanMap definition into the span crate
|
2023-12-18 14:50:48 +01:00 |
|
Lukas Wirth
|
66e29be1bd
|
internal: Split out a span crate
|
2023-12-18 14:08:33 +01:00 |
|
Lukas Wirth
|
35620306a6
|
internal: Move proc-macro knowledge out of base-db
|
2023-12-18 12:37:18 +01:00 |
|
bors
|
a7764198b1
|
Auto merge of #16123 - Veykril:simplify, r=Veykril
internal: Remove `ModuleId` from `TypeOwnerId`
It only exists due to the IDE layer, but we can encode this temporary hack more cleanly
|
2023-12-15 13:10:17 +00:00 |
|
Lukas Wirth
|
4c45d23948
|
fix: Syntax fixup now removes subtrees with fake spans
|
2023-12-15 13:52:49 +01:00 |
|
Lukas Wirth
|
9083017c9d
|
Remove ModuleId from TypeOwnerId
|
2023-12-14 14:11:57 +01:00 |
|
Lukas Wirth
|
c209b5f97c
|
fix: Fix syntax bridge assigning invalid span to lifetime tokens
|
2023-12-12 22:05:21 +01:00 |
|
Laurențiu Nicola
|
13d4609f50
|
Merge remote-tracking branch 'upstream/master' into sync-from-rust
|
2023-12-12 12:26:15 +02:00 |
|
hkalbasi
|
801c0ea478
|
Replace doc_comments_and_attrs with collect_attrs , 2nd round
|
2023-12-11 22:56:50 +03:30 |
|
Laurențiu Nicola
|
71d98c53bd
|
Fix typo in cfg
|
2023-12-11 11:55:43 +02:00 |
|
Laurențiu Nicola
|
f532576ac5
|
Merge commit '457b966b171b09a7e57acb710fbca29a4b3526f0' into sync-from-ra
|
2023-12-11 11:16:01 +02:00 |
|
Lukas Wirth
|
b1a8f83a0c
|
fix: Smaller spans for unresolved field and method diagnostics
|
2023-12-08 18:46:36 +01:00 |
|
bors
|
9c3de09f6d
|
Auto merge of #16054 - Veykril:fix-downmapping, r=Veykril
fix: Fix token downmapping being quadratic
Fixes https://github.com/rust-lang/rust-analyzer/issues/16050
|
2023-12-08 14:28:18 +00:00 |
|
Lukas Wirth
|
5d951a6a46
|
fix: Fix token downmapping being quadratic
|
2023-12-08 15:26:38 +01:00 |
|
Lukas Wirth
|
71337f6682
|
fix: Fix concat_bytes! expansion
|
2023-12-08 11:34:03 +01:00 |
|
David Barsky
|
c17dcc8d90
|
internal: switch to Arc::from_iter
|
2023-12-06 13:08:45 -05:00 |
|
Lukas Wirth
|
80dc20f7d8
|
fix: Don't print proc-macro panic backtraces in the logs
|
2023-12-06 17:49:48 +01:00 |
|
Lukas Wirth
|
634d588fd7
|
Simplify
|
2023-12-06 14:36:39 +01:00 |
|
Lukas Wirth
|
9cb13b6efb
|
Allow navigation targets to be duplicated when the focus range lies in the macro definition site
|
2023-12-06 12:38:19 +01:00 |
|
Lukas Wirth
|
5b8e386bae
|
Improve macro descension API
|
2023-12-05 17:06:57 +01:00 |
|
Igor Matuszewski
|
a7224c998d
|
Don't explicitly warn against semicolon_in_expressions_from_macros
This has been warn-by-default for two years now and has already been
added to the future-incompat lints in 1.68.
|
2023-12-05 11:35:09 +01:00 |
|
Lukas Wirth
|
18f1a3c3c6
|
Some final touches
|
2023-12-03 20:20:59 +01:00 |
|
Lukas Wirth
|
81410ab500
|
Cleanup FileId stuff
|
2023-12-02 19:32:53 +01:00 |
|
Lukas Wirth
|
02a3a9438a
|
Some more minor cleanups
|
2023-12-02 17:04:13 +01:00 |
|
Lukas Wirth
|
5edf7bddc6
|
Fix mod item in included file resolving incorrectly
|
2023-12-02 13:49:09 +01:00 |
|
Lukas Wirth
|
d2a31acda1
|
Fix macro expansion expression parenthesis wrapping
|
2023-12-02 13:03:46 +01:00 |
|
Lukas Wirth
|
efa67294ed
|
Fix eager macro input spans being discarded
|
2023-12-01 16:29:58 +01:00 |
|
Lukas Wirth
|
c11737cd63
|
Simplify include handling
|
2023-12-01 14:58:57 +01:00 |
|
Lukas Wirth
|
0003e568ca
|
Pass calling span through to builtin macro expansions
|
2023-12-01 14:11:57 +01:00 |
|