aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_def
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Clean up and fix inner item collection a bitJonas Schievink2020-06-242-7/+38
|
* Use a HashMap instead of VecJonas Schievink2020-06-241-8/+9
| | | | | This is no longer enforcing stack discipline, so a Vec isn't necessary or helpful
* Remove unneeded HirFileId argumentJonas Schievink2020-06-242-7/+5
|
* Shrink arenas after building ItemTreeJonas Schievink2020-06-241-0/+46
|
* ItemTree: Use more boxed slicesJonas Schievink2020-06-244-15/+22
|
* Don't allocate empty genericsJonas Schievink2020-06-244-40/+78
|
* Don't allocate common visibilitiesJonas Schievink2020-06-245-75/+142
|
* Remove file id from item treeJonas Schievink2020-06-243-31/+25
| | | | It's not needed, and `source` is only used by tests anyways
* Slightly reduce ItemTree memory footprintJonas Schievink2020-06-243-53/+68
|
* Merge item tree traitsJonas Schievink2020-06-243-21/+16
| | | | | The Source trait isn't needed anymore since we no longer merge extern crate items with use items.
* Generate ModItem via macroJonas Schievink2020-06-241-105/+60
|
* Address more commentsJonas Schievink2020-06-242-5/+4
|
* if let else -> matchJonas Schievink2020-06-241-19/+21
|
* Unify and test attribute handlingJonas Schievink2020-06-245-33/+227
|
* Collect inner items in expression macrosJonas Schievink2020-06-244-14/+44
|
* Make generics and attr queries use ItemTreeJonas Schievink2020-06-245-21/+79
| | | | Now it's fast
* Record HirFileId's in profilerJonas Schievink2020-06-241-1/+1
|