Commit Graph

2409 Commits

Author SHA1 Message Date
Mateusz Mikuła 72c78c105a Upgrade rand to 0.8 2021-12-08 02:03:57 +01:00
Mateusz Mikuła cbdc64e913 Update env_logger to 0.9 2021-12-08 02:03:52 +01:00
Mateusz Mikuła 5a38d57d51 Update itertools to 0.10 2021-12-08 02:03:47 +01:00
Mateusz Mikuła deefc71ce9 Upgrade cargo_metadata to 0.14 2021-12-08 02:03:42 +01:00
Igor Matuszewski 4b24a64a06
Merge pull request #1753 from flip1995/bumpy_road
Bump nightly, clippy and rustfmt versions
2021-12-03 12:20:20 +00:00
flip1995 c062f5957e
Bump nightly, clippy and rustfmt versions
This will unblock the Clippy sync to rustc.
2021-11-24 18:59:42 +01:00
Wyatt Calandro 546218c31d Expose public functions from private raw module 2021-09-02 13:13:39 -07:00
bors abcfc02a19 Auto merge of #1743 - wcalandro:pub-crate-processing, r=Xanewok
Expose more functions for processing analysis files

Kythe's Rust indexer [currently makes use](https://github.com/kythe/kythe/blob/master/kythe/rust/indexer/src/indexer/save_analysis.rs) of the `read_analysis_from_files` function, but for our use case we'd prefer to have the ability to load an analysis from a specific path and, more importantly, the ability to deserialize an analysis directly from string contents.
2021-08-24 23:03:52 +00:00
Johannes Altmanninger 67f1c404ab README: clarify that configuration is sent by an LSP *client*
I added this in 008027d and probably used server because my LSP client
happens to be a server as well. What we actually mean is the editor,
more specifically the LSP client. Sorry for the noise!
2021-08-24 22:32:12 +02:00
bors 7dfa30b2b8 Auto merge of #1741 - rust-lang:bump-to-tokio-1.0, r=Xanewok
Bump to Tokio 1.0

Closes #1695
Closes #1693

Just enabled by https://github.com/tokio-rs/tokio/pull/3388.

Work in progress to prune winapi 0.2, still needs patches upstreamed that migrate `parity-tokio-ipc` and `jsonrpc-*` crates to Tokio 1.0. Let's see what CI has to say, first.

Blocked on:
- [x] NikVolf/parity-tokio-ipc#32
- [x] paritytech/jsonrpc#628
2021-08-24 11:56:50 +00:00
Igor Matuszewski f612dfd62d Reformat 2021-08-24 13:55:51 +02:00
Igor Matuszewski 3512cf8362 Remove old code 2021-08-24 13:54:59 +02:00
Igor Matuszewski 674b272a59 Use crates.io version for jsonrpc-* crates 2021-08-24 13:46:40 +02:00
Igor Matuszewski d5cdd8a7a8 WIP: Upgrade to Tokio 1.0 2021-08-24 13:45:14 +02:00
Igor Matuszewski 9672e37f07 WIP: Update jsonrpc crates to a patched version 2021-08-24 13:45:14 +02:00
Igor Matuszewski 3a0079a3b2
Merge pull request #1742 from camelid/empty-sugg
Only show suggested code when it is non-empty
2021-08-24 11:43:51 +00:00
Igor Matuszewski bbb8da2826
Merge pull request #1746 from steffahn/a_an
Fix typos “a”→“an”
2021-08-24 09:47:45 +00:00
Frank Steffahn a07f1ce995 Fix a typo “an”→“a” 2021-08-22 18:02:54 +02:00
Frank Steffahn bd008071c4 Fix typos “a”→“an” 2021-08-22 14:30:17 +02:00
Wyatt Calandro 5276b29ce8 Add expose more functions for processing analysis files 2021-07-20 13:37:26 -07:00
Noah Lev 437799e0cc Only show suggested code when it is non-empty
This is to match rustc's behavior, and to avoid weird diagnostic boxes
that look like this:

    unnecessary trailing semicolons

    note: `#[warn(redundant_semicolons)]` on by default
    help: remove these semicolons: ``

After this change, the last line should look like this:

    help: remove these semicolons
2021-07-04 16:43:13 -07:00
Arthur LE MOIGNE 7ec3d3640f
Update regex use to match test for external librairies
Make #[test] regex a little bit more permissive to allow external
libs that have special test macro to be recognize as valid test case.
2021-06-25 16:49:04 +02:00
bors 838a83425b Auto merge of #1737 - klensy:bump-deps, r=Xanewok
bump deps

Main thing here is bump cargo_metadata 0.8 -> 0.12 (to dedupe later in rustfmt and rustc)

bump rand_core and sized-chunks to fix vulns
measureme v9.1.0 -> v9.1.1 to drop memmap
dirs-sys v0.3.5 -> v0.3.6 to drop a lot of deps
parking_lot_core v0.8.2 -> v0.8.3 to drop redox_syscall v0.1.57
2021-05-30 23:38:57 +00:00
Igor Matuszewski 57dfd7725b Use the new rls-span v0.5.4 2021-05-31 01:34:43 +02:00
Igor Matuszewski 90ff3541cd rls-span: Bump to 0.5.4 2021-05-31 01:32:33 +02:00
Jacob Pratt 0b93c50ab3 Update `Step` trait implementation 2021-05-31 01:29:18 +02:00
Igor Matuszewski e3fa8ab3c4 Update Rustfmt to unbreak latest nightly 2021-05-31 01:26:11 +02:00
Igor Matuszewski 9ed6f96f2f Upgrade racer to 2.1.47 2021-05-26 13:25:52 +02:00
Igor Matuszewski ee1af6288b Upgrade to a new rust-toolchain file 2021-05-26 13:25:42 +02:00
klensy c7c5448181 bump deps 2021-05-24 18:13:49 +03:00
bors 097d890833 Auto merge of #1736 - cbeuw:83813, r=Xanewok
Sync with rustc_span changes

rust-lang/rust#83813 made some changes to SourceMap and RealFileName. Now to get a string from a `rustc_span::FileName` or `RealFileName` (`working_dir` in `rustc_span::Session` is now a `RealFileName` because it may be remapped), we need to specify if we would like the local filesystem path or remapped path via `--remap-path-prefix`.

There are two files affected, the context very similar in both. I'm not entirely sure if we want the local path or remapped path here, so I just picked local path as a placeholder for opening this PR.

Closes - after updating rls module in rustc repo - https://github.com/rust-lang/rust/issues/85225
2021-05-15 23:02:02 +00:00
Andy Wang 9fae6994a5
Bump rustfmt commit 2021-05-13 08:50:33 +01:00
Andy Wang 118eee2280
Pick local path for working_dir and file paths 2021-05-12 23:30:56 +01:00
Igor Matuszewski e33f4e6849 Upgrade clippy to unbreak RLS toolstate 2021-05-08 00:58:05 +02:00
Igor Matuszewski a55d7e7e36
Merge pull request #1735 from krobelus/rust-prefix-configuration
Document that configuration options live in a "rust" object
2021-05-08 00:50:40 +02:00
Johannes Altmanninger 008027d952 Document that configuration options live in a "rust" object
It wasn't obvious to me where to place options for
"didChangeConfiguration", so this could help others.
VSCode adds the prefix automatically when editing settings.json but
I didn't use that.
2021-05-08 00:40:12 +02:00
Igor Matuszewski 5ba84279bf Merge branch 'bump-rustc-ap'
To keep a commit that is used to fix Rust toolstate, see
21fdb0c73c.
2021-05-07 21:24:11 +02:00
Igor Matuszewski 9102aca0be
Don't add rustup components when using scheduled CI 2021-05-07 19:06:48 +00:00
Igor Matuszewski 359513ce67
Merge pull request #1734 from calebcartwright/rustc-ap
bump rustfmt with test resolution
2021-05-05 12:30:16 +02:00
Caleb Cartwright 0aaf7098aa bump rustfmt with test resolution 2021-05-04 18:53:30 -05:00
Igor Matuszewski d31753e7c4 Update racer, rustfmt and lock_api for rustc-ap v718 support 2021-05-03 23:47:39 +02:00
Igor Matuszewski 378076ff03
Merge pull request #1732 from joshtriplett/opaque-rls-analysis-json
Mark huge rls-analysis test data files as binary to filter greps
2021-05-03 23:43:34 +02:00
Josh Triplett 533d567e47 Mark huge rls-analysis test data files as binary to filter greps
When doing a `git grep` (of rls or of rust-lang/rust with
`--recurse-submodules`), if the grep happens to match within the huge
rls-analysis test data files, the resulting multi-megabyte single-line
can cause a text pager to grind to a halt and have trouble scrolling
(especially scrolling backwards).

These test data files are autogenerated and aren't formatted for human
consumption, so mark them as binary, which causes `git grep` to instead
just state that they match without printing the matching "line".
2021-04-29 22:54:09 -07:00
bors 74d1800c25 Auto merge of #1731 - Xanewok:bump-timeout, r=ehuss
Bump default integration test message timeout to 30s

In case we don't want to introduce another env var to rustc CI script

cc https://github.com/rust-lang/rust/pull/84412

r? `@ehuss`
2021-04-22 21:29:51 +00:00
Igor Matuszewski 17dfb71b07 Bump default integration test message timeout to 30s 2021-04-22 22:44:28 +02:00
bors d1376b5304 Auto merge of #1729 - workingjubilee:latest-itertools-fst, r=Xanewok
itertools = 0.9, fst = 0.4

Bumps itertools, fst, and rayon's dependencies, which allows for two
dependencies to be removed from the lockfile.

Slightly alters fst::Map's signature because it is now generic.
2021-04-22 20:06:41 +00:00
Jubilee Young fa724344ad itertools = 0.9, fst = 0.4
Bumps itertools, fst, and rayon's dependencies, which allows for two
dependencies to be removed from the lockfile.

Slightly alters fst::Map's signature because it is now generic.
2021-04-21 13:47:05 -07:00
bors c7a19f64b0 Auto merge of #1728 - ehuss:update-cargo, r=Xanewok
Update cargo

The wording of an error message changed slightly, so a test needs to be updated.
2021-04-21 10:00:40 +00:00
Eric Huss 93a945515d Update cargo 2021-04-20 20:29:42 -07:00
bors 32c0fe006d Auto merge of #1725 - ehuss:update-cargo, r=Xanewok
Update cargo

Updating for a variety of API changes.
2021-04-12 11:21:12 +00:00