Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Merge #2179 | bors[bot] | 2019-11-06 | 1 | -0/+1 | |
|\ | | | | | | | | | | | | | | | | | | | | | | | 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 attributes | Martin Asquino | 2019-11-04 | 1 | -0/+1 | |
| | | ||||||
* | | Move Namespace enum closer to usage | Aleksey Kladov | 2019-11-04 | 1 | -4/+1 | |
| | | ||||||
* | | Rename MockDatabase -> TestDB | Aleksey Kladov | 2019-11-04 | 1 | -2/+2 | |
|/ | | | | Actually working rename is sooo useful! | |||||
* | Remove last traces of nameres from hir | Aleksey Kladov | 2019-11-03 | 1 | -2/+4 | |
| | ||||||
* | Move CrateDefMap to hir_def | Aleksey Kladov | 2019-11-03 | 1 | -0/+1 | |
| | ||||||
* | Move Source to hir_expand | Aleksey Kladov | 2019-11-02 | 1 | -2/+2 | |
| | ||||||
* | move builtin types to hir_def | Aleksey Kladov | 2019-10-31 | 1 | -3/+4 | |
| | ||||||
* | push name down to hir_expand | Aleksey Kladov | 2019-10-30 | 1 | -2/+1 | |
| | ||||||
* | push either to hir_expand | Aleksey Kladov | 2019-10-30 | 1 | -9/+8 | |
| | ||||||
* | remove forward pointer for attrs | Aleksey Kladov | 2019-10-30 | 1 | -1/+0 | |
| | ||||||
* | fix compilation | Aleksey Kladov | 2019-10-30 | 1 | -2/+1 | |
| | ||||||
* | remove forward pointer for type_ref | Aleksey Kladov | 2019-10-30 | 1 | -2/+1 | |
| | ||||||
* | remove forward pointer to Path | Aleksey Kladov | 2019-10-30 | 1 | -3/+4 | |
| | ||||||
* | remove forward pointer for name | Aleksey Kladov | 2019-10-30 | 1 | -3/+3 | |
| | ||||||
* | move raw_items to hir_def | Aleksey Kladov | 2019-10-30 | 1 | -4/+1 | |
| | ||||||
* | cleanup | Aleksey Kladov | 2019-10-29 | 1 | -3/+4 | |
| | ||||||
* | remove empty module | Aleksey Kladov | 2019-10-29 | 1 | -9/+6 | |
| | ||||||
* | reduce visibility | Aleksey Kladov | 2019-10-29 | 1 | -1/+1 | |
| | ||||||
* | Avoid cloning `Arc<[T]>` into a vec if possible | Shotaro Yamada | 2019-10-14 | 1 | -0/+1 | |
| | ||||||
* | add <> for type aliases as well | Aleksey Kladov | 2019-10-09 | 1 | -1/+1 | |
| | ||||||
* | Introduce ra_cfg to parse and evaluate CfgExpr | uHOOCCOOHu | 2019-10-02 | 1 | -0/+1 | |
| | ||||||
* | Added test for check doc strings in crates. | Alexander Andreev | 2019-09-30 | 1 | -2/+2 | |
| | | | | #1856 | |||||
* | introduce FromSource trait | Ekaterina Babshukova | 2019-09-19 | 1 | -0/+3 | |
| | ||||||
* | Remove TraitItem and ImplItem in favor of AssocItem | Florian Diebold | 2019-09-17 | 1 | -1/+1 | |
| | ||||||
* | Refactor a bit to prepare for resolving trait assoc items | Florian Diebold | 2019-09-17 | 1 | -3/+3 | |
| | ||||||
* | Specify desirable namespace when calling resolve | Aleksey Kladov | 2019-09-13 | 1 | -1/+1 | |
| | | | | That way, we are able to get rid of a number of unreachable statements | |||||
* | rename AdtDef -> Adt | Aleksey Kladov | 2019-09-12 | 1 | -1/+1 | |
| | ||||||
* | generalize impl_froms to nested enums | Aleksey Kladov | 2019-09-12 | 1 | -1/+8 | |
| | ||||||
* | make various enums "inherit" from AdtDef | Aleksey Kladov | 2019-09-12 | 1 | -2/+2 | |
| | ||||||
* | introduce hir debugging infra | Aleksey Kladov | 2019-09-09 | 1 | -0/+1 | |
| | | | | | | | | | | | | 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 | |||||
* | cleanup hir db imports | Aleksey Kladov | 2019-09-08 | 1 | -1/+0 | |
| | ||||||
* | Make type walking infrastructure a bit nicer | Florian Diebold | 2019-09-03 | 1 | -1/+3 | |
| | | | | | If/when we switch to using Chalk's Ty, we'll need to replace this by its `Fold` trait, but I didn't want to import the whole thing just yet. | |||||
* | Add an expr_source method analogous to the source methods in the code model | Florian Diebold | 2019-09-02 | 1 | -3/+3 | |
| | | | | ... and use that instead of exposing the source map. | |||||
* | implement durability | Aleksey Kladov | 2019-08-15 | 1 | -0/+2 | |
| | ||||||
* | highlight mutable variables differently | Ekaterina Babshukova | 2019-07-18 | 1 | -0/+1 | |
| | ||||||
* | complete fields in enum variants | Ekaterina Babshukova | 2019-07-12 | 1 | -1/+1 | |
| | ||||||
* | Constify KnownName's | Muhammad Mominul Huque | 2019-07-07 | 1 | -1/+1 | |
| | ||||||
* | allow rustfmt to reorder imports | Aleksey Kladov | 2019-07-04 | 1 | -24/+18 | |
| | | | | | | This wasn't a right decision in the first place, the feature flag was broken in the last rustfmt release, and syntax highlighting of imports is more important anyway | |||||
* | make sure that CrateDefMap is independent from syntax | Aleksey Kladov | 2019-06-26 | 1 | -1/+1 | |
| | ||||||
* | rename XSignature -> XData | Aleksey Kladov | 2019-06-18 | 1 | -2/+2 | |
| | ||||||
* | move docs under code model | Aleksey Kladov | 2019-06-11 | 1 | -2/+1 | |
| | ||||||
* | move source to a seaparate file | Aleksey Kladov | 2019-06-11 | 1 | -1/+2 | |
| | ||||||
* | Introduce HasSource trait | Aleksey Kladov | 2019-06-11 | 1 | -1/+1 | |
| | ||||||
* | use Source more | Aleksey Kladov | 2019-06-11 | 1 | -1/+1 | |
| | ||||||
* | one macro def should be enough | Aleksey Kladov | 2019-06-08 | 1 | -1/+1 | |
| | ||||||
* | don't cache parses twice | Aleksey Kladov | 2019-06-02 | 1 | -1/+1 | |
| | | | | | | | | | Before this commit, `Parse`s for original file ended up two times in salsa's db: first, when we parse original file, and second, when we parse macro or a file. Given that parse trees are the worst ofenders in terms of memory, it makes sense to make sure we store them only once. | |||||
* | add AstDatabase | Aleksey Kladov | 2019-06-02 | 1 | -1/+1 | |
| | ||||||
* | add ModuleDef::BuiltInType | Aleksey Kladov | 2019-05-30 | 1 | -2/+3 | |
| | ||||||
* | Use ItemOrMacro in item resolution | Edwin Cheng | 2019-05-26 | 1 | -1/+1 | |
| |