Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove some redundant allocations | Jeremy Kolb | 2020-12-12 | 2 | -2/+2 |
| | |||||
* | Properly fetch inner and outer docs on hir-level | Lukas Wirth | 2020-12-09 | 1 | -0/+8 |
| | |||||
* | Simplify ast::Comment api surface | Lukas Wirth | 2020-12-08 | 1 | -10/+15 |
| | |||||
* | Keep doc attribute order | Lukas Wirth | 2020-12-07 | 2 | -41/+35 |
| | |||||
* | Merge #6719 | bors[bot] | 2020-12-07 | 1 | -0/+1 |
|\ | | | | | | | | | | | | | | | 6719: Use items can also have doc comments r=matklad a=Veykril Prior to this change modules show more docs than they have cause they inherit the docs from documented use items inside of them. Co-authored-by: Lukas Wirth <[email protected]> | ||||
| * | Use items can also have doc comments | Lukas Wirth | 2020-12-04 | 1 | -0/+1 |
| | | |||||
* | | Add replace_match_with_if_let assist | Lukas Wirth | 2020-12-05 | 1 | -2/+11 |
|/ | |||||
* | Merge #6649 | bors[bot] | 2020-12-02 | 1 | -22/+55 |
|\ | | | | | | | | | | | | | | | 6649: Accept more than just the standard rust literal suffixes in *Number::suffix r=matklad a=Veykril I am not entirely sure whether to keep or remove the `SUFFIXES` but I figured we can always bring them back once they are needed. Co-authored-by: Lukas Wirth <[email protected]> | ||||
| * | Add ast::*Number::suffix tests unit tests | Lukas Wirth | 2020-11-28 | 1 | -0/+37 |
| | | |||||
| * | Accept more than just the standard rust literal suffixes in *Number::suffix | Lukas Wirth | 2020-11-26 | 1 | -22/+18 |
| | | |||||
* | | Avoid allocation in ast::String::value if the string needs no unescaping | Lukas Wirth | 2020-11-27 | 1 | -9/+18 |
|/ | |||||
* | Merge #6558 | bors[bot] | 2020-11-16 | 1 | -0/+22 |
|\ | | | | | | | | | | | | | | | | | 6558: format string highlighting: handle hex + debug type specifier r=matklad a=ruabmbua Should fix https://github.com/rust-analyzer/rust-analyzer/issues/6427 Co-authored-by: Roland Ruckerbauer <[email protected]> | ||||
| * | format string highlighting: handle hex + debug type specifier | Roland Ruckerbauer | 2020-11-15 | 1 | -0/+22 |
| | | |||||
* | | Use shorthand record syntax when renaming struct initializer field | Lukas Wirth | 2020-11-14 | 2 | -9/+13 |
|/ | |||||
* | Simplify code | Aleksey Kladov | 2020-11-12 | 1 | -28/+23 |
| | |||||
* | Merge #6476 | bors[bot] | 2020-11-07 | 1 | -0/+4 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6476: Add missing AssocItems in add_custom_impl assist r=matklad a=Veykril ```rust use std::fmt; #[derive(Debu<|>g)] struct Foo { bar: String, } ``` -> ```rust use std::fmt; struct Foo { bar: String, } impl fmt::Debug for Foo { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { ${0:todo!()} } } ``` Co-authored-by: Lukas Wirth <[email protected]> | ||||
| * | Add missing AssocItems in add_custom_impl assist | Lukas Wirth | 2020-11-05 | 1 | -0/+4 |
| | | |||||
* | | Cleanup API | Aleksey Kladov | 2020-11-06 | 2 | -57/+39 |
| | | |||||
* | | Simplify | Aleksey Kladov | 2020-11-06 | 2 | -34/+22 |
| | | |||||
* | | Kill RAW_ literals | Aleksey Kladov | 2020-11-06 | 4 | -44/+35 |
| | | | | | | | | | | Syntactically, they are indistinguishable from non-raw versions, so it doesn't make sense to separate then *at the syntax* level. | ||||
* | | More orthogonal API | Aleksey Kladov | 2020-11-06 | 1 | -33/+30 |
| | | |||||
* | | Move int parsing to IntNumber token | Aleksey Kladov | 2020-11-06 | 2 | -75/+90 |
| | | |||||
* | | Better imports | Aleksey Kladov | 2020-11-06 | 1 | -11/+11 |
| | | |||||
* | | Generate token for ints and floats | Aleksey Kladov | 2020-11-06 | 1 | -0/+42 |
|/ | |||||
* | Merge #6456 | bors[bot] | 2020-11-04 | 1 | -2/+25 |
|\ | | | | | | | | | | | | | | | | | | | | | | | 6456: Support record variants in extract_struct_from_enum_variant r=matklad a=Veykril As requested :) This also prevents the assist from being disabled if a definition in the value namespace exists with the same name as our new struct since that won't cause a collision #4468 Co-authored-by: Lukas Wirth <[email protected]> | ||||
| * | Support struct variants in extract_struct_from_enum_variant | Lukas Wirth | 2020-11-03 | 1 | -2/+25 |
| | | |||||
* | | Merge #6454 | bors[bot] | 2020-11-03 | 1 | -0/+65 |
|\ \ | |/ |/| | | | | | | | | | | | | | 6454: Fix overflow panic in convert_interger_literal assist r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]> | ||||
| * | Fix overflow panic in convert_interger_literal assist | Aleksey Kladov | 2020-11-03 | 1 | -0/+65 |
| | | | | | | | | | | | | | | | | | | This also seizes the opportunity to move integer literal parsing to the syntax crate, were it logically belongs. Note though that this is still done in an ad hoc manner -- we probably should split kitchen sink ast::Literal into a separate APIs for strings, ints, etc | ||||
* | | Make insert_use return a SyntaxRewriter | Lukas Wirth | 2020-11-02 | 1 | -0/+37 |
|/ | |||||
* | Deny unreachable-pub | Aleksey Kladov | 2020-11-02 | 1 | -3/+3 |
| | | | | | | | | It's very useful when `pub` is equivalent to "this is crate's public API", let's enforce this! Ideally, we should enforce it for local `cargo test`, and only during CI, but that needs https://github.com/rust-lang/cargo/issues/5034. | ||||
* | correct hover for items with doc attribute with raw strings | Josh Mcguigan | 2020-10-24 | 1 | -3/+11 |
| | |||||
* | Properly qualify trait methods in qualify_path assist | Lukas Wirth | 2020-10-15 | 1 | -0/+3 |
| | |||||
* | when generating new function, focus on return type instead of body | Benjamin Coenen | 2020-10-08 | 1 | -1/+11 |
| | | | | Signed-off-by: Benjamin Coenen <[email protected]> | ||||
* | Minor clippy performance suggestions | kjeremy | 2020-09-30 | 1 | -1/+1 |
| | |||||
* | Merge #6019 | bors[bot] | 2020-09-29 | 1 | -5/+28 |
|\ | | | | | | | | | | | | | | | 6019: Remove make::path_from_text r=matklad a=Veykril This removes the `make::path_from_text` function, which according to a note should've been private. I removed it since it didn't really serve a purpose as it was simply wrapping `make::ast_from_text`. Co-authored-by: Lukas Wirth <[email protected]> | ||||
| * | Remove make::path_from_text | Lukas Wirth | 2020-09-16 | 1 | -5/+28 |
| | | |||||
* | | Rename impl edit method to be more explicit | Matt Hooper | 2020-09-21 | 1 | -1/+1 |
| | | |||||
* | | Add make utility for empty associated item lists | Matt Hooper | 2020-09-21 | 1 | -0/+4 |
| | | |||||
* | | Add edit utility for adding an associated item list to a impl def | Matt Hooper | 2020-09-21 | 1 | -0/+16 |
| | | |||||
* | | Add make::glob_use_tree function to create star-only UseTree | Lukas Wirth | 2020-09-16 | 1 | -0/+4 |
| | | |||||
* | | Reimplement import merging by making it recursive properly nesting all levels | Lukas Wirth | 2020-09-12 | 1 | -0/+1 |
|/ | |||||
* | Merge #5940 | bors[bot] | 2020-09-04 | 2 | -1/+84 |
|\ | | | | | | | | | | | | | | | 5940: Implement "Replace `impl Trait` function argument with the named generic" assist. r=matklad a=alekseysidorov Fixes #5085 Co-authored-by: Aleksei Sidorov <[email protected]> | ||||
| * | Remove unnecessary comma | Aleksei Sidorov | 2020-09-04 | 1 | -1/+0 |
| | | |||||
| * | Fix tests | Aleksei Sidorov | 2020-09-04 | 1 | -1/+1 |
| | | |||||
| * | Fix nitpicks | Aleksei Sidorov | 2020-09-04 | 1 | -17/+2 |
| | | |||||
| * | Resolve most of corner cases | Aleksei Sidorov | 2020-09-03 | 1 | -4/+22 |
| | | |||||
| * | Initial implementation of the #5085 issue | Aleksei Sidorov | 2020-09-03 | 2 | -0/+81 |
| | | |||||
* | | Impl make::blank_line | Lukas Wirth | 2020-09-03 | 1 | -1/+11 |
|/ | |||||
* | Unify naming | Aleksey Kladov | 2020-09-03 | 1 | -4/+4 |
| | |||||
* | Reduce path_from_text usage | Aleksey Kladov | 2020-08-31 | 1 | -0/+1 |
| |