Skip to content

Subtree update of rust-analyzer #124199

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 156 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
156 commits
Select commit Hold shift + click to select a range
3a2ae64
Teach cargo about cfg(rust_analyzer)
lnicola Jan 4, 2024
1141259
Init Wrap/Unwrap cfg_attr
wyatt-herkamp Mar 24, 2024
ecac8e3
Format and codegen for attr
wyatt-herkamp Mar 24, 2024
e3f9a0a
Fixed cursor being at end
wyatt-herkamp Mar 24, 2024
174af88
feat: Add `rust-analyzer.cargo.allTargets` to configure passing `--al…
poliorcetics Mar 21, 2024
5e370b1
Use crate root to choose relevant workspace for flycheck
Wilfred Mar 27, 2024
0f72ab1
Define a separate type for crate indexes in a rust-project.json
Wilfred Mar 27, 2024
e8d6a5e
Rename RustTargetDefinition to CargoTaskDefinition
Wilfred Mar 28, 2024
a758e34
Document CargoTaskDefinition and factor out converting TaskDefinition…
Wilfred Mar 28, 2024
d3fb9f7
Merge commit 'f5a9250147f6569d8d89334dc9cca79c0322729f' into sync-fro…
lnicola Mar 31, 2024
424054a
Merge branch 'master' into sync-from-rust
lnicola Mar 31, 2024
e4a405f
Auto merge of #16983 - lnicola:sync-from-rust, r=lnicola
bors Mar 31, 2024
d0d23a2
update: add editor/extension information to bug report template
roife Apr 1, 2024
9774b11
Auto merge of #16986 - roife:update-issue-template, r=Veykril
bors Apr 1, 2024
f3f14d4
Auto merge of #16970 - Wilfred:fix_tasks, r=Veykril
bors Apr 1, 2024
7e8f2d8
Use contiguous indices for enum variants
Nadrieril Mar 30, 2024
2678660
Auto merge of #16924 - poliorcetics:ab/push-kxwqvtypvlsq, r=Veykril
bors Apr 1, 2024
a6ddf5f
Auto merge of #16961 - Wilfred:fix_crate_ids, r=Veykril
bors Apr 1, 2024
c82d168
Auto merge of #16979 - Nadrieril:contiguous-enum-id, r=Veykril
bors Apr 1, 2024
ff279f1
Fix allFeatures config docs
Veykril Apr 1, 2024
ff8a24a
Auto merge of #16988 - Veykril:config-docs, r=Veykril
bors Apr 1, 2024
2ae3e57
Fix new clippy lints
Veykril Mar 22, 2024
3691380
Auto merge of #16920 - Veykril:clippy-lints, r=Veykril
bors Apr 1, 2024
8d6b65c
fix: silence mismatches involving unresolved projections
roife Mar 29, 2024
3d373fe
tests: add tests for mismatches with unresolved projections
roife Apr 1, 2024
2636e44
fix: simplify the usage of UnknownMismatch
roife Apr 1, 2024
23dd54b
Auto merge of #16968 - roife:fix-issue-16801, r=Veykril
bors Apr 1, 2024
0927f86
Replace static_lifetime usages with error_lifetime, lower outlives goals
Veykril Apr 2, 2024
707be6b
Adjust display impls to respect lifetime bounds
Veykril Apr 2, 2024
600747a
Fix `patch_cfg_if` not applying with stitched sysroot
Veykril Apr 2, 2024
54faa03
Auto merge of #16997 - Veykril:cfg-if-patch, r=Veykril
bors Apr 2, 2024
c3b8c2a
Auto merge of #16996 - Veykril:lt-err, r=Veykril
bors Apr 2, 2024
c5686c8
fix: set the right postfix snippets competion source range
mrnossiom Apr 2, 2024
8696703
Consider ADT generic parameter defaults for unsubstituted layout calc…
Veykril Apr 3, 2024
0140272
Auto merge of #17002 - Veykril:layout-defaults, r=Veykril
bors Apr 3, 2024
5b08b17
Auto merge of #17000 - mrnossiom:master, r=Veykril
bors Apr 3, 2024
d24b0ba
Fix off-by-one error converting to LSP UTF8 offsets with multi-byte char
krobelus Apr 3, 2024
2b62d4b
Fix some cfg censoring bugs
Veykril Apr 3, 2024
c0eb78e
Auto merge of #17006 - Veykril:cfg-censor-fixes, r=Veykril
bors Apr 3, 2024
8e581ac
Auto merge of #17003 - krobelus:utf8-positions-multibyte, r=Veykril
bors Apr 3, 2024
692c41e
Use jemalloc for releases
lnicola Apr 3, 2024
5957835
Consider `exported_name="main"` functions in test modules as tests
Veykril Apr 4, 2024
f8a4553
Auto merge of #17014 - Veykril:runnables-exported-main-test, r=Veykril
bors Apr 4, 2024
6a852d7
Auto merge of #17007 - lnicola:jemalloc, r=lnicola
bors Apr 4, 2024
eab385e
Apply cargo flags in test explorer
HKalbasi Apr 4, 2024
9cced6d
Auto merge of #17016 - HKalbasi:test-explorer, r=HKalbasi
bors Apr 5, 2024
1389069
Simplify
Veykril Apr 6, 2024
336dee3
Remove some allocs
Veykril Apr 6, 2024
f3567bb
Arc CrateData::cfg_options
Veykril Apr 6, 2024
a82e028
Cleanup util::Generics method names
Veykril Apr 6, 2024
d9c29af
Auto merge of #17023 - Veykril:cleanup, r=Veykril
bors Apr 6, 2024
14252e1
Revert "Use jemalloc for releases"
lnicola Apr 8, 2024
7a8374c
Auto merge of #17029 - lnicola:revert-jemalloc, r=lnicola
bors Apr 8, 2024
8078c3d
Bump chalk
Veykril Apr 7, 2024
f7a66fd
Log flycheck errors
ShoyuVanilla Apr 8, 2024
81ef59f
Document enabling the flatpak rust SDK extension
ColinKinloch Apr 8, 2024
6df559f
Run Windows tests on PRs too
Wilfred Apr 8, 2024
b03844d
[vfs] Don't confuse paths with source roots that have the same prefix
Wilfred Apr 5, 2024
a5feb4f
Auto merge of #17034 - ColinKinloch:flatpak_sdk_rust_enable, r=lnicola
bors Apr 9, 2024
657b33b
Auto merge of #17033 - ShoyuVanilla:flyck-log, r=Veykril
bors Apr 11, 2024
4346bbc
fix: support auto-closing for triple backticks
roife Apr 11, 2024
7528460
Revert "fix: set the right postfix snippets competion source range"
roife Apr 12, 2024
964afc9
Run cargo test per workspace in the test explorer
HKalbasi Apr 13, 2024
07ae540
Auto merge of #17056 - HKalbasi:test-explorer, r=HKalbasi
bors Apr 13, 2024
145078e
make function builder create ast directly
Kohei316 Apr 13, 2024
0636e7c
Auto merge of #17059 - Kohei316:refactor-generate-function, r=Veykril
bors Apr 13, 2024
a1884b0
Auto merge of #17030 - Veykril:bump-chalk, r=Veykril
bors Apr 13, 2024
85542e0
Auto merge of #17035 - Wilfred:windows_ci_on_prs, r=Veykril
bors Apr 13, 2024
e1d7ce7
Auto merge of #17051 - roife:auto-closing-for-triple-backticks, r=Vey…
bors Apr 13, 2024
9b19462
Auto merge of #17054 - roife:fix-issue-17036, r=Veykril
bors Apr 13, 2024
773b4a5
Auto merge of #17019 - Wilfred:source_root_prefixes, r=Veykril
bors Apr 13, 2024
ff9ebc7
Temporarily disable unlinked file popup
Veykril Apr 13, 2024
beb205f
Auto merge of #17062 - Veykril:disable-unlinked-file-popup, r=Veykril
bors Apr 13, 2024
2c5c12a
fix: Fix inlay hint resolution being broken
Veykril Apr 14, 2024
7dad0a2
Auto merge of #17063 - Veykril:inlay-hints-fix, r=Veykril
bors Apr 14, 2024
189aba7
minor: Carry inlay hint resolve hash as a string
Veykril Apr 14, 2024
f3c7bd0
Auto merge of #17064 - Veykril:inlay-hints-fix, r=Veykril
bors Apr 14, 2024
392538c
Add edition to parser struct
Urhengulas Jan 30, 2024
454e481
Add edition to all `parse` functions of the parser crate
Urhengulas Jan 30, 2024
2cf5d88
Raise edition one more level
Urhengulas Jan 30, 2024
e785280
Mark edition field as unused
Urhengulas Jan 30, 2024
9c75e9f
Deduplicate Edition enum
Veykril Apr 14, 2024
83370fe
Use Edition::CURRENT
Veykril Apr 14, 2024
74cef6d
Auto merge of #16450 - Urhengulas:edition-aware-parser, r=Veykril
bors Apr 14, 2024
a483d3b
internal: Thread edition through to parsing/tt-to-syntax-tree routine…
Veykril Apr 14, 2024
5dbe3fe
Auto merge of #17065 - Veykril:edition-parse-mac, r=Veykril
bors Apr 14, 2024
f5e4eb2
Fix rustc_skip_array_during_method_dispatch edition check
lnicola Apr 15, 2024
d80df71
Auto merge of #17069 - lnicola:fix-skip-array-dispatch, r=lnicola
bors Apr 15, 2024
a37c720
internal: Remove unnecessay `GlobalState::send_hint_refresh_query` field
Veykril Apr 15, 2024
2cbc284
Auto merge of #17070 - Veykril:simplify, r=Veykril
bors Apr 15, 2024
89779ca
internal: improve `TokenSet` implementation
davidsemakula Apr 9, 2024
e326b63
internal: add reserved keywords
davidsemakula Apr 9, 2024
8e45912
internal: add auto-import assist tests for raw identifiers
davidsemakula Apr 9, 2024
67d8d2d
Make ConfigData Ser and TOML De
alibektas Oct 22, 2023
60d3a73
Differentiate between full configs and toml only config groupings
Veykril Apr 15, 2024
40bb8f3
Auto merge of #16813 - wyatt-herkamp:to-from-cfg_attr-assist, r=Veykril
bors Apr 15, 2024
1915980
fix: Fix `impl Trait<Self>` causing stackoverflows
Veykril Mar 18, 2024
2e7059c
Auto merge of #16877 - Veykril:stackoverflow, r=Veykril
bors Apr 15, 2024
91659da
internal: Use `hir_fmt_args` everywhere in `hir_ty::display`
Veykril Apr 15, 2024
c037130
Auto merge of #17072 - Veykril:hir-ty-display, r=Veykril
bors Apr 15, 2024
76a8a97
fix: better inline preview for postfix completion
roife Apr 15, 2024
8db1c64
tests: fix tests for postfix
roife Apr 15, 2024
69fe457
internal: simplify `TokenSet` implementation
davidsemakula Apr 15, 2024
af72874
Auto merge of #17073 - roife:better-inline-preview, r=Veykril
bors Apr 15, 2024
0faa294
Use the text range for the name. Not the entire syntax in Unused Vari…
wyatt-herkamp Apr 15, 2024
6b98e55
Add Static and Const highlighting token types
Veykril Apr 15, 2024
597c293
Adjust package.json semantic highlighting items
Veykril Apr 15, 2024
b223860
Auto merge of #17074 - Veykril:hl, r=Veykril
bors Apr 15, 2024
94e3826
Optimize exhaustiveness checking perf a bit
Veykril Apr 15, 2024
701068d
Verify we are not in a macro attempt 2
wyatt-herkamp Apr 15, 2024
531a270
Generally optimize diagnostics performance
Veykril Apr 15, 2024
90cfa80
Auto merge of #17078 - Veykril:diags-perf, r=Veykril
bors Apr 15, 2024
ab8c112
Revert "Auto merge of #17073 - roife:better-inline-preview, r=Veykril"
davidbarsky Apr 15, 2024
dcbb27a
Auto merge of #17081 - davidbarsky:david/revert-17073, r=Veykril
bors Apr 16, 2024
e64610d
Auto merge of #17037 - davidsemakula:token-set-collisions, r=Veykril
bors Apr 16, 2024
1179c3e
Auto merge of #16639 - alibektas:13529/config_restruct, r=Veykril
bors Apr 16, 2024
9bd8eee
ide: improve ReferenceCategoryType
matklad Apr 16, 2024
f852a6f
ide: add a new test
matklad Apr 16, 2024
d07f024
Auto merge of #17083 - matklad:matklad/test-search, r=lnicola
bors Apr 16, 2024
0eb7b6c
Don't show unused_variables fixes if the name comes from a macro defi…
Veykril Apr 17, 2024
91b8441
Auto merge of #17055 - wyatt-herkamp:fix_panic_at_unused_variable, r=…
bors Apr 17, 2024
5ba37f3
chore: fix a few spans without `.entered()`
davidbarsky Apr 17, 2024
011c212
Update `per_query_memory_usage` query listing
Veykril Apr 17, 2024
b256807
Auto merge of #17092 - Veykril:per-queries, r=Veykril
bors Apr 17, 2024
46702ff
Auto merge of #17087 - davidbarsky:david/fix-some-tracing-spans, r=Ve…
bors Apr 17, 2024
bd133ee
fix: VFS should not walk circular symlinks
Wilfred Apr 17, 2024
062e1b9
Auto merge of #17093 - Wilfred:vfs_ignore_symlink_cycles, r=Veykril
bors Apr 18, 2024
d12bad6
Add CONTRIBUTING.md
Veykril Apr 18, 2024
68b1a28
Auto merge of #17095 - Veykril:contributing.md, r=Veykril
bors Apr 18, 2024
6bfdd38
Render matched macro arm on hover of macro calls
Veykril Dec 8, 2023
4135696
Cleanup
Veykril Apr 18, 2024
08c706f
Auto merge of #16057 - Veykril:macro-arm, r=Veykril
bors Apr 18, 2024
af1fd88
Auto merge of #16257 - lnicola:rustc-check-cfg, r=Veykril
bors Apr 18, 2024
db292bd
Make test harness arguments configurable and not `--nocapture`.
kpreid Apr 19, 2024
a543516
fix: handle escaped chars in doc comments
roife Apr 19, 2024
9b4fb7c
Auto merge of #17105 - kpreid:nocapture, r=Veykril
bors Apr 19, 2024
2e54c0a
Remove rustc core test cfg hacks
Veykril Mar 1, 2024
eea61bd
Auto merge of #16726 - Veykril:rustc-ws-hacks, r=Veykril
bors Apr 19, 2024
1aba000
Add convert From to TryFrom assist
Lindronics Apr 17, 2024
ee10f9f
Cleanup cfg and env handling in project-model
Veykril Apr 19, 2024
8989dcf
Support cfg overrides in all workspace kind
Veykril Apr 19, 2024
0485a85
Set debug_assertions and miri cfgs as config defaults, allowing them …
Veykril Apr 19, 2024
77ce295
Auto merge of #17094 - Lindronics:convert-from-to-tryfrom, r=Veykril
bors Apr 19, 2024
cdb8c3a
Fix tests being non-deterministic
Veykril Apr 19, 2024
3e232bb
fix: replace unescape fn with the one in ra-ap-rustc_lexer
roife Apr 19, 2024
05428c5
Auto merge of #17024 - roife:fix-issue-16980, r=Veykril
bors Apr 19, 2024
50bdeaa
Auto merge of #17108 - Veykril:rustc-ws-hacks, r=Veykril
bors Apr 19, 2024
2f82807
Add minimal support for cargo scripts
HKalbasi Aug 13, 2023
0b24599
Re-implement dependecny tracking for cargo script
Veykril Apr 19, 2024
46f0554
Patch cargo script root files back to manifest
Veykril Apr 19, 2024
0ce7179
Correctly populate detached files roots
Veykril Apr 19, 2024
3d6bd24
fix: usage of `deprecated` version of `Node.js`
hamirmahal Apr 19, 2024
8621e79
Auto merge of #17104 - hamirmahal:fix/usage-of-deprecated-version-of-…
bors Apr 19, 2024
c83d8cf
Auto merge of #17110 - Veykril:cargo-script-mvp, r=Veykril
bors Apr 19, 2024
e80257d
Merge commit 'c83d8cf5844fff3d6e243ab408669222059af1c6' into sync-fro…
lnicola Apr 20, 2024
63f134a
Add in-rust-tree feature to hir-expand
lnicola Apr 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/tools/rust-analyzer/.github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ Otherwise please try to provide information which will help us to fix the issue

**rustc version**: (eg. output of `rustc -V`)

**editor or extension**: (eg. VSCode, Vim, Emacs, etc. For VSCode users, specify your extension version; for users of other editors, provide the distribution if applicable)

**relevant settings**: (eg. client settings, or environment variables like `CARGO`, `RUSTC`, `RUSTUP_HOME` or `CARGO_HOME`)

**repository link (if public, optional)**: (eg. [rust-analyzer](https://github.com/rust-lang/rust-analyzer))
Expand Down
2 changes: 1 addition & 1 deletion src/tools/rust-analyzer/.github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ jobs:
run: cargo build --quiet ${{ env.USE_SYSROOT_ABI }}

- name: Test
if: matrix.os == 'ubuntu-latest' || github.event_name == 'push'
if: matrix.os == 'ubuntu-latest' || matrix.os == 'windows-latest' || github.event_name == 'push'
run: cargo test ${{ env.USE_SYSROOT_ABI }} -- --nocapture --quiet

- name: Switch to stable toolchain
Expand Down
16 changes: 8 additions & 8 deletions src/tools/rust-analyzer/.github/workflows/metrics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
key: ${{ runner.os }}-target-${{ github.sha }}

- name: Upload build metrics
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: build-${{ github.sha }}
path: target/build.json
Expand Down Expand Up @@ -95,7 +95,7 @@ jobs:
run: cargo xtask metrics "${{ matrix.names }}"

- name: Upload metrics
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.names }}-${{ github.sha }}
path: target/${{ matrix.names }}.json
Expand All @@ -109,32 +109,32 @@ jobs:
uses: actions/checkout@v4

- name: Download build metrics
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: build-${{ github.sha }}

- name: Download self metrics
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: self-${{ github.sha }}

- name: Download ripgrep-13.0.0 metrics
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ripgrep-13.0.0-${{ github.sha }}

- name: Download webrender-2022 metrics
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: webrender-2022-${{ github.sha }}

- name: Download diesel-1.4.8 metrics
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: diesel-1.4.8-${{ github.sha }}

- name: Download hyper-0.14.18 metrics
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: hyper-0.14.18-${{ github.sha }}

Expand Down
30 changes: 30 additions & 0 deletions src/tools/rust-analyzer/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Contributing to rust-analyzer

Thank you for your interest in contributing to rust-analyzer! There are many ways to contribute
and we appreciate all of them.

To get a quick overview of the crates and structure of the project take a look at the
[./docs/dev](./docs/dev) folder.

If you have any questions please ask them in the [rust-analyzer zulip stream](
https://rust-lang.zulipchat.com/#narrow/stream/185405-t-compiler.2Frust-analyzer) or if unsure where
to start out when working on a concrete issue drop a comment on the related issue for mentoring
instructions (general discussions are recommended to happen on zulip though).

## Fixing a bug or improving a feature

Generally it's fine to just work on these kinds of things and put a pull-request out for it. If there
is an issue accompanying it make sure to link it in the pull request description so it can be closed
afterwards or linked for context.

If you want to find something to fix or work on keep a look out for the `C-bug` and `C-enhancement`
labels.

## Implementing a new feature

It's advised to first open an issue for any kind of new feature so the team can tell upfront whether
the feature is desirable or not before any implementation work happens. We want to minimize the
possibility of someone putting a lot of work into a feature that is then going to waste as we deem
it out of scope (be it due to generally not fitting in with rust-analyzer, or just not having the
maintenance capacity). If there already is a feature issue open but it is not clear whether it is
considered accepted feel free to just drop a comment and ask!
75 changes: 66 additions & 9 deletions src/tools/rust-analyzer/Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"

[[package]]
name = "chalk-derive"
version = "0.96.0"
version = "0.97.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5676cea088c32290fe65c82895be9d06dd21e0fa49bb97ca840529e9417ab71a"
checksum = "92a0aedc4ac2adc5c0b7dc9ec38c5c816284ad28da6d4ecd01873b9683f54972"
dependencies = [
"proc-macro2",
"quote",
Expand All @@ -173,20 +173,19 @@ dependencies = [

[[package]]
name = "chalk-ir"
version = "0.96.0"
version = "0.97.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ff550c2cdd63ff74394214dce03d06386928a641c0f08837535f04af573a966d"
checksum = "db18493569b190f7266a04901e520fc3a5c00564475154287906f8a27302c119"
dependencies = [
"bitflags 2.4.2",
"chalk-derive",
"lazy_static",
]

[[package]]
name = "chalk-recursive"
version = "0.96.0"
version = "0.97.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4c4559e5c9b200240453b07d893f9c3c74413b53b0d33cbe272c68b0b77aa1c3"
checksum = "ae4ba8ce5bd2e1b59f1f79495bc8704db09a8285e51cc5ddf01d9baee1bf447d"
dependencies = [
"chalk-derive",
"chalk-ir",
Expand All @@ -197,9 +196,9 @@ dependencies = [

[[package]]
name = "chalk-solve"
version = "0.96.0"
version = "0.97.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0882e68ce9eb5a0a2413806538494d19df6ee520ab17d1faf489e952f32e98b8"
checksum = "b2ec1b3b7f7b1ec38f099ef39c2bc3ea29335be1b8316d114baff46d96d131e9"
dependencies = [
"chalk-derive",
"chalk-ir",
Expand Down Expand Up @@ -552,6 +551,7 @@ dependencies = [
"la-arena 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
"limit",
"mbe",
"parser",
"rustc-hash",
"smallvec",
"span",
Expand Down Expand Up @@ -695,6 +695,7 @@ version = "0.0.0"
dependencies = [
"arrayvec",
"base-db",
"bitflags 2.4.2",
"cov-mark",
"crossbeam-channel",
"either",
Expand Down Expand Up @@ -781,6 +782,7 @@ checksum = "7b0b929d511467233429c45a44ac1dcaa21ba0f5ba11e4879e6ed28ddb4f9df4"
dependencies = [
"equivalent",
"hashbrown",
"serde",
]

[[package]]
Expand Down Expand Up @@ -1594,6 +1596,7 @@ dependencies = [
"ide",
"ide-db",
"ide-ssr",
"indexmap",
"itertools",
"load-cargo",
"lsp-server 0.7.6 (registry+https://github.com/rust-lang/crates.io-index)",
Expand Down Expand Up @@ -1622,6 +1625,7 @@ dependencies = [
"test-fixture",
"test-utils",
"tikv-jemallocator",
"toml",
"toolchain",
"tracing",
"tracing-subscriber",
Expand Down Expand Up @@ -1775,6 +1779,15 @@ dependencies = [
"syn",
]

[[package]]
name = "serde_spanned"
version = "0.6.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "eb3622f419d1296904700073ea6cc23ad690adbd66f13ea683df73298736f0c1"
dependencies = [
"serde",
]

[[package]]
name = "sharded-slab"
version = "0.1.7"
Expand Down Expand Up @@ -1822,6 +1835,7 @@ dependencies = [
"salsa",
"stdx",
"syntax",
"text-size",
"vfs",
]

Expand Down Expand Up @@ -2025,6 +2039,40 @@ version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"

[[package]]
name = "toml"
version = "0.8.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a1a195ec8c9da26928f773888e0742ca3ca1040c6cd859c919c9f59c1954ab35"
dependencies = [
"serde",
"serde_spanned",
"toml_datetime",
"toml_edit",
]

[[package]]
name = "toml_datetime"
version = "0.6.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3550f4e9685620ac18a50ed434eb3aec30db8ba93b0287467bca5826ea25baf1"
dependencies = [
"serde",
]

[[package]]
name = "toml_edit"
version = "0.21.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d34d383cd00a163b4a5b85053df514d45bc330f6de7737edfe0a93311d1eaa03"
dependencies = [
"indexmap",
"serde",
"serde_spanned",
"toml_datetime",
"winnow",
]

[[package]]
name = "toolchain"
version = "0.0.0"
Expand Down Expand Up @@ -2401,6 +2449,15 @@ version = "0.52.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "32b752e52a2da0ddfbdbcc6fceadfeede4c939ed16d13e648833a61dfb611ed8"

[[package]]
name = "winnow"
version = "0.5.32"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8434aeec7b290e8da5c3f0d628cb0eac6cabcb31d14bb74f779a08109a5914d6"
dependencies = [
"memchr",
]

[[package]]
name = "write-json"
version = "0.1.4"
Expand Down
11 changes: 7 additions & 4 deletions src/tools/rust-analyzer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ smol_str.opt-level = 3
text-size.opt-level = 3
# This speeds up `cargo xtask dist`.
miniz_oxide.opt-level = 3
salsa.opt-level = 3

[profile.release]
incremental = true
Expand Down Expand Up @@ -106,10 +107,10 @@ arrayvec = "0.7.4"
bitflags = "2.4.1"
cargo_metadata = "0.18.1"
camino = "1.1.6"
chalk-solve = { version = "0.96.0", default-features = false }
chalk-ir = "0.96.0"
chalk-recursive = { version = "0.96.0", default-features = false }
chalk-derive = "0.96.0"
chalk-solve = { version = "0.97.0", default-features = false }
chalk-ir = "0.97.0"
chalk-recursive = { version = "0.97.0", default-features = false }
chalk-derive = "0.97.0"
command-group = "2.0.1"
crossbeam-channel = "0.5.8"
dissimilar = "1.0.7"
Expand Down Expand Up @@ -188,6 +189,8 @@ enum_variant_names = "allow"
new_ret_no_self = "allow"
# Has a bunch of false positives
useless_asref = "allow"
# Has false positives
assigning_clones = "allow"

## Following lints should be tackled at some point
too_many_arguments = "allow"
Expand Down
5 changes: 3 additions & 2 deletions src/tools/rust-analyzer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ https://rust-analyzer.github.io/manual.html#installation

## Documentation

If you want to **contribute** to rust-analyzer or are just curious about how
things work under the hood, check the [./docs/dev](./docs/dev) folder.
If you want to **contribute** to rust-analyzer check out the [CONTRIBUTING.md](./CONTRIBUTING.md) or
if you are just curious about how things work under the hood, check the [./docs/dev](./docs/dev)
folder.

If you want to **use** rust-analyzer's language server with your editor of
choice, check [the manual](https://rust-analyzer.github.io/manual.html) folder.
Expand Down
Loading
Loading