Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Clippy trivially_copy_pass_by_ref | Jeremy Kolb | 2019-07-05 | 2 | -3/+3 |
| | |||||
* | Fix clippy::redundant_clone | Shotaro Yamada | 2019-07-05 | 2 | -3/+3 |
| | |||||
* | Some clippy fixes for 1.36 | Jeremy Kolb | 2019-07-04 | 4 | -7/+6 |
| | |||||
* | allow rustfmt to reorder imports | Aleksey Kladov | 2019-07-04 | 44 | -235/+215 |
| | | | | | | This wasn't a right decision in the first place, the feature flag was broken in the last rustfmt release, and syntax highlighting of imports is more important anyway | ||||
* | Add completion for type aliases | Shotaro Yamada | 2019-07-02 | 1 | -1/+41 |
| | |||||
* | remove snapshot files | funkill2 | 2019-07-01 | 13 | -273/+0 |
| | |||||
* | inline snapshots | funkill2 | 2019-07-01 | 1 | -157/+366 |
| | |||||
* | put source maps first for better stats | Aleksey Kladov | 2019-06-30 | 1 | -2/+2 |
| | |||||
* | collect more macros, they are heavy | Aleksey Kladov | 2019-06-30 | 1 | -0/+1 |
| | |||||
* | print memory usage for queries | Aleksey Kladov | 2019-06-30 | 2 | -1/+66 |
| | |||||
* | Move memory usage statistics to ra_prof | Aleksey Kladov | 2019-06-30 | 2 | -58/+2 |
| | |||||
* | Merge #1456 | bors[bot] | 2019-06-29 | 1 | -1/+31 |
|\ | | | | | | | | | | | | | | | 1456: Deduplicate method candidates r=matklad a=flodiebold With trait method completion + autoderef, we were getting a lot of duplicates, which was really annoying... Co-authored-by: Florian Diebold <[email protected]> | ||||
| * | Deduplicate method candidates | Florian Diebold | 2019-06-29 | 1 | -1/+31 |
| | | |||||
* | | Complete associated methods on enums (and unions) as well | Florian Diebold | 2019-06-29 | 3 | -6/+87 |
|/ | |||||
* | show macros in file structure | Ekaterina Babshukova | 2019-06-28 | 2 | -5/+25 |
| | |||||
* | make sure that CrateDefMap is independent from syntax | Aleksey Kladov | 2019-06-26 | 1 | -0/+1 |
| | |||||
* | Merge #1429 | bors[bot] | 2019-06-24 | 2 | -1/+10 |
|\ | | | | | | | | | | | | | | | 1429: Add box postfix completion r=matklad a=kanru Co-authored-by: Kan-Ru Chen <[email protected]> | ||||
| * | Add box postfix completion | Kan-Ru Chen | 2019-06-23 | 2 | -1/+10 |
| | | |||||
* | | Add SourceRoot::is_library, in preparation for salsa's durability | Aleksey Kladov | 2019-06-24 | 1 | -1/+2 |
|/ | |||||
* | don' collect macros | Aleksey Kladov | 2019-06-20 | 1 | -3/+6 |
| | |||||
* | rename XSignature -> XData | Aleksey Kladov | 2019-06-18 | 4 | -11/+11 |
| | |||||
* | add analysis-bench to benchmark incremental analysis | Aleksey Kladov | 2019-06-16 | 2 | -1/+3 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Can be used like this: ``` $ cargo run --release -p ra_cli -- \ analysis-bench ../chalk/ \ --complete ../chalk/chalk-engine/src/logic.rs:94:0 loading: 225.970093ms from scratch: 8.492373325s no change: 445.265µs trivial change: 95.631242ms ``` Or like this: ``` $ cargo run --release -p ra_cli -- \ analysis-bench ../chalk/ \ --highlight ../chalk/chalk-engine/src/logic.rs loading: 209.873484ms from scratch: 9.504916942s no change: 7.731119ms trivial change: 124.984039ms ``` "from scratch" includes initial analysis of the relevant bits of the project "no change" just asks the same question for the second time. It measures overhead on assembling the answer outside of salsa. "trivial change" doesn't do an actual salsa change, it just advances the revision. This test how fast is salsa at validating things. | ||||
* | Merge #1408 | bors[bot] | 2019-06-16 | 2 | -2/+2 |
|\ | | | | | | | | | | | | | | | | | | | 1408: Associated type basics & Deref support r=matklad a=flodiebold This adds the necessary Chalk integration to handle associated types and uses it to implement support for `Deref` in the `*` operator and autoderef; so e.g. dot completions through an `Arc` work now. It doesn't yet implement resolution of associated types in paths, though. Also, there's a big FIXME about handling variables in the solution we get from Chalk correctly. Co-authored-by: Florian Diebold <[email protected]> | ||||
| * | Implement autoderef using the Deref trait | Florian Diebold | 2019-06-15 | 2 | -2/+2 |
| | | | | | | | | - add support for other lang item targets, since we need the Deref lang item | ||||
* | | reuse AnalysisHost in batch analysis | Aleksey Kladov | 2019-06-15 | 1 | -0/+3 |
|/ | |||||
* | check for cancellation when executing queries | Aleksey Kladov | 2019-06-12 | 1 | -2/+6 |
| | | | | | | | Note that we can't just remove CheckCanceled trait altogether: sometimes it's useful to check for cancellation while the query is running! We do this, for example, in the name resolution fixed-point loop. | ||||
* | Merge #1382 | bors[bot] | 2019-06-12 | 3 | -3/+20 |
|\ | | | | | | | | | | | | | | | 1382: use salsa's LRU for syntax trees r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]> | ||||
| * | make LRU cache configurable | Aleksey Kladov | 2019-06-12 | 2 | -4/+19 |
| | | |||||
| * | make LRU_CAP configurable for batch db | Aleksey Kladov | 2019-06-12 | 1 | -2/+3 |
| | | |||||
| * | use salsa's LRU for syntax trees | Aleksey Kladov | 2019-06-12 | 2 | -2/+3 |
| | | |||||
* | | Merge #1394 | bors[bot] | 2019-06-11 | 1 | -6/+23 |
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1394: Fix hover for pat that shadows items r=matklad a=sinkuu ```rust fn x() {} fn y() { let x = 0i32; x; // hover on `x` is expected to be `i32`, but the actual result was `fn x()` } ``` This was because: if [`res.is_empty()`](https://github.com/sinkuu/rust-analyzer/blob/656a0fa9f99298123d7dcee8c65a8a5ed7043bc4/crates/ra_ide_api/src/hover.rs#L205), it fallbacks to "index based approach" and adds `fn x()` to `res`, which makes [`res.extend(type_of)` below](https://github.com/sinkuu/rust-analyzer/blob/656a0fa9f99298123d7dcee8c65a8a5ed7043bc4/crates/ra_ide_api/src/hover.rs#L260-L266) not happen. Co-authored-by: Shotaro Yamada <[email protected]> | ||||
| * | Fix hover for pat that shadows items | Shotaro Yamada | 2019-06-11 | 1 | -6/+23 |
| | | |||||
* | | move docs under code model | Aleksey Kladov | 2019-06-11 | 2 | -10/+6 |
| | | |||||
* | | remove inherent source impls | Aleksey Kladov | 2019-06-11 | 4 | -8/+9 |
| | | |||||
* | | use Source for module, part 2 | Aleksey Kladov | 2019-06-11 | 1 | -5/+5 |
| | | |||||
* | | use Source for module, part 1 | Aleksey Kladov | 2019-06-11 | 3 | -8/+7 |
| | | |||||
* | | use Source for StructField | Aleksey Kladov | 2019-06-11 | 2 | -5/+5 |
| | | |||||
* | | use Source for MacroDef | Aleksey Kladov | 2019-06-11 | 2 | -7/+7 |
| | | |||||
* | | use Source for impl block | Aleksey Kladov | 2019-06-11 | 1 | -3/+3 |
| | | |||||
* | | use Source for Trait | Aleksey Kladov | 2019-06-11 | 2 | -26/+4 |
| | | |||||
* | | simplify | Aleksey Kladov | 2019-06-11 | 1 | -5/+5 |
| | | |||||
* | | use Source for TypeAlias | Aleksey Kladov | 2019-06-11 | 3 | -33/+10 |
| | | |||||
* | | reduce duplication in hover | Aleksey Kladov | 2019-06-11 | 1 | -56/+24 |
| | | |||||
* | | use Source for statics and consts | Aleksey Kladov | 2019-06-11 | 3 | -36/+11 |
| | | |||||
* | | use Source for Function | Aleksey Kladov | 2019-06-11 | 4 | -15/+9 |
| | | |||||
* | | Introduce HasSource trait | Aleksey Kladov | 2019-06-11 | 1 | -28/+18 |
| | | |||||
* | | use Source more | Aleksey Kladov | 2019-06-11 | 2 | -43/+22 |
| | | |||||
* | | introduce Source struct | Aleksey Kladov | 2019-06-11 | 2 | -14/+17 |
|/ | |||||
* | Simpliy hover on ast::name | Edwin Cheng | 2019-06-10 | 2 | -17/+35 |
| | |||||
* | Use classify_name_ref in hover | Edwin Cheng | 2019-06-10 | 3 | -14/+131 |
| |