Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | | Merge #7705 | bors[bot] | 2021-02-17 | 1 | -2/+38 | |
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7705: Show hover info of the definition of ConstReference patterns instead of its type r=Veykril a=Veykril Closes #7671 bors r+ Co-authored-by: Lukas Wirth <[email protected]> | |||||
| * | | | Show hover info of the definition of ConstReference patterns instead of its type | Lukas Wirth | 2021-02-17 | 1 | -2/+38 | |
| |/ / | ||||||
* / / | Allow comments between newlines in chaining hints | Paco Soberón | 2021-02-16 | 1 | -16/+22 | |
|/ / | ||||||
* | | Merge #7657 | bors[bot] | 2021-02-16 | 1 | -1/+1 | |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7657: utf8 r=matklad a=matklad - Prepare for utf-8 offsets - reduce code duplication in tests - Make utf8 default, implement utf16 in terms of it - Make it easy to add additional context for offset conversion - Implement utf8 offsets closes #7453 Co-authored-by: Aleksey Kladov <[email protected]> | |||||
| * | | Make utf8 default, implement utf16 in terms of it | Aleksey Kladov | 2021-02-16 | 1 | -1/+1 | |
| | | | ||||||
| * | | Prepare for utf-8 offsets | Aleksey Kladov | 2021-02-16 | 1 | -1/+1 | |
| | | | ||||||
* | | | Fix a few clippy::perf warnings | kjeremy | 2021-02-16 | 4 | -5/+7 | |
|/ / | ||||||
* | | Actually fix runnable order | ivan770 | 2021-02-15 | 1 | -20/+20 | |
| | | ||||||
* | | Merge #7656 | bors[bot] | 2021-02-14 | 1 | -100/+170 | |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7656: Implement constructor usage search for almost all items r=matklad a=Veykril This PR moves the filering for enum constructors to the HIR, with this unprefixed variants as well as when the enum has been renamed via use will then still show up properly. We now walk the ast of the `NameRef` up until we find a `PathExpr`(which also handles `CallExpr` for tuple-type structs and variants already) or a `RecordExpr`. For enum search we then take the `path` out of that expression and do a resolution on it to compare it with the definition enum. With this PR we now support searching for all constructor literals, Unit-, Tuple- and Record-Structs, Unit-, Tuple- and Record-Variants as well as Unions. There is one shortcoming due to how the search is triggered. Unit Variants constructors can't be searched as we have no position for it to kick off the search(since a comma doesn't have to exist for the last variant). Closes #2549 though it doesn't implement it as outlined in the issue since the reference kind was removed recently, though I believe the approach taken here is better personally. Co-authored-by: Lukas Wirth <[email protected]> | |||||
| * | | Only use HIR when searching for enum constructors, otherwise fall back to AST | Lukas Wirth | 2021-02-13 | 1 | -48/+34 | |
| | | | ||||||
| * | | Implement constructor usage search for almost all items | Lukas Wirth | 2021-02-12 | 1 | -105/+189 | |
| | | | | | | | | | | | | | | | | | | | | | For all struct kinds, unions and enums, as well as for record- and tuple-variants but not for unit-variants, as these have no trailing character we can anchor the search to. Functionality wise it is implemented though. | |||||
* | | | Merge #7668 | bors[bot] | 2021-02-14 | 1 | -48/+131 | |
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7668: Finalize rename infra rewrite r=matklad a=Veykril This should be the final PR in regards to rewriting rename stuff, #4290. It addresses 3 things: - Currently renaming import aliases causes some undesired behavior(see #5198) which is why this PR causes us to just return an error if an attempt at renaming an alias is made for the time being. Though this only prevents it from happening when the alias import is renamed, so its not too helpful. - Fixes #6898 - If we are inside a macro file simply rename the input name node as there isn't really a way to do any of the fancy shorthand renames and similar things as for that we would have to exactly know what the macro generates and what not. Co-authored-by: Lukas Wirth <[email protected]> | |||||
| * | | | Don't rename field record patterns directly | Lukas Wirth | 2021-02-13 | 1 | -36/+71 | |
| | | | | ||||||
| * | | | Fallback to renaming input NameRef node for macros when inside macro | Lukas Wirth | 2021-02-13 | 1 | -16/+53 | |
| | | | | ||||||
| * | | | Prevent aliases from being renamed for now | Lukas Wirth | 2021-02-13 | 1 | -13/+24 | |
| | | | | ||||||
* | | | | Don't classify attribute macros as their path unless it's a function with ↵ | Lukas Wirth | 2021-02-13 | 1 | -0/+35 | |
|/ / / | | | | | | | | | | the proc_macro_attribute attribute | |||||
* | | | Make annotations tests similar to those in runnables | ivan770 | 2021-02-13 | 1 | -188/+707 | |
| | | | ||||||
* | | | Improve runnable annotations order, fix incorrect ignore detection | ivan770 | 2021-02-13 | 1 | -5/+13 | |
| | | | ||||||
* | | | Added annotation tests | ivan770 | 2021-02-13 | 1 | -0/+267 | |
| | | | ||||||
* | | | Fix incorrect references annotation | ivan770 | 2021-02-13 | 1 | -2/+3 | |
| | | | ||||||
* | | | Moved CodeLens to ide crate | ivan770 | 2021-02-13 | 2 | -0/+156 | |
|/ / | ||||||
* | | Update references test output | Lukas Wirth | 2021-02-12 | 1 | -2/+2 | |
| | | ||||||
* | | Use NameLike in FileReference directly as its not exported from ide anymore | Lukas Wirth | 2021-02-12 | 3 | -14/+8 | |
| | | ||||||
* | | Refactor reference searching to work with the ast | Lukas Wirth | 2021-02-12 | 4 | -256/+310 | |
| | | ||||||
* | | Remove unused ReferenceSearchResult functions | Lukas Wirth | 2021-02-12 | 1 | -24/+5 | |
| | | ||||||
* | | Merge #7644 | bors[bot] | 2021-02-12 | 2 | -4/+3 | |
|\ \ | | | | | | | | | | | | | | | | | | | | | | 7644: Primitive completion r=jonas-schievink a=jonas-schievink Fixes https://github.com/rust-analyzer/rust-analyzer/issues/7642 Co-authored-by: Jonas Schievink <[email protected]> | |||||
| * | | Wrap `BuiltinType` in code model | Jonas Schievink | 2021-02-11 | 2 | -4/+3 | |
| | | | ||||||
* | | | Pin Rust to 1.49.0 on CI | Jonas Schievink | 2021-02-12 | 1 | -3/+3 | |
|/ / | ||||||
* | | Update fixed tests | Jonas Schievink | 2021-02-10 | 1 | -0/+1 | |
| | | ||||||
* | | Resolve TupleStructPat in SourceAnalyzer::resolve_path | Lukas Wirth | 2021-02-10 | 1 | -0/+23 | |
| | | ||||||
* | | Add parsing benchmark | Aleksey Kladov | 2021-02-09 | 1 | -5/+32 | |
| | | ||||||
* | | Infra for "unit" benchmarking | Aleksey Kladov | 2021-02-09 | 1 | -10/+12 | |
| | | ||||||
* | | restore accidentally deleted test | Aleksey Kladov | 2021-02-09 | 1 | -0/+13 | |
| | | ||||||
* | | More precise navigation to parent | Aleksey Kladov | 2021-02-09 | 3 | -10/+13 | |
| | | ||||||
* | | Cleanup tests | Aleksey Kladov | 2021-02-09 | 3 | -55/+53 | |
| | | ||||||
* | | Cleanup test | Aleksey Kladov | 2021-02-09 | 1 | -20/+21 | |
| | | ||||||
* | | Modernize tests | Aleksey Kladov | 2021-02-09 | 1 | -197/+169 | |
| | | ||||||
* | | AdtDef -> Adt | Aleksey Kladov | 2021-02-07 | 1 | -5/+5 | |
| | | ||||||
* | | Increase Highlights highlight range to covering element | Lukas Wirth | 2021-02-04 | 1 | -1/+1 | |
| | | ||||||
* | | Show alias underlying type | lumenian | 2021-02-02 | 1 | -1/+5 | |
| | | ||||||
* | | Return inner attributes of outline mod declarations in `attrs_query` | Lukas Wirth | 2021-01-31 | 1 | -0/+16 | |
| | | ||||||
* | | Classify function calls as functions when shadowed by types | Lukas Wirth | 2021-01-28 | 2 | -0/+8 | |
| | | ||||||
* | | Merge #7465 | bors[bot] | 2021-01-27 | 1 | -1/+19 | |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7465: Only hide parameter hints for path, field and methodcall expressions r=SomeoneToIgnore a=Veykril Doing this check for other expressions makes little sense to me. Fixes #7458 Co-authored-by: Lukas Wirth <[email protected]> | |||||
| * | | Only hide parameter hints for path, field and methodcall expressions | Lukas Wirth | 2021-01-27 | 1 | -1/+19 | |
| | | | ||||||
* | | | Make always-assert crate reusable | Aleksey Kladov | 2021-01-26 | 1 | -3/+3 | |
|/ / | ||||||
* | | Shorten hir::TypeParam full_range in NavigationTarget | Lukas Wirth | 2021-01-26 | 2 | -4/+23 | |
| | | ||||||
* | | Support unions in symbol search | Lukas Wirth | 2021-01-24 | 1 | -0/+1 | |
| | | ||||||
* | | Remove use of SourceFileEdit | Phil Ellison | 2021-01-23 | 1 | -2/+1 | |
| | | ||||||
* | | cargo fmt | Phil Ellison | 2021-01-23 | 1 | -1/+5 | |
| | | ||||||
* | | Address review comments | Phil Ellison | 2021-01-23 | 1 | -9/+4 | |
| | |