aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_def/src
Commit message (Collapse)AuthorAgeFilesLines
* Remove TypeCtor interningFlorian Diebold2020-07-151-4/+4
| | | | Our TypeCtor and Chalk's TypeName match now!
* Cleanup limitsAleksey Kladov2020-07-151-7/+7
|
* Check cancellation when updating imports recursivelyAleksey Kladov2020-07-151-0/+1
| | | | | For winapi, this takes a lot of CPU time without doing queries and causes the main event loop to stall on cancellation.
* Micro-optimize updateAleksey Kladov2020-07-151-5/+6
|
* Update ItemTree snapshotsJonas Schievink2020-07-141-12/+12
|
* Thread varargs through r-aJonas Schievink2020-07-144-3/+22
|
* ItemTree: Lower tuple types despite invalid typeJonas Schievink2020-07-141-7/+6
|
* Guard against infinite macro expansionsAleksey Kladov2020-07-142-0/+29
| | | | closes #4463
* Don't copy-paste `impl_froms` into every crateAleksey Kladov2020-07-131-30/+15
|
* Rewrite item_tree tests to expectAleksey Kladov2020-07-111-105/+109
| | | | insta review wouldn't update the test, so ...
* Extern fns are implicitly unsafeAleksey Kladov2020-07-111-0/+1
| | | | closes #4865
* Bump macro recursion limit in releaseAleksey Kladov2020-07-111-2/+8
|
* More tight recursion limit when expanding macros in function bodiesAleksey Kladov2020-07-111-6/+48
| | | | | | | | | | | cc #4944 cc #5317 This doesn't fully close #4944 -- looks like we hit SO in syntax highlighting, when we use `Semantics::expand_macro`. Seems like we need to place expansion limit on the macro itself (store it as a part of MacroCallId?)!
* Goto type definition works for selfAleksey Kladov2020-07-101-0/+5
|
* Re-enable IDE features for incomplete impl blocsAleksey Kladov2020-07-091-2/+3
|
* Remove relative_path dependencyAleksey Kladov2020-07-081-29/+87
|
* Switch to fully dynamically dispatched salsaAleksey Kladov2020-07-072-15/+15
| | | | This improves compile times quite a bit
* Use SmolStrJonas Schievink2020-07-021-3/+4
|
* Fix testsJonas Schievink2020-07-021-1/+27
|
* Record and suggest trait items via ImportMapJonas Schievink2020-07-021-8/+39
|
* ItemTree: Lower fields despite invalid typeJonas Schievink2020-07-011-1/+1
|
* Remove `entries_without_primitives`Jonas Schievink2020-06-302-11/+3
|
* Simplify entry API usageJonas Schievink2020-06-301-21/+12
|
* Reorder importsJonas Schievink2020-06-301-1/+2
|
* Split namespace maps in `ItemScope`Jonas Schievink2020-06-301-34/+79
| | | | Reduces memory usage of the CrateDefMap query by ~130 MB on r-a.
* Cleanup changes leftover from previous tracking attemptPaul Daniel Faria2020-06-271-14/+16
|
* Remove track_parent and parent_map, replace with simple walk in missign ↵Paul Daniel Faria2020-06-272-272/+98
| | | | unsafe validator
* Fix issues caused during rebasePaul Daniel Faria2020-06-271-45/+63
|
* unsafe: Clean up, improve tracking, add debug_assertPaul Daniel Faria2020-06-272-81/+158
| | | | | | Move unsafe_expressions to unsafe_validation.rs, replace vec tracking of child exprs with inline macro, add debug assert to ensure tracked children match walked children exactly
* Track expr parents during lowering, use parent map when checking if unsafe ↵Paul Daniel Faria2020-06-272-88/+165
| | | | exprs are within unsafe blocks
* Rename Expr::UnsafeBlock to Expr::UnsafePaul Daniel Faria2020-06-272-3/+3
|
* Track unsafe blocks, don't trigger missing unsafe diagnostic when unsafe ↵Paul Daniel Faria2020-06-272-2/+9
| | | | exprs within unsafe block
* Merge #5033bors[bot]2020-06-273-20/+198
|\ | | | | | | | | | | | | | | 5033: Order of glob imports should not affect import shadowing r=Nashenas88 a=Nashenas88 Fixes #5032 Co-authored-by: Paul Daniel Faria <[email protected]>
| * Replace simple is_named with matches macroPaul Daniel Faria2020-06-271-10/+1
| |
| * Remove comment that's no longer validPaul Daniel Faria2020-06-261-2/+0
| |
| * Split glob import map to per-ns, switch ExprCollector to use a simpler push_resPaul Daniel Faria2020-06-263-33/+64
| |
| * Track import type outside of , use enum rather than bool to improve readabilityPaul Daniel Faria2020-06-254-40/+73
| |
| * Revert resolution of all glob imports first, replace with tracking of glob ↵Paul Daniel Faria2020-06-254-49/+119
| | | | | | | | imports and shadowing when more specific
| * Order of glob imports should not affect import shadowingPaul Daniel Faria2020-06-252-16/+71
| |
* | Make find_inner_item fallibleJonas Schievink2020-06-262-14/+28
| | | | | | | | | | The ItemTree does not collect incomplete items, such as traits with no name, so the (malformed) AST node might have no corresponding item.
* | find_inner_item: more detailed panic messageJonas Schievink2020-06-261-1/+7
| |
* | Simplify inner item loweringJonas Schievink2020-06-261-61/+30
| |
* | Make VFS join methods fallibleJonas Schievink2020-06-261-0/+16
| |
* | Use ItemTree to answer enum_data queryJonas Schievink2020-06-251-7/+19
| |
* | Use IdRange for variantsJonas Schievink2020-06-253-9/+29
| |
* | Generalize FieldIds -> IdRange<T>Jonas Schievink2020-06-252-13/+14
| |
* | adt.rs: fetch struct/union data from item treeJonas Schievink2020-06-251-19/+49
| |
* | Collect field/variant attrs in ItemTreeJonas Schievink2020-06-256-20/+40
| |
* | Allow iterating fields in the ItemTreeJonas Schievink2020-06-253-10/+28
|/
* Reorder itemsJonas Schievink2020-06-241-76/+76
|