Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Provide more complete AST accessors to support usage in rustc | Luca Barbieri | 2020-04-09 | 1 | -0/+4 |
| | |||||
* | Merge #3727 | bors[bot] | 2020-03-26 | 1 | -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_mbe | Edwin Cheng | 2020-03-26 | 1 | -3/+3 |
| | | |||||
| * | Add ProcMacroClient | Edwin Cheng | 2020-03-25 | 1 | -5/+13 |
| | | |||||
* | | Get rid of ItemOrMacro | Aleksey Kladov | 2020-03-26 | 1 | -5/+6 |
| | | |||||
* | | Minor incremental tests cleanup | Aleksey Kladov | 2020-03-26 | 1 | -8/+8 |
|/ | |||||
* | Remove collect proc_macro definitions | Edwin Cheng | 2020-03-25 | 1 | -23/+23 |
| | |||||
* | Rename to CustomDerive | Edwin Cheng | 2020-03-25 | 1 | -1/+1 |
| | |||||
* | Add basic custom derive lowering | Edwin Cheng | 2020-03-25 | 1 | -7/+53 |
| | |||||
* | Simplify Arena to use a generic index | Aleksey Kladov | 2020-03-19 | 3 | -52/+46 |
| | |||||
* | Check that no file contains trailing ws | Aleksey Kladov | 2020-03-17 | 4 | -107/+107 |
| | | | | rustfmt allows trailing spaces in string literals unfortunately. | ||||
* | Use `dyn Trait` for working with databse | Aleksey Kladov | 2020-03-16 | 4 | -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 collector | Florian Diebold | 2020-03-13 | 1 | -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 3444 | Josh Mcguigan | 2020-03-13 | 1 | -0/+22 |
| | |||||
* | Minimize API | Aleksey Kladov | 2020-03-09 | 1 | -1/+1 |
| | |||||
* | Use `Index` for CrateGraph | Aleksey Kladov | 2020-03-09 | 1 | -3/+3 |
| | |||||
* | Less abstract CrateData api | Kirill Bulatov | 2020-03-09 | 1 | -4/+3 |
| | |||||
* | Merge #3384 | bors[bot] | 2020-03-01 | 1 | -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 Mcguigan | 2020-03-01 | 1 | -0/+36 |
| | | |||||
* | | Rename ast::ImplBlock -> ast::ImplDef | Aleksey Kladov | 2020-02-29 | 1 | -3/+3 |
|/ | |||||
* | Refactor how builtins are resolved | Florian Diebold | 2020-02-21 | 1 | -30/+33 |
| | | | | This fixes autocompletion suggesting e.g. self::usize. | ||||
* | Run cargo +nightly fix --clippy -Z unstable-options | Kirill Bulatov | 2020-02-18 | 2 | -5/+3 |
| | |||||
* | Introduce AsMacroCall trait | Edwin Cheng | 2020-02-17 | 1 | -37/+40 |
| | |||||
* | Bump crate resolution limit for large projects | Benjamin Brittain | 2020-02-14 | 1 | -1/+1 |
| | | | | Change-Id: Ie0221e5bcfd1779cd5e241f96b4489e5bd3854c1 | ||||
* | include requested changes | zombiefungus | 2020-02-02 | 2 | -15/+12 |
| | |||||
* | add new ImportAlias enum to differentiate no alias from an _ alias | zombiefungus | 2020-02-02 | 2 | -3/+17 |
| | |||||
* | Publicize debug printing of CrateDefMap | Aleksey Kladov | 2020-01-28 | 1 | -41/+2 |
| | |||||
* | Fix various names, e.g. Iterator not resolving in core prelude | Florian Diebold | 2020-01-11 | 2 | -1/+46 |
| | | | | | | | | | | | | | Basically, `Iterator` is re-exported via several steps, which happened to not be resolved yet when we got to the prelude import, but since the name resolved to the reexport from `core::iter` (just to no actual items), we gave up trying to resolve it further. Maybe part of the problem is that we can have `PartialResolvedImport::Unresolved` or `PartialResolvedImport::Indeterminate` with `None` in all namespaces, and handle them differently. Fixes #2683. | ||||
* | Remove a duplicate line in `collect_defs` | Michal Terepeta | 2020-01-03 | 1 | -1/+0 |
| | | | | Signed-off-by: Michal Terepeta <[email protected]> | ||||
* | visible_from -> is_visible_from | Florian Diebold | 2019-12-27 | 1 | -3/+3 |
| | |||||
* | Fix cross-crate glob privacy handling | Florian Diebold | 2019-12-26 | 2 | -6/+21 |
| | |||||
* | Rename ResolvedVisibility -> Visibility | Florian Diebold | 2019-12-26 | 2 | -27/+22 |
| | |||||
* | Rename Visibility -> RawVisibility | Florian Diebold | 2019-12-26 | 3 | -14/+14 |
| | |||||
* | Handle privacy for modules | Florian Diebold | 2019-12-26 | 3 | -11/+36 |
| | |||||
* | Take visibility into account for glob imports | Florian Diebold | 2019-12-26 | 4 | -29/+139 |
| | |||||
* | Keep track of visibility during def collection | Florian Diebold | 2019-12-26 | 2 | -23/+55 |
| | |||||
* | Collect visibility of items during nameres | Florian Diebold | 2019-12-26 | 2 | -3/+41 |
| | |||||
* | Rudimentary name resolution for local items | Aleksey Kladov | 2019-12-22 | 1 | -1/+1 |
| | |||||
* | Simplify | Aleksey Kladov | 2019-12-22 | 1 | -10/+4 |
| | |||||
* | Refactor | Aleksey Kladov | 2019-12-22 | 1 | -5/+4 |
| | |||||
* | Simplify | Aleksey Kladov | 2019-12-22 | 3 | -25/+16 |
| | |||||
* | Remove unused parameters | Aleksey Kladov | 2019-12-22 | 1 | -22/+12 |
| | |||||
* | Remove import field | Aleksey Kladov | 2019-12-22 | 1 | -8/+6 |
| | |||||
* | Separate defs from imports | Aleksey Kladov | 2019-12-22 | 1 | -0/+2 |
| | |||||
* | Refactor PerNs construction | Aleksey Kladov | 2019-12-22 | 1 | -48/+33 |
| | |||||
* | More profiling | Aleksey Kladov | 2019-12-21 | 1 | -0/+2 |
| | |||||
* | Move LocalImportId | Aleksey Kladov | 2019-12-21 | 2 | -14/+15 |
| | |||||
* | Remove import source map | Aleksey Kladov | 2019-12-21 | 1 | -44/+12 |
| | |||||
* | Remove import from resolution | Aleksey Kladov | 2019-12-21 | 1 | -5/+5 |
| | |||||
* | Remove imports from hir | Aleksey Kladov | 2019-12-21 | 1 | -6/+0 |
| |