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.
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!
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
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
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
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.
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".
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`
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.
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.