Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Stop expanding UseTrees during ItemTree lowering | Jonas Schievink | 2021-05-26 | 1 | -11/+119 |
| | |||||
* | internal: intern `TypeBound`s | Jonas Schievink | 2021-05-24 | 1 | -2/+2 |
| | | | | | Doesn't save much memory (~2 mb), but interning things is generally a good pattern to follow | ||||
* | internal: document ItemTree design | Jonas Schievink | 2021-05-23 | 1 | -2/+32 |
| | |||||
* | Add an ItemTree pretty-printer | Jonas Schievink | 2021-05-21 | 1 | -0/+11 |
| | |||||
* | Remove `StructDefKind` | Jonas Schievink | 2021-05-21 | 1 | -11/+0 |
| | |||||
* | Don't lower extern block in the ItemTree | Jonas Schievink | 2021-05-21 | 1 | -0/+13 |
| | |||||
* | Precompute macro fragment kind | Jonas Schievink | 2021-05-09 | 1 | -1/+2 |
| | |||||
* | Don't store call-site text offsets in hygiene info | Jonas Schievink | 2021-05-06 | 1 | -1/+1 |
| | |||||
* | Remove `ItemTree::all_inner_items` | Jonas Schievink | 2021-04-21 | 1 | -7/+0 |
| | |||||
* | hir_def: various cleanups | cynecx | 2021-04-18 | 1 | -4/+4 |
| | |||||
* | hir_def: ignore ast::Type in file_item_tree query | cynecx | 2021-04-17 | 1 | -0/+5 |
| | |||||
* | Support macros in pattern position | Jonas Schievink | 2021-04-11 | 1 | -0/+5 |
| | |||||
* | Intern `GenericParams` | Jonas Schievink | 2021-04-05 | 1 | -54/+7 |
| | | | | | Also share the same instance between `ItemTree` and `generic_params` query. | ||||
* | Check if bitflags deps pulls its weight | Aleksey Kladov | 2021-04-04 | 1 | -14/+15 |
| | | | | | | | | Bitflags is generally a good dependency -- it's lightweight, well maintained and embraced by the ecosystem. I wonder, however, do we really need it? Doesn't feel like it adds much to be honest. | ||||
* | Use bitflags to compress function properties | Jonas Schievink | 2021-04-03 | 1 | -14/+17 |
| | | | | Very minor savings, only 1 MB or so | ||||
* | Intern `ModPath` in `Import` | Jonas Schievink | 2021-04-03 | 1 | -1/+1 |
| | | | | Minor savings only | ||||
* | Intern Attr, MacroCall and Path components | Jonas Schievink | 2021-04-01 | 1 | -1/+1 |
| | |||||
* | Global TypeRef/TraitRef interning | Jonas Schievink | 2021-04-01 | 1 | -83/+9 |
| | |||||
* | Rename target_ty to self_ty | Lukas Wirth | 2021-03-29 | 1 | -1/+1 |
| | |||||
* | Lower traits to TraitRef instead of TypeRef | Lukas Wirth | 2021-03-29 | 1 | -2/+39 |
| | |||||
* | Fix recursive macro statement expansion | Edwin Cheng | 2021-03-25 | 1 | -9/+0 |
| | |||||
* | Merge #8082 | bors[bot] | 2021-03-18 | 1 | -0/+4 |
|\ | | | | | | | | | | | | | | | | | | | | | | | 8082: Proper handle inner recursive macro rules cases r=edwin0cheng a=edwin0cheng Fixes #7645 cc @jonas-schievink bors r+ Co-authored-by: Edwin Cheng <[email protected]> | ||||
| * | Handle inner recursive macro rules cases | Edwin Cheng | 2021-03-18 | 1 | -0/+4 |
| | | |||||
* | | Rename `item_tree` query to `file_item_tree` | Jonas Schievink | 2021-03-18 | 1 | -2/+2 |
| | | |||||
* | | Make `ItemTreeId` its own type | Jonas Schievink | 2021-03-18 | 1 | -1/+41 |
| | | |||||
* | | Apply `#[cfg]`s when computing function signatures | Jonas Schievink | 2021-03-17 | 1 | -0/+6 |
| | | |||||
* | | ItemTree: lower attributes on fn parameters | Jonas Schievink | 2021-03-17 | 1 | -4/+14 |
|/ | |||||
*-. | Merge #7900 #8000 | bors[bot] | 2021-03-16 | 1 | -4/+15 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7900: show function params in completion detail r=matklad a=JoshMcguigan This resolves #7842 by updating the detail for function completions from `-> T` to `fn(T, U) -> V`. I added an expicit unit test for this, `ide_completion::render::fn_detail_includes_args_and_return_type`, which passes. Lots of other unit tests fail (~60 of them) due to this change, although I believe the failures are purely cosmetic (they were testing the exact format of this output). I'm happy to go update those tests, but before I do that I'd like to make sure this is in fact the format we want for the detail? edit - I realized `UPDATE_EXPECT=1 cargo test` automatically updates `expect!` tests. Big :+1: to whoever worked on that! So I'll go ahead and update all these tests soon. But I still would like to confirm `fn(T, U) -> V` is the desired content in the `detail` field. 8000: Use hir formatter for hover text r=matklad a=oxalica Fix #2765 , (should) fix #4665 Co-authored-by: Josh Mcguigan <[email protected]> Co-authored-by: oxalica <[email protected]> | ||||
| | * | Use hir formatter more | oxalica | 2021-03-15 | 1 | -1/+3 |
| | | | |||||
| | * | Introduce FunctionQualifier for hir::FunctionData | oxalica | 2021-03-15 | 1 | -3/+12 |
| | | | |||||
* | | | Fix macro expansion for statements w/o semicolon | Edwin Cheng | 2021-03-16 | 1 | -0/+5 |
| |/ |/| | |||||
* | | Remove `ItemTree::source` | Jonas Schievink | 2021-03-12 | 1 | -12/+0 |
|/ | | | | `HasSource` should be used instead | ||||
* | Use upstream cov-mark | Laurențiu Nicola | 2021-03-08 | 1 | -1/+0 |
| | |||||
* | Make `ModPath`'s representation private | Jonas Schievink | 2021-02-04 | 1 | -5/+3 |
| | |||||
* | Intern `TypeRef`s in the containing `ItemTree` | Jonas Schievink | 2021-02-04 | 1 | -8/+46 |
| | |||||
* | Use block_def_map in body lowering | Jonas Schievink | 2021-02-03 | 1 | -1/+5 |
| | |||||
* | Revert "Use block_def_map in body lowering" | Jonas Schievink | 2021-02-02 | 1 | -5/+1 |
| | |||||
* | Use block_def_map in body lowering | Jonas Schievink | 2021-02-01 | 1 | -1/+5 |
| | |||||
* | ItemTree: Treat items in `MacroStmts` as top-level | Jonas Schievink | 2021-01-28 | 1 | -4/+6 |
| | |||||
* | Derive Default on ItemTree | Laurențiu Nicola | 2021-01-25 | 1 | -11/+2 |
| | |||||
* | Include `countme` crate to count important data structures. | Aleksey Kladov | 2021-01-21 | 1 | -1/+9 |
| | |||||
* | Add name resolution query for block expressions | Jonas Schievink | 2021-01-21 | 1 | -0/+7 |
| | |||||
* | Create a mapping from blocks to inner items | Jonas Schievink | 2021-01-20 | 1 | -17/+11 |
| | |||||
* | Remove `item_tree::Expr` | Jonas Schievink | 2021-01-18 | 1 | -9/+1 |
| | | | | It's empty and unused | ||||
* | Use ‘index’ terminology for arena consistently | Aramis Razzaghipour | 2021-01-17 | 1 | -1/+1 |
| | |||||
* | prepare to publish el libro de arena | Aleksey Kladov | 2021-01-14 | 1 | -1/+1 |
| | |||||
* | Add ConstParams to the HIR | Lukas Wirth | 2021-01-01 | 1 | -2/+7 |
| | |||||
* | Don't look at attributes when lowering to ItemTree | Jonas Schievink | 2020-12-18 | 1 | -4/+1 |
| | | | | Resolves 2 `cfg_attr` FIXMEs | ||||
* | Refactor attributes API to allow handling cfg_attr | Jonas Schievink | 2020-12-18 | 1 | -7/+12 |
| | |||||
* | Avoid querying attributes in item tree lowering | Jonas Schievink | 2020-12-16 | 1 | -8/+0 |
| | | | | | | | | ItemTree is per-file, so there is no unique crate associated with it. This means that it cannot know the active CfgOptions and thus couldn't handle `cfg_attr`. Prepare it for `cfg_attr`s by avoiding accessing attributes. |