aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_def/src/nameres
Commit message (Collapse)AuthorAgeFilesLines
* Drop rarely used fixture functionalityAleksey Kladov2020-06-231-25/+0
|
* New VFSAleksey Kladov2020-06-232-7/+10
|
* Don't panic on crates depending on themselvesFlorian Diebold2020-06-191-1/+1
| | | | Fixes #3883.
* SimplifyAleksey Kladov2020-06-181-1/+4
|
* Anchor file-system operations to the file, and not to the source root.Aleksey Kladov2020-06-161-4/+4
| | | | | | | | | | | | | | | | Anchoring to the SourceRoot wont' work if the path is absolute: #[path = "/tmp/foo.rs"] mod foo; Anchoring to a file will. However, we *should* anchor, instead of just producing an abs path. I can imagine a situation where, for example, rust-analyzer processes crates from different machines (or, for example, from in-memory git branch), where the same absolute path in different crates might refer to different files in the end!
* Don't guess macro expansion crateAleksey Kladov2020-06-111-17/+22
|
* More direct signature for resolve_pathAleksey Kladov2020-06-051-1/+1
|
* Rename resolve_relative_path -> resolve_pathAleksey Kladov2020-06-051-1/+1
| | | | For things like `concant!(env!("OUT_DIR"))`, we need to support abs paths
* Pass trivially copy types as copykjeremy2020-05-261-1/+1
|
* Switch to new magic marksAleksey Kladov2020-05-207-27/+25
|
* Change union resolve types onlyEdwin Cheng2020-05-041-1/+1
|
* Change favor_types to has_constructorEdwin Cheng2020-05-041-3/+3
|
* Fix testEdwin Cheng2020-05-041-16/+16
|
* Favor types for Record in name resolutionEdwin Cheng2020-05-042-6/+25
|
* Add test in name resolutionsEdwin Cheng2020-05-021-0/+37
|
* Make AttrQuery copyableEdwin Cheng2020-05-011-10/+14
|
* Support local_inner_macrosEdwin Cheng2020-05-012-6/+23
|
* Record definitions in `extern` blocksJonas Schievink2020-04-232-3/+38
|
* Make incremental nameres test harderAleksey Kladov2020-04-111-0/+6
|
* Avoid cyclic queries in name resolution when processing enumsAleksey Kladov2020-04-111-0/+8
|
* Remove code duplicationAleksey Kladov2020-04-111-5/+1
|
* Semicolon tokenAleksey Kladov2020-04-101-1/+1
|
* Be consistent about token accesorsAleksey Kladov2020-04-091-1/+1
|
* Provide more complete AST accessors to support usage in rustcLuca Barbieri2020-04-091-0/+4
|
* Merge #3727bors[bot]2020-03-261-4/+12
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | 3727: Introduce ra_proc_macro r=matklad a=edwin0cheng This PR implemented: 1. Reading dylib path of proc-macro crate from cargo check , similar to how `OUTDIR` is obtained. 2. Added a new crate `ra_proc_macro` and implement the foot-work for reading result from external proc-macro expander. 3. Added a struct `ProcMacroClient` , which will be responsible to the client side communication to the External process. Co-authored-by: Edwin Cheng <[email protected]>
| * Remove deps on tt_mbeEdwin Cheng2020-03-261-3/+3
| |
| * Add ProcMacroClientEdwin Cheng2020-03-251-5/+13
| |
* | Get rid of ItemOrMacroAleksey Kladov2020-03-261-5/+6
| |
* | Minor incremental tests cleanupAleksey Kladov2020-03-261-8/+8
|/
* Remove collect proc_macro definitionsEdwin Cheng2020-03-251-23/+23
|
* Rename to CustomDeriveEdwin Cheng2020-03-251-1/+1
|
* Add basic custom derive loweringEdwin Cheng2020-03-251-7/+53
|
* Simplify Arena to use a generic indexAleksey Kladov2020-03-193-52/+46
|
* Check that no file contains trailing wsAleksey Kladov2020-03-174-107/+107
| | | | rustfmt allows trailing spaces in string literals unfortunately.
* Use `dyn Trait` for working with databseAleksey Kladov2020-03-164-26/+16
| | | | | | | It improves compile time in `--release` mode quite a bit, it doesn't really slow things down and, conceptually, it seems closer to what we want the physical architecture to look like (we don't want to monomorphise EVERYTHING in a single leaf crate).
* Protect against infinite macro expansion in def collectorFlorian Diebold2020-03-131-9/+39
| | | | | | | | | There was a test for this, but it wasn't actually working because the first recursive expansion failed. (The comma...) Even with this limit, that test (when fixed) still takes some time to pass because of the exponential growth of the expansions, so I disabled it and added a different one without growth.
* fix issue 3444Josh Mcguigan2020-03-131-0/+22
|
* Minimize APIAleksey Kladov2020-03-091-1/+1
|
* Use `Index` for CrateGraphAleksey Kladov2020-03-091-3/+3
|
* Less abstract CrateData apiKirill Bulatov2020-03-091-4/+3
|
* Merge #3384bors[bot]2020-03-011-0/+36
|\ | | | | | | | | | | | | | | | | | | | | | | 3384: fix #2377 super::super::* r=flodiebold a=JoshMcguigan Thanks @matklad for the detailed explanation on #2377. I believe this fixes it. One thing I'm not sure about is you said the fix would involve changing `crates/ra_hir_def/src/path/lower/lower.rs`, but I only changed `crates/ra_hir_def/src/path/lower/lower_use.rs`. I'm not sure what kind of test code I'd have to write to expose the issue in `lower.rs`, but I'd be happy to add it if you are able to provide additional guidance. closes #2377 Co-authored-by: Josh Mcguigan <[email protected]>
| * fix #2377 super::super::*Josh Mcguigan2020-03-011-0/+36
| |
* | Rename ast::ImplBlock -> ast::ImplDefAleksey Kladov2020-02-291-3/+3
|/
* Refactor how builtins are resolvedFlorian Diebold2020-02-211-30/+33
| | | | This fixes autocompletion suggesting e.g. self::usize.
* Run cargo +nightly fix --clippy -Z unstable-optionsKirill Bulatov2020-02-182-5/+3
|
* Introduce AsMacroCall traitEdwin Cheng2020-02-171-37/+40
|
* Bump crate resolution limit for large projectsBenjamin Brittain2020-02-141-1/+1
| | | | Change-Id: Ie0221e5bcfd1779cd5e241f96b4489e5bd3854c1
* include requested changeszombiefungus2020-02-022-15/+12
|
* add new ImportAlias enum to differentiate no alias from an _ aliaszombiefungus2020-02-022-3/+17
|
* Publicize debug printing of CrateDefMapAleksey Kladov2020-01-281-41/+2
|