aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_def/src/nameres/collector.rs
Commit message (Collapse)AuthorAgeFilesLines
* Move `AttrId` back into `hir_def`Jonas Schievink2021-05-101-2/+2
|
* Precompute macro fragment kindJonas Schievink2021-05-091-6/+14
|
* Include path in `unresolved-macro-call` diagnosticJonas Schievink2021-04-161-4/+5
|
* Resolve prelude and crate root names in the root DefMapJonas Schievink2021-04-091-1/+2
|
* Store `#[derive]` attribute ID along macro invocJonas Schievink2021-04-091-7/+11
|
* Use named fields in `MacroCallKind`Jonas Schievink2021-04-081-1/+1
|
* Track recursion limit when expanding custom deriveJonas Schievink2021-04-081-1/+1
|
* nameres: collect unnamed constsJonas Schievink2021-04-071-13/+21
|
* Merge #8352bors[bot]2021-04-051-9/+3
|\ | | | | | | | | | | | | | | 8352: Remove dead legacy macro expansion code r=lnicola a=brandondong I was investigating some unrelated macro issue when I noticed this dead code. This legacy macro expansion logic was changed in https://github.com/rust-analyzer/rust-analyzer/pull/8128. Co-authored-by: Brandon <[email protected]>
| * Remove dead legacy macro expansion codeBrandon2021-04-051-9/+3
| |
* | Use shrink_to_fit to reduce DefMap sizesJonas Schievink2021-04-031-1/+3
| |
* | Intern `ModPath` in `Import`Jonas Schievink2021-04-031-2/+6
| | | | | | | | Minor savings only
* | Support `#[rustc_builtin_macro = "builtin_name"]`Jonas Schievink2021-04-031-1/+11
| |
* | Only populate prelude for crate-level DefMapsJonas Schievink2021-04-021-14/+16
| |
* | Intern Attr, MacroCall and Path componentsJonas Schievink2021-04-011-1/+1
| |
* | Basic Support Macro 2.0Edwin Cheng2021-03-271-39/+63
|/
* Merge bang-macros and derives in name resolutionJonas Schievink2021-03-231-86/+79
|
* Expand legacy-scoped macro during collectionJonas Schievink2021-03-211-6/+7
|
* Fix handling of `#![cfg]` in outline module fileJonas Schievink2021-03-191-21/+29
|
* Rename derive-specific APIsJonas Schievink2021-03-191-4/+4
|
* Record custom derive helpers in `DefMap`Jonas Schievink2021-03-181-24/+9
| | | | Also clean up proc macro attribute parsing a bit
* Store an `AstId` for procedural macrosJonas Schievink2021-03-181-6/+7
|
* Make MacroDefId's `AstId` mandatory when possibleJonas Schievink2021-03-181-4/+1
|
* Rename `item_tree` query to `file_item_tree`Jonas Schievink2021-03-181-4/+4
|
* Make `ItemTreeId` its own typeJonas Schievink2021-03-181-6/+6
|
* Fix `use crate as <name>;` importsJonas Schievink2021-03-171-16/+18
|
* Use first early expansion error during nameresJonas Schievink2021-03-171-1/+3
|
* Update crates/hir_def/src/nameres/collector.rsbrandondong2021-03-151-1/+1
| | | Co-authored-by: Jonas Schievink <[email protected]>
* Fix incorrect diagnositics for failing built in eager macrosBrandon2021-03-141-10/+23
|
* Delete `ContainerId`Jonas Schievink2021-03-091-12/+11
|
* Stop using `ContainerId` in `AssocContainerId`Jonas Schievink2021-03-091-3/+3
|
* Use upstream cov-markLaurențiu Nicola2021-03-081-9/+8
|
* For unresolved macros, hightlight only the last segmentAleksey Kladov2021-02-281-33/+48
|
* is_visible_from_def_map: handle block expressionsJonas Schievink2021-02-231-2/+2
|
* Make `ModPath`'s representation privateJonas Schievink2021-02-041-2/+2
|
* Don't keep the parent DefMap alive via ArcJonas Schievink2021-02-041-4/+5
| | | | | This seems like it could easily leak a lot of memory since we don't currently run GC
* Use the right `DefMap` when looking up modulesJonas Schievink2021-02-021-1/+7
|
* Honor #![macro_use] in mod source filesLukas Wirth2021-01-311-8/+9
|
* Fix incorrect `FileId` and remove broken shortcutJonas Schievink2021-01-281-7/+6
| | | | | Apparently we were using the crate's root file instead of the file containing the block.
* Fix legacy macro resolution in block expressionsJonas Schievink2021-01-271-1/+4
|
* Create all `ModuleId`s through a `DefMap` methodJonas Schievink2021-01-251-17/+10
| | | | | `ModuleId` needs to be able to represent blocks, and only the associated `DefMap` will know how to construct that `ModuleId`
* Obtain `ModuleId`'s `DefMap` through a methodJonas Schievink2021-01-221-1/+1
|
* Add name resolution query for block expressionsJonas Schievink2021-01-211-17/+41
|
* Rename `CrateDefMap` to `DefMap`Jonas Schievink2021-01-181-7/+7
|
* prepare to publish el libro de arenaAleksey Kladov2021-01-141-1/+1
|
* Fixed typos in code commentsVincent Esche2021-01-091-4/+4
|
* Emit diagnostics for unresolved item-level macrosJonas Schievink2021-01-051-1/+32
|
* More accurate `#[derive]` parsingJonas Schievink2020-12-191-14/+14
| | | | This now allows full paths to the derive macro
* Don't look at attributes when lowering to ItemTreeJonas Schievink2020-12-181-5/+26
| | | | Resolves 2 `cfg_attr` FIXMEs
* Refactor attributes API to allow handling cfg_attrJonas Schievink2020-12-181-19/+29
|