aboutsummaryrefslogtreecommitdiff
path: root/Cargo.lock
Commit message (Collapse)AuthorAgeFilesLines
...
| * Don't copy-paste `impl_froms` into every crateAleksey Kladov2020-07-131-0/+2
| |
| * Update adler and synkjeremy2020-07-131-4/+4
| |
| * Upgrade ChalkFlorian Diebold2020-07-121-15/+17
| |
| * Enable Chalk tracing in hir_ty testsFlorian Diebold2020-07-121-1/+58
| |
| * Update lsp-typesJeremy Kolb2020-07-121-2/+2
| |
| * Update lsp-types to account for new CodeActionKind structureJeremy Kolb2020-07-111-2/+2
| |
| * Rewrite item_tree tests to expectAleksey Kladov2020-07-111-0/+1
| | | | | | | | insta review wouldn't update the test, so ...
| * Make slow test parallelAleksey Kladov2020-07-111-0/+1
| |
| * Update depskjeremy2020-07-101-6/+6
| |
| * Merge #5270bors[bot]2020-07-091-0/+1
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5270: Add argument count mismatch diagnostic r=matklad a=jonas-schievink Closes https://github.com/rust-analyzer/rust-analyzer/issues/4025. This currently has one false positive on this line, where `max` is resolved to `Iterator::max` instead of `Ord::max`: https://github.com/rust-analyzer/rust-analyzer/blob/8aa10c00a4c5b957d459fac5a103cd9688e8dcdd/crates/expect/src/lib.rs#L263 (I have no idea why it thinks that `usize` is an `Iterator`) TODO: * [x] Tests * [x] Improve diagnostic text for method calls Co-authored-by: Jonas Schievink <[email protected]>
| | * Address review commentsJonas Schievink2020-07-091-0/+1
| | |
| * | Move diagnostics tests to expectAleksey Kladov2020-07-091-1/+0
| | |
| * | Cleanup diagnostic conversion codeAleksey Kladov2020-07-091-0/+1
| | |
| * | Remove insta from ra_ideAleksey Kladov2020-07-091-1/+0
| |/
| * Unify testsAleksey Kladov2020-07-091-0/+1
| |
| * :arrow_up: depsAleksey Kladov2020-07-081-6/+6
| |
| * Remove relative_path dependencyAleksey Kladov2020-07-081-7/+0
| |
| * Merge #5255bors[bot]2020-07-071-0/+1
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5255: Replace ad hocery with science r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
| | * Replace ad hocery with scienceAleksey Kladov2020-07-071-0/+1
| | |
| * | Gzip artifactsVeetaha2020-07-071-0/+22
| |/ | | | | | | | | | | | | | | | | | | Co-authored-by: bjorn3 <[email protected]> Override miniz_oxide to build it with optimizations Building this crate with optimizations decreases the gzipping part of `cargo xtask dist` from `30-40s` down to `3s`, the overhead for `rustc` to apply optimizations is miserable on this background
| * :arrow_up: backtraceAleksey Kladov2020-07-071-12/+12
| |
| * Upstream salsaAleksey Kladov2020-07-071-4/+6
| |
| * Switch to fully dynamically dispatched salsaAleksey Kladov2020-07-071-5/+3
| | | | | | | | This improves compile times quite a bit
| * Update crateskjeremy2020-07-061-12/+12
| |
| * Update salsaJonas Schievink2020-07-061-2/+2
| |
| * update depsJeremy Kolb2020-07-041-10/+10
| |
| * :arrow_up: salsaAleksey Kladov2020-07-031-17/+4
| |
| * SSR: Add initial support for placeholder constraintsDavid Lattimore2020-07-011-0/+1
| |
| * Merge #5142bors[bot]2020-06-301-0/+1
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5142: analysis-stats: allow parallel type inference r=matklad a=jonas-schievink This is mostly just for testing/fun, but it looks like type inference can be sped up massively with little to no effort (since it runs after the serial phases are already done). Without `--parallel`: ``` Item Collection: 16.43597698s, 683mb allocated 720mb resident Inference: 25.429774879s, 1720mb allocated 1781mb resident Total: 41.865866352s, 1720mb allocated 1781mb resident ``` With `--parallel`: ``` Item Collection: 16.380369815s, 683mb allocated 735mb resident Parallel Inference: 7.449166445s, 1721mb allocated 1812mb resident Inference: 143.437157ms, 1721mb allocated 1812mb resident Total: 23.973303611s, 1721mb allocated 1812mb resident ``` Co-authored-by: Jonas Schievink <[email protected]>
| | * analysis-stats: allow parallel type inferenceJonas Schievink2020-06-301-0/+1
| | |
| * | Bump console and insta (removes clicolors-control and atty)kjeremy2020-06-301-28/+4
| |/
| * Merge #5101bors[bot]2020-06-301-0/+10
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5101: Add expect -- a light-weight alternative to insta r=matklad a=matklad This PR implements a small snapshot-testing library. Snapshot updating is done by setting an env var, or by using editor feature (which runs a test with env-var set). Here's workflow for updating a failing test: ![expect](https://user-images.githubusercontent.com/1711539/85926956-28afa080-b8a3-11ea-9260-c6d0d8914d0b.gif) Here's workflow for adding a new test: ![expect-fresh](https://user-images.githubusercontent.com/1711539/85926961-306f4500-b8a3-11ea-9369-f2373e327a3f.gif) Note that colorized diffs are not implemented in this PR, but should be easy to add (we already use them in test_utils). Main differences from insta (which is essential for rust-analyzer development, thanks @mitsuhiko!): * self-updating tests, no need for a separate tool * fewer features (only inline snapshots, no redactions) * fewer deps (no yaml, no persistence) * tighter integration with editor * first-class snapshot object, which can be used to write test functions (as opposed to testing macros) * trivial to tweak for rust-analyzer needs, by virtue of being a workspace member. I think eventually we should converge to a single snapshot testing library, but I am not sure that `expect` is exactly right, so I suggest rolling with both insta and expect for some time (if folks agree that expect might be better in the first place!). # Editor Integration Implementation The thing I am most excited about is the ability to update a specific snapshot from the editor. I want this to be available to other snapshot-testing libraries (cc @mitsuhiko, @aaronabramov), so I want to document how this works. The ideal UI here would be a code action (:bulb:). Unfortunately, it seems like it is impossible to implement without some kind of persistence (if you save test failures into some kind of a database, like insta does, than you can read the database from the editor plugin). Note that it is possible to highlight error by outputing error message in rustc's format. Unfortunately, one can't use the same trick to implement a quick fix. For this reason, expect makes use of another rust-analyzer feature -- ability to run a single test at the cursor position. This does need some expect-specific code in rust-analyzer unfortunately. Specifically, if rust-analyzer notices that the cursor is on `expect!` macro, it adds a special flag to runnable's JSON. However, given #5017 it is possible to approximate this well-enough without rust-analyzer integration. Specifically, an extension can register a special runner which checks (using regexes) if rust-anlyzer runnable covers text with specific macro invocation and do special magic in that case. closes #3835 Co-authored-by: Aleksey Kladov <[email protected]>
| | * Add colorsAleksey Kladov2020-06-271-0/+1
| | |
| | * Add example expect test for goto definitionAleksey Kladov2020-06-271-0/+1
| | |
| | * Add light-weight snapshot testing library with editor integrationAleksey Kladov2020-06-271-0/+8
| | |
* | | Remove unintentional changesZac Pullar-Strecker2020-06-301-1/+0
| | |
* | | Switch to pulldown-cmark, tidy importsZac Pullar-Strecker2020-06-301-211/+35
| | |
* | | Move resolver into impls, work on testsZac Pullar-Strecker2020-06-301-0/+1
| | |
* | | Working intra-doc-linksZac Pullar-Strecker2020-06-301-0/+2
| | |
* | | Generate correct symbol filename for relative linksZac Pullar-Strecker2020-06-301-0/+2
| | |
* | | Hover doc link rewritingZac Pullar-Strecker2020-06-301-11/+225
|/ /
* | Merge #5120bors[bot]2020-06-301-0/+2
|\ \ | | | | | | | | | | | | | | | | | | | | | 5120: Add a simple SSR subcommand to the rust-analyzer command line binary r=davidlattimore a=davidlattimore Is adding the dependency on ra_ide_db OK? It's needed for the call to `db.local_roots()` Co-authored-by: David Lattimore <[email protected]>
| * | Add a simple SSR subcommand to the rust-analyzer command line binaryDavid Lattimore2020-06-291-0/+2
| | |
* | | Update serde_json and cckjeremy2020-06-291-4/+4
|/ /
* | Update instantJeremy Kolb2020-06-281-2/+2
| |
* | Update Chalk to released versionFlorian Diebold2020-06-281-8/+12
| |
* | Remove unneeded code, filename from tests, fix rebasing issuesPaul Daniel Faria2020-06-271-2/+2
| |
* | Merge #5090bors[bot]2020-06-271-40/+48
|\ \ | |/ |/| | | | | | | | | | | 5090: Bump deps r=matklad a=lnicola Co-authored-by: LaurenČ›iu Nicola <[email protected]>
| * Bump rustc_lexerLaurențiu Nicola2020-06-271-2/+2
| |
| * Bump depsLaurențiu Nicola2020-06-271-44/+52
| |