aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/nameres
Commit message (Collapse)AuthorAgeFilesLines
* don't special case path attrAleksey Kladov2019-10-102-27/+15
|
* simplify a bitAleksey Kladov2019-10-102-10/+13
|
* simplify some testsAleksey Kladov2019-10-101-90/+24
|
* Refactor and fix some more edge cases around name resolutionAleksey Kladov2019-10-104-192/+209
|
* macro DSL for cfg in testsAleksey Kladov2019-10-081-8/+5
|
* use slightly more idiomatic api for cfgAleksey Kladov2019-10-081-6/+8
|
* OptimizeuHOOCCOOHu2019-10-022-7/+13
|
* Refactor CfgOptions insideuHOOCCOOHu2019-10-021-3/+3
|
* Support cfg attribute on impl blocksuHOOCCOOHu2019-10-022-7/+2
|
* Enable CfgOptions `test` for workspace cratesuHOOCCOOHu2019-10-021-0/+70
|
* Introduce ra_cfg to parse and evaluate CfgExpruHOOCCOOHu2019-10-022-26/+47
|
* Pass attributes as token tree to DefCollectoruHOOCCOOHu2019-10-022-20/+51
|
* Merge branch 'master' into feature/issue/1856Alexander Andreev2019-09-301-3/+2
|\ | | | | | | | | # Conflicts: # crates/ra_assists/src/ast_editor.rs
| * Fix API of AttruHOOCCOOHu2019-09-301-3/+2
| |
* | Added test for check doc strings in crates.Alexander Andreev2019-09-303-0/+6
|/ | | | #1856
* FixuHOOCCOOHu2019-09-271-1/+1
|
* Support `$crate` in item and expr place.uHOOCCOOHu2019-09-262-15/+131
|
* Store crate info in `MacroDefId`uHOOCCOOHu2019-09-261-1/+4
|
* Remove redundant clone()Shotaro Yamada2019-09-252-5/+2
|
* fix module attr pathgfreezy2019-09-203-2/+40
|
* introduce FromSource traitEkaterina Babshukova2019-09-191-2/+10
|
* remove confusing codeAleksey Kladov2019-09-171-31/+1
| | | | | | I must confess I don't really understand what this code is trying to do, but it definitely misreports changes during fixedpoint iteration, and no tests fail if I remove it, so...
* make PerNs non-genericAleksey Kladov2019-09-132-18/+18
|
* Specify desirable namespace when calling resolveAleksey Kladov2019-09-131-9/+0
| | | | That way, we are able to get rid of a number of unreachable statements
* rename AdtDef -> AdtAleksey Kladov2019-09-121-3/+3
|
* make various enums "inherit" from AdtDefAleksey Kladov2019-09-121-3/+3
|
* add macros with local_inner_macros argumentJasperDeSutter2019-09-122-1/+40
|
* Merge #1796bors[bot]2019-09-111-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1796: Support completion for macros r=matklad a=uHOOCCOOHu This is based on #1795 , and fixes #1727 Also prettify hover text of macros. Some screenshorts below: Completion in item place. <img width="416" alt="Screenshot_20190910_134056" src="https://user-images.githubusercontent.com/14816024/64587159-fa72da00-d3d0-11e9-86bb-c98f169ec08d.png"> After pressing `tab`. <img width="313" alt="Screenshot_20190910_134111" src="https://user-images.githubusercontent.com/14816024/64587160-fa72da00-d3d0-11e9-9464-21e3f6957bd7.png"> Complete macros from `std`. <img width="588" alt="Screenshot_20190910_134147" src="https://user-images.githubusercontent.com/14816024/64587161-fb0b7080-d3d0-11e9-866e-5161f0d1b546.png"> Hover text. <img width="521" alt="Screenshot_20190910_134242" src="https://user-images.githubusercontent.com/14816024/64587162-fb0b7080-d3d0-11e9-8f09-ad17e3f6702a.png"> Co-authored-by: uHOOCCOOHu <[email protected]>
| * Fix typouHOOCCOOHu2019-09-111-1/+1
| |
* | cleanup expansion to item listAleksey Kladov2019-09-101-1/+3
|/
* StripuHOOCCOOHu2019-09-091-9/+3
|
* Make macro scope a real name scopeuHOOCCOOHu2019-09-094-137/+265
| | | | Fix some details about module scoping
* Fix testuHOOCCOOHu2019-09-081-3/+0
|
* Rename `textual_macro` -> `legacy_macro`uHOOCCOOHu2019-09-082-21/+18
| | | | Add comments
* Revert "Replace with immutable map to avoid heavy cloning"uHOOCCOOHu2019-09-081-3/+0
| | | | | | This reverts commit 2c494eb803c88ef5d23607c3b156fce60c2b8076. See: https://github.com/rust-analyzer/rust-analyzer/pull/1784#issuecomment-529119924
* Replace with immutable map to avoid heavy cloninguHOOCCOOHu2019-09-081-0/+3
|
* Resolve textual scoped macros inside itemuHOOCCOOHu2019-09-082-8/+24
|
* Support textual scoped macrosuHOOCCOOHu2019-09-083-34/+153
|
* cleanup hir db importsAleksey Kladov2019-09-083-6/+7
|
* don't cycle when processing macros from prelude in preludeAleksey Kladov2019-09-072-2/+33
|
* Merge #1779bors[bot]2019-09-061-1/+3
|\ | | | | | | | | | | | | | | 1779: minor r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * minorAleksey Kladov2019-09-061-1/+3
| |
* | make source_root API more abstractAleksey Kladov2019-09-061-6/+8
|/
* Merge #1771bors[bot]2019-09-052-18/+90
|\ | | | | | | | | | | | | | | | | | | | | 1771: Further tweak for macro_use on extern crate r=matklad a=uHOOCCOOHu Some more tweaks to #1743 to behave more like `rustc` 1. Hoist macros from `#[macro_use] extern crate`, so that they can be used before `extern crate`. 2. Implicit `#[macro_use]` for `prelude` if exists Co-authored-by: uHOOCCOOHu <[email protected]>
| * Hoist macros from extern crate with macro_useuHOOCCOOHu2019-09-052-14/+20
| |
| * Consider prelude to be `macro_use`uHOOCCOOHu2019-09-052-4/+70
| |
* | rename test file to match impl fileAleksey Kladov2019-09-052-1/+1
| |
* | move mod resolution to a separate fileAleksey Kladov2019-09-052-183/+189
|/
* Fix typouHOOCCOOHu2019-09-051-2/+2
|
* Let `macro_use` bypass module scopeuHOOCCOOHu2019-09-052-35/+52
|