Lukas Wirth
|
cf22f02dc5
|
fix: Fix focus range being discarded in attributes/derives when upmapping
|
2024-01-03 12:15:28 +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
|
4ec81230db
|
Remove usages of Span::DUMMY
|
2023-12-20 12:53:46 +01:00 |
|
Lukas Wirth
|
f49a2fed3f
|
internal: Move out WithFixture into dev-dep only crate
|
2023-12-18 15:24:08 +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 |
|
Lukas Wirth
|
9083017c9d
|
Remove ModuleId from TypeOwnerId
|
2023-12-14 14:11:57 +01:00 |
|
hkalbasi
|
801c0ea478
|
Replace doc_comments_and_attrs with collect_attrs , 2nd round
|
2023-12-11 22:56:50 +03:30 |
|
Lukas Wirth
|
5d951a6a46
|
fix: Fix token downmapping being quadratic
|
2023-12-08 15:26:38 +01: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
|
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 |
|
Lukas Wirth
|
f48fa0c6cb
|
Re-implement syntax fixups
|
2023-11-29 16:00:39 +01:00 |
|
Lukas Wirth
|
98cfdde8ba
|
Thinner TokenMap
|
2023-11-28 10:56:25 +01:00 |
|
Lukas Wirth
|
92d447f976
|
🧹
|
2023-11-28 10:55:40 +01:00 |
|
Lukas Wirth
|
c43078f99d
|
Re-implement InFile wrappers as type aliases over generic InFileWrapper
|
2023-11-28 10:55:40 +01:00 |
|
Lukas Wirth
|
30093a6d81
|
spans always come from real file
|
2023-11-28 10:55:39 +01:00 |
|
Lukas Wirth
|
05f375eae2
|
hygiene 2.0
|
2023-11-28 10:55:39 +01:00 |
|
Lukas Wirth
|
e36b3f7b8c
|
Proper span representation with syntax context
|
2023-11-28 10:55:39 +01:00 |
|
Lukas Wirth
|
890eb17b4e
|
Replace ID based TokenMap with proper relative text-ranges / spans
|
2023-11-28 10:55:39 +01:00 |
|
Lukas Wirth
|
53b292478d
|
internal: Add offset param to token descending API
|
2023-08-16 10:07:18 +02:00 |
|
Lukas Wirth
|
9adff006e8
|
Simplify
|
2023-08-10 20:10:19 +02:00 |
|
Lukas Wirth
|
df725d6b6d
|
fix: Do not create fn macro calls with non-fn expanders
|
2023-07-30 12:18:19 +02:00 |
|
Lukas Wirth
|
6a7b905c86
|
Fix the eager token maps by re-mapping the textranges between the input and input expansion
|
2023-07-13 09:22:38 +02:00 |
|
Lukas Wirth
|
2366c16bf9
|
Fix eager token mapping panics
|
2023-07-11 13:54:28 +02:00 |
|
Lukas Wirth
|
d5f64f875a
|
Infallibe ExpandDatabase::macro_def
|
2023-07-10 16:23:29 +02:00 |
|
Lukas Wirth
|
8886d707b8
|
Stronger typing for AstId and AstIdMap
|
2023-07-04 09:16:15 +02:00 |
|
Lukas Wirth
|
321e570d92
|
Don't diagnose builtin derives
|
2023-07-03 14:23:36 +02:00 |
|
Ryo Yoshida
|
4e793e7859
|
Use anonymous lifetime where possible
|
2023-06-29 23:27:28 +09:00 |
|
Lukas Wirth
|
a02b9b279e
|
internal: Lazy eager macros
|
2023-06-09 13:02:13 +02:00 |
|
Lukas Wirth
|
d6dcfa5744
|
internal: Less file parsing for symbol index generation
|
2023-05-18 08:25:06 +02:00 |
|
Laurențiu Nicola
|
7197a27028
|
Use triomphe Arc
|
2023-05-02 20:02:43 +03:00 |
|
Lukas Wirth
|
cebc018e2a
|
Remove unnecessary is_derive field from MacroCallKind::Attr
|
2023-04-22 14:29:28 +02:00 |
|
bors
|
2400b36a2e
|
Auto merge of #14577 - jsoref:spelling, r=lnicola
Spelling
This PR corrects misspellings identified by the [check-spelling action](https://github.com/marketplace/actions/check-spelling).
The misspellings have been reported at https://github.com/jsoref/rust-analyzer/actions/runs/4699991040#summary-12751355796
The action reports that the changes in this PR would make it happy: https://github.com/jsoref/rust-analyzer/actions/runs/4699991284#summary-12751356293
closes #14567
|
2023-04-19 14:05:40 +00:00 |
|
Josh Soref
|
bc7d84c3ce
|
Spelling
* a rule
* access
* after
* amount
* annotations
* assignment
* assist
* associated
* attribute
* borrowed
* built-in type
* clarification
* command
* const
* constructor
* corresponding
* counterparts
* curlies
* dependencies
* deterministic
* diagnostic
* duplicates
* edge
* edited
* efficient
* elsewhere
* execution
* expression
* extensions
* extracted
* fill
* github
* helper
* heuristic
* incomplete
* indent end
* inlay
* invocation
* lifetime
* looking
* maybe
* move
* mutability
* mutable
* necessarily
* necessary
* negative
* nonexistent
* occurred
* offsets
* offsetted
* overridden
* parameters
* params
* params_and_where_preds_in_scope
* paredit
* parent
* parentheses
* prepended if
* punctuation
* receive
* receiver
* referring
* repeated
* representing
* semantically
* separately
* shouldnot
* siblings
* similar
* something's
* statement
* struct
* structure
* surprise
* the
* this
* transparent
* unimplemented
* unnamed
* unnecessary
* unneeded
* unreachable
* unterminated
* utilities
* variant
* variants
* visibility
* work around (v)
* workaround
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
|
2023-04-19 09:45:55 -04:00 |
|
Lukas Wirth
|
4ea5d7f6a0
|
Re-introduce option for macro_arg to prevent calling macros with empty inputs
|
2023-04-16 20:26:26 +02:00 |
|