Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | align names in make | Aleksey Kladov | 2020-08-05 | 12 | -28/+29 |
| | |||||
* | Merge #5648 | bors[bot] | 2020-08-05 | 5 | -1/+425 |
|\ | | | | | | | | | | | | | | | 5648: Add expand glob import assist r=jonas-schievink a=unexge closes https://github.com/rust-analyzer/rust-analyzer/issues/5557 Co-authored-by: unexge <[email protected]> | ||||
| * | Pattern match on slice elements instead of using `.first().unwrap()` | unexge | 2020-08-05 | 1 | -7/+6 |
| | | |||||
| * | Look for trait methods in expand glob import assist | unexge | 2020-08-05 | 1 | -13/+65 |
| | | |||||
| * | Simplify `find_mod_path` with use of `node.ancestors` | unexge | 2020-08-03 | 1 | -20/+1 |
| | | |||||
| * | Generate doctest | unexge | 2020-08-02 | 2 | -1/+28 |
| | | |||||
| * | Rename ast::UseItem to ast::Use | unexge | 2020-08-02 | 1 | -1/+1 |
| | | |||||
| * | Add expand glob import assist | unexge | 2020-08-02 | 4 | -1/+366 |
| | | |||||
* | | Merge #5664 | bors[bot] | 2020-08-05 | 3 | -4/+29 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5664: Fix renamed self module. r=jonas-schievink a=Nashenas88 Fixes #5663 Now `inner_mod` below is properly marked as a `module`. ```rust use crate::inner::{self as inner_mod}; mod inner {} ``` Co-authored-by: Paul Daniel Faria <[email protected]> | ||||
| * | | When resolving a rename, fallback to the name higher in the use tree if the ↵ | Paul Daniel Faria | 2020-08-04 | 2 | -4/+23 |
| | | | | | | | | | | | | path segment is `self` | ||||
| * | | Add test showing unresolved module rename | Paul Daniel Faria | 2020-08-04 | 2 | -1/+7 |
| | | | |||||
* | | | Use salsa's purge to account for all memory | Aleksey Kladov | 2020-08-05 | 3 | -10/+25 |
| | | | |||||
* | | | Fix relative path handling for custom rustfmt | Aleksey Kladov | 2020-08-05 | 1 | -5/+0 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `current_dir` and relative paths to executables works differently on unix and windows (unix behavior does not make sense), see: https://github.com/oconnor663/duct.rs/blob/17e30e83a16b202551df4d70d0b2cc174cb53e5d/src/lib.rs#L295-L324 The original motivation to set cwd was to make rustfmt read the correct rustfmt.toml, but that was future proofing, rather than a bug fix. So, let's just remove this and see if breaks or fixes more use-cases. If support for per-file config is needed, we could use `--config-path` flag. | ||||
* | | | Merge #5658 | bors[bot] | 2020-08-04 | 2 | -1/+44 |
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | 5658: do not add to `pub use` in assists that insert a use statement r=jonas-schievink a=jbr closes #5657 , see issue for rationale Initially I wrote a version of this that changed the signature of `insert_use_statement` to take an `Option<VisibilityKind>` and only add to use statements with the same visibility, but that didn't make sense for any of the current uses of `insert_use_statement` (they all expected private visibility). Co-authored-by: Jacob Rothstein <[email protected]> | ||||
| * | | do not add to `pub use` statements | Jacob Rothstein | 2020-08-03 | 2 | -1/+44 |
| | | | |||||
* | | | Revert "Restore line index micro-optimization" | Michael Lazear | 2020-08-03 | 2 | -31/+23 |
|/ / | | | | | | | This reverts commit 83a87fcd11298d8de32801ac6496ddf8b4e9c0e1. | ||||
* | | Merge #5653 | bors[bot] | 2020-08-03 | 1 | -1/+22 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | 5653: Fold trait declarations r=SomeoneToIgnore a=lnicola Fixes #5652 Co-authored-by: Laurențiu Nicola <[email protected]> | ||||
| * | | Fold trait declarations | Laurențiu Nicola | 2020-08-03 | 1 | -1/+22 |
| |/ | |||||
* | | Merge #5628 | bors[bot] | 2020-08-03 | 2 | -2/+2 |
|\ \ | |/ |/| | | | | | | | | | | | 5628: Rename test modules r=matklad a=lnicola Co-authored-by: Laurențiu Nicola <[email protected]> | ||||
| * | Rename test modules | Laurențiu Nicola | 2020-07-31 | 2 | -2/+2 |
| | | |||||
* | | Merge #5638 | bors[bot] | 2020-08-01 | 2 | -24/+27 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | 5638: Simplify argument parsing r=matklad a=lnicola and use `Display` when printing errors. Co-authored-by: Laurențiu Nicola <[email protected]> | ||||
| * | | Simplify argument parsing | Laurențiu Nicola | 2020-08-01 | 2 | -24/+27 |
| | | | |||||
* | | | Update grammar | Aleksey Kladov | 2020-08-01 | 33 | -129/+129 |
|/ / | |||||
* | | Finish rename | Aleksey Kladov | 2020-07-31 | 1 | -3/+3 |
| | | |||||
* | | Unify naming of tuple fields | Aleksey Kladov | 2020-07-31 | 4 | -10/+10 |
| | | |||||
* | | Rename DotDotPat -> RestPat | Aleksey Kladov | 2020-07-31 | 12 | -52/+52 |
| | | |||||
* | | Rename | Aleksey Kladov | 2020-07-31 | 8 | -15/+12 |
| | | |||||
* | | Simplify trait gramamr | Aleksey Kladov | 2020-07-31 | 1 | -1/+0 |
| | | |||||
* | | Rename BindPat -> IdentPat | Aleksey Kladov | 2020-07-31 | 81 | -270/+274 |
| | | |||||
* | | Rename PalceholderPat -> WildcardPat | Aleksey Kladov | 2020-07-31 | 48 | -132/+129 |
| | | |||||
* | | Reorder | Aleksey Kladov | 2020-07-31 | 2 | -2/+1 |
| | | |||||
* | | Allign RecordPat with RecordExpr | Aleksey Kladov | 2020-07-31 | 20 | -78/+72 |
| | | |||||
* | | Minor gramamr reorder | Aleksey Kladov | 2020-07-31 | 1 | -327/+324 |
| | | |||||
* | | Merge #5630 | bors[bot] | 2020-07-31 | 1 | -24/+0 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5630: Remove dead code r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]> | ||||
| * | | Remove dead code | Aleksey Kladov | 2020-07-31 | 1 | -24/+0 |
| | | | |||||
* | | | Fix leading colon | Aleksey Kladov | 2020-07-31 | 1 | -1/+1 |
| | | | |||||
* | | | Fix const arguments grammar | Aleksey Kladov | 2020-07-31 | 3 | -262/+262 |
| | | | |||||
* | | | Fix GenericArgs grammar | Aleksey Kladov | 2020-07-31 | 3 | -43/+100 |
| | | | |||||
* | | | Rename TypeArgList -> GenericArgList | Aleksey Kladov | 2020-07-31 | 39 | -66/+66 |
| | | | |||||
* | | | Finalize Path grammar | Aleksey Kladov | 2020-07-31 | 1 | -446/+447 |
| | | | |||||
* | | | Minor | Aleksey Kladov | 2020-07-31 | 3 | -72/+62 |
|/ / | |||||
* | | Rename LambdaExpr -> ClosureExpr | Aleksey Kladov | 2020-07-31 | 16 | -44/+37 |
| | | |||||
* | | Work on expressions grammar | Aleksey Kladov | 2020-07-31 | 2 | -664/+686 |
| | | |||||
* | | Item is a Stmt | Aleksey Kladov | 2020-07-31 | 4 | -14/+32 |
| | | |||||
* | | Handwrite Stmt | Aleksey Kladov | 2020-07-31 | 3 | -26/+35 |
| | | |||||
* | | Move Stmt Grammar | Aleksey Kladov | 2020-07-31 | 1 | -84/+85 |
| | | |||||
* | | Finalize TypeBound grammar | Aleksey Kladov | 2020-07-31 | 3 | -48/+28 |
| | | |||||
* | | "Finalize" Types grammar | Aleksey Kladov | 2020-07-31 | 2 | -2/+3 |
| | | | | | | | | | | | | | | Note that `for` type is rust-analyzer's own invention. Both the reference and syn allow `for` only for fnptr types, and we allow them everywhere. This needs to be checked with respect to type bounds grammar... | ||||
* | | Reame PlaceholderType -> InferType | Aleksey Kladov | 2020-07-31 | 8 | -19/+19 |
| | | |||||
* | | Rename TypeRef -> Type | Aleksey Kladov | 2020-07-31 | 17 | -175/+175 |
|/ | | | | | | | | | | The TypeRef name comes from IntelliJ days, where you often have both type *syntax* as well as *semantical* representation of types in scope. And naming both Type is confusing. In rust-analyzer however, we use ast types as `ast::Type`, and have many more semantic counterparts to ast types, so avoiding name clash here is just confusing. |