aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/db.rs
Commit message (Collapse)AuthorAgeFilesLines
* Crate -> CrateIdAleksey Kladov2019-11-271-7/+7
|
* DecoupleAleksey Kladov2019-11-261-12/+9
|
* Remove ns-polymorphic type_for_defAleksey Kladov2019-11-261-4/+7
|
* id-ify impls_in_crate_queryAleksey Kladov2019-11-261-2/+2
|
* Use GenericDefIdMoreAleksey Kladov2019-11-251-3/+3
|
* Use GenericDefId moreAleksey Kladov2019-11-251-2/+2
|
* Switch to variant-granularity field type inferenceAleksey Kladov2019-11-241-9/+14
|
* Remove ids moduleAleksey Kladov2019-11-241-4/+6
|
* Remove unneded supertraitAleksey Kladov2019-11-231-1/+1
|
* Get rid of DefDatabase2Aleksey Kladov2019-11-231-3/+1
|
* Move docs to hir_defAleksey Kladov2019-11-231-12/+5
|
* Move lang_items to hir_defAleksey Kladov2019-11-231-17/+6
|
* Move attrs query to hir_defAleksey Kladov2019-11-231-4/+0
|
* Move const&static date to hir_defAleksey Kladov2019-11-221-12/+6
|
* Move FunctionData to hir_defAleksey Kladov2019-11-221-8/+5
|
*-. Merge #2348 #2352bors[bot]2019-11-221-6/+2
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2348: Add support for stringify! builtin macro r=matklad a=piotr-szpetkowski Refs #2212 First time ever contributing here, hopefully it's ok. 2352: Move TypeAlias to hir_def r=matklad a=matklad Co-authored-by: Piotr Szpetkowski <[email protected]> Co-authored-by: Aleksey Kladov <[email protected]>
| | * Move TypeAlias to hir_defAleksey Kladov2019-11-221-6/+2
| |/
* / Encapsulate AttrsAleksey Kladov2019-11-221-2/+2
|/
* Remove old hir::generics moduleAleksey Kladov2019-11-211-3/+2
|
* Move generic_params query to HIRAleksey Kladov2019-11-201-6/+4
|
* Move constants to new IDAleksey Kladov2019-11-201-1/+0
| | | | This allows us to get rid of trait item index
* Move traits to hir_defAleksey Kladov2019-11-201-8/+2
|
* Move Generics to hir_defAleksey Kladov2019-11-201-1/+1
|
* Upgrade Chalk againFlorian Diebold2019-11-161-5/+12
|
* Upgrade ChalkFlorian Diebold2019-11-161-2/+13
| | | | | Associated type values (in impls) are now a separate entity in Chalk, so we have to intern separate IDs for them.
* Remove old impls infrastructureAleksey Kladov2019-11-151-15/+5
|
* Move body queries to hir_defAleksey Kladov2019-11-141-14/+5
|
* Move scopes to hir_defAleksey Kladov2019-11-141-1/+1
|
* Move expression lowering to hir_defAleksey Kladov2019-11-121-2/+2
|
* Minor cleanupAleksey Kladov2019-11-121-7/+5
|
* Merge #2179bors[bot]2019-11-061-0/+4
|\ | | | | | | | | | | | | | | | | | | | | | | 2179: Use HirDatabase to compute `is_deprecated` r=matklad a=martskins This PR fixes #2167 by introducing `attributes_query` and adding `fn attrs(&self, def: crate::AttrDef) -> Option<Arc<[Attr]>>;` to the `DefDatabase` trait. I'm a little concerned about the two spots in `attributes_query` where code is repeated, but I couldn't figure out a way to avoid that, so.. I welcome suggestions :smile: Co-authored-by: Martin Asquino <[email protected]>
| * HirDatabase stored attributesMartin Asquino2019-11-041-0/+4
| |
* | Move Namespace enum closer to usageAleksey Kladov2019-11-041-2/+2
|/
* Remove last traces of nameres from hirAleksey Kladov2019-11-031-2/+1
|
* Move CrateDefMap to hir_defAleksey Kladov2019-11-031-6/+3
|
* move struct & enum data to hir_defAleksey Kladov2019-10-311-11/+4
|
* fix compilationAleksey Kladov2019-10-301-2/+5
|
* move raw_items to hir_defAleksey Kladov2019-10-301-13/+4
|
* Move ids to hir_def crateAleksey Kladov2019-10-301-25/+3
|
* move ty interning to tyAleksey Kladov2019-10-301-6/+6
|
* rename hir_def -> hir_expandAleksey Kladov2019-10-291-1/+1
|
* move expansion-related code to a separate crateAleksey Kladov2019-10-291-35/+9
|
* start ra_hir_def crateAleksey Kladov2019-10-291-2/+2
|
* minor cleanupAleksey Kladov2019-10-161-9/+9
|
* Added test for check doc strings in crates.Alexander Andreev2019-09-301-0/+2
| | | | #1856
* Fix retrieval of the Fn traitsFlorian Diebold2019-09-251-2/+2
| | | | | I used the wrong query, so it only used the lang items from the respective crate...
* Make closures impl closure traitsFlorian Diebold2019-09-241-3/+3
|
* Handle associated type shorthand (`T::Item`)Florian Diebold2019-09-221-0/+7
| | | | | | | | | | | | This is only allowed for generic parameters (including `Self` in traits), and special care needs to be taken to not run into cycles while resolving it, because we use the where clauses of the generic parameter to find candidates for the trait containing the associated type, but the where clauses may themselves contain instances of short-hand associated types. In some cases this is even fine, e.g. we might have `T: Trait<U::Item>, U: Iterator`. If there is a cycle, we'll currently panic, which isn't great, but better than overflowing the stack...
* introduce hir debugging infraAleksey Kladov2019-09-091-1/+2
| | | | | | | | | | | | This is to make debugging rust-analyzer easier. The idea is that `dbg!(krate.debug(db))` will print the actual, fuzzy crate name, instead of precise ID. Debug printing infra is a separate thing, to make sure that the actual hir doesn't have access to global information. Do not use `.debug` for `log::` logging: debugging executes queries, and might introduce unneded dependencies to the crate graph
* slightly simplify expr lowering flowAleksey Kladov2019-09-031-2/+2
|