Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Merge #2149 | bors[bot] | 2019-11-04 | 1 | -0/+17 | |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | 2149: Handle IfLet in convert_to_guarded_return. r=matklad a=krk Fixes https://github.com/rust-analyzer/rust-analyzer/issues/2124 I could not move the cursor position out of `let`: `le<|>t` vs `let<|>`. Also, please suggest extra test cases. Co-authored-by: krk <[email protected]> | |||||
| * | Support paths other than "Some". | krk | 2019-11-01 | 1 | -2/+3 | |
| | | ||||||
| * | Handle IfLet in convert_to_guarded_return. | krk | 2019-10-31 | 1 | -0/+16 | |
| | | ||||||
* | | traits => match_ast! | kjeremy | 2019-10-30 | 1 | -5/+7 | |
|/ | ||||||
* | Some clippy fixes | kjeremy | 2019-10-30 | 1 | -2/+2 | |
| | ||||||
* | Preserve whitespace at the end of doc comments | Jeremy Kolb | 2019-10-27 | 1 | -2/+5 | |
| | | | | | | | | Whitespace can have special meaning in markdown. For instance ending a line with three spaces will render a new line. Note that this behavior diverges from RLS. Fixes #1997 | |||||
* | use correct spacing for enum pattern | Aleksey Kladov | 2019-10-26 | 1 | -1/+1 | |
| | ||||||
* | Adds "replace with guarded return" assist | Mikhail Modin | 2019-10-20 | 2 | -0/+36 | |
| | ||||||
* | add syntax-tree based indents | Aleksey Kladov | 2019-10-12 | 2 | -6/+91 | |
| | ||||||
* | Pass attributes as token tree to DefCollector | uHOOCCOOHu | 2019-10-02 | 1 | -0/+1 | |
| | ||||||
* | Merge branch 'master' into feature/issue/1856 | Alexander Andreev | 2019-09-30 | 4 | -55/+298 | |
|\ | | | | | | | | | # Conflicts: # crates/ra_assists/src/ast_editor.rs | |||||
| * | Fixes | uHOOCCOOHu | 2019-09-30 | 1 | -9/+0 | |
| | | ||||||
| * | Fix API of Attr | uHOOCCOOHu | 2019-09-30 | 3 | -46/+25 | |
| | | ||||||
| * | Parse correct AttrInput | uHOOCCOOHu | 2019-09-30 | 1 | -0/+44 | |
| | | ||||||
| * | cleanup editor | Aleksey Kladov | 2019-09-30 | 1 | -1/+4 | |
| | | ||||||
| * | remove ast_editor.rs | Aleksey Kladov | 2019-09-30 | 1 | -0/+12 | |
| | | ||||||
| * | move remove bounds to ast/edit.rs | Aleksey Kladov | 2019-09-30 | 1 | -1/+15 | |
| | | ||||||
| * | move field list to ast/edit.rs | Aleksey Kladov | 2019-09-30 | 1 | -1/+81 | |
| | | ||||||
| * | migrate add impl items to the new editing API | Aleksey Kladov | 2019-09-28 | 1 | -3/+94 | |
| | | ||||||
| * | simplify strip attrs | Aleksey Kladov | 2019-09-28 | 2 | -2/+31 | |
| | | ||||||
* | | Added test for check doc strings in crates. | Alexander Andreev | 2019-09-30 | 1 | -1/+1 | |
|/ | | | | #1856 | |||||
* | Merge #1815 | bors[bot] | 2019-09-27 | 1 | -0/+10 | |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1815: Support correct `$crate` expansion in macros r=uHOOCCOOHu a=uHOOCCOOHu This PR makes normal use cases of `$crate` from macros work as expected. It makes more macros from `std` work. Type inference works well with `panic`, `unimplemented`, `format`, and maybe more. Sadly that `vec![1, 2, 3]` still not works, but it is not longer an issue about macro. Screenshot: ![Screenshot_20190927_022136](https://user-images.githubusercontent.com/14816024/65714465-b4568f80-e0cd-11e9-8043-dd44c2ae8040.png) Co-authored-by: uHOOCCOOHu <[email protected]> | |||||
| * | Refactor `Name` ready for hygienic macro | uHOOCCOOHu | 2019-09-26 | 1 | -0/+10 | |
| | | ||||||
* | | Start simplifying editing API | Aleksey Kladov | 2019-09-26 | 2 | -0/+100 | |
|/ | ||||||
* | keep ast creation API simple | Aleksey Kladov | 2019-09-26 | 1 | -0/+135 | |
| | ||||||
* | add new editing API, suitable for modifying several nodes at once | Aleksey Kladov | 2019-09-25 | 1 | -0/+9 | |
| | ||||||
* | Support path starting with a type | uHOOCCOOHu | 2019-09-15 | 1 | -0/+3 | |
| | ||||||
* | Add `DotDotPat` to AST | Dylan MacKenzie | 2019-09-15 | 1 | -2/+35 | |
| | | | | This is modeled on `PlaceholderPat`. | |||||
* | Infer box expression | uHOOCCOOHu | 2019-09-11 | 1 | -3/+37 | |
| | ||||||
* | Lower `Fn(X, Y) -> Z` paths | Florian Diebold | 2019-09-07 | 1 | -0/+6 | |
| | ||||||
* | Merge #1743 | bors[bot] | 2019-09-05 | 1 | -0/+1 | |
|\ | | | | | | | | | | | | | | | 1743: Support `#[macro_use]` on `extern crate` r=matklad a=uHOOCCOOHu Unfortunately, #1688 is still an issue. My guess is wrong :( Co-authored-by: uHOOCCOOHu <[email protected]> | |||||
| * | Support resolution of `#[macro_use] extern crate` | uHOOCCOOHu | 2019-08-31 | 1 | -0/+1 | |
| | | ||||||
* | | fix assists | Aleksey Kladov | 2019-09-02 | 1 | -0/+20 | |
| | | ||||||
* | | fix hir for new block syntax | Aleksey Kladov | 2019-09-02 | 3 | -5/+5 | |
| | | ||||||
* | | fix generated AST | Aleksey Kladov | 2019-09-02 | 1 | -1/+1 | |
| | | ||||||
* | | remove useless trait | Aleksey Kladov | 2019-09-02 | 2 | -8/+5 | |
|/ | ||||||
* | Add `BoxPat` variant | Dylan MacKenzie | 2019-08-23 | 1 | -2/+37 | |
| | ||||||
* | rename struct -> record, pos -> tuple | Aleksey Kladov | 2019-08-23 | 3 | -268/+268 | |
| | ||||||
* | Improve/fix type bound lowering | Florian Diebold | 2019-08-22 | 1 | -26/+29 | |
| | ||||||
* | Add `impl Trait` and `dyn Trait` types | Florian Diebold | 2019-08-22 | 1 | -0/+26 | |
| | | | | | | | - refactor bounds handling in the AST a bit - add HIR for bounds - add `Ty::Dyn` and `Ty::Opaque` variants and lower `dyn Trait` / `impl Trait` syntax to them | |||||
* | Don't add `?` bounds as real bounds | Aleksey Kladov | 2019-08-22 | 1 | -0/+12 | |
| | | | | closes #1709 | |||||
* | remove ast::*Kind enums | Aleksey Kladov | 2019-08-19 | 1 | -345/+339 | |
| | | | | With the new owned trees, we don't need an indirection here | |||||
* | use new quote-generated ast | Aleksey Kladov | 2019-08-18 | 2 | -1289/+1408 | |
| | ||||||
* | Introduce separate hir::BinaryOp | Aleksey Kladov | 2019-08-17 | 1 | -6/+0 | |
| | | | | | Unlike ast::BinOp, it has significantly more structure to it, so it's easier to, say, handle all assignment-like operations in the same way. | |||||
* | implement accessors for IndexExpr | Aleksey Kladov | 2019-08-17 | 1 | -0/+9 | |
| | ||||||
* | simplify | Aleksey Kladov | 2019-08-17 | 1 | -35/+36 | |
| | ||||||
* | Lower fully qualified associated type paths | Florian Diebold | 2019-08-12 | 1 | -0/+10 | |
| | | | | I.e. `<T as Trait>::Foo`. | |||||
* | Add function parameters attributes | Evgenii P | 2019-08-07 | 1 | -0/+2 | |
| | ||||||
* | Unconditionally trim the end of comments | kjeremy | 2019-07-31 | 1 | -9/+4 | |
| | ||||||
* | Removes `*/` in block doc comments | kjeremy | 2019-07-31 | 1 | -2/+13 | |
| |