Skip to content

⬆️ rust-analyzer #115927

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

Merged
merged 171 commits into from
Sep 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
171 commits
Select commit Hold shift + click to select a range
c5d4f73
proc-macro-test: Pass target to cargo invocation
Aug 3, 2023
96b60ed
stabilize abi_thiscall
Trolldemorted Aug 6, 2023
3ea1928
Rollup merge of #114562 - Trolldemorted:thiscall, r=oli-obk
matthiaskrgr Aug 7, 2023
c9bc45f
feat: `riscv-interrupt-{m,s}` calling conventions
sethp May 23, 2023
a46eebb
Deunwrap wrap_return_type_in_result
alibektas Aug 9, 2023
93b6838
add a csky-unknown-linux-gnuabiv2 target
Dirreke Jul 13, 2023
465aaed
fix the wrong number in const KNOWN_ARCH
Dirreke Jul 25, 2023
d6b97e6
Upgrade Object and related deps
Dirreke Aug 14, 2023
4ddc6a7
update Cargo.lock
Dirreke Aug 14, 2023
eed1b3b
v2
alibektas Aug 15, 2023
14078ed
Rename CargoHandle to CommandHandle
Wilfred Aug 15, 2023
e286640
Format the existing command in logging
Wilfred Aug 15, 2023
59f9c95
give some unwind-related terminators a more clear name
RalfJung Aug 19, 2023
883f16d
fix RA build
RalfJung Aug 20, 2023
30d8aa1
Merge commit '9b3d03408c66749d56466bb09baf2a7177deb6ce' into sync-fro…
lnicola Aug 21, 2023
a4cf405
Merge branch 'master' into sync-from-rust
lnicola Aug 21, 2023
343ee8b
internal: unpin serde
matklad Aug 21, 2023
6caf79c
Allow internal_features in test
lnicola Aug 21, 2023
7012fff
Fix elided lifetimes in rust-lang/rust
compiler-errors Aug 21, 2023
b4576b5
Run analysis-stats on stable
lnicola Aug 22, 2023
7f659a3
Auto merge of #15494 - lnicola:sync-from-rust, r=lnicola
bors Aug 22, 2023
9b82437
Auto merge of #15495 - matklad:matklad/unpin, r=lnicola
bors Aug 22, 2023
43e8688
internal: up lsp-server
matklad Aug 22, 2023
9e3bf69
Auto merge of #15499 - matklad:up-lsp-server, r=lnicola
bors Aug 22, 2023
ce0eeee
Rollup merge of #115011 - compiler-errors:warn-on-elided-assoc-ct-lt,…
compiler-errors Aug 22, 2023
bc42b99
SCIP: Report the correct version of rust-analyzer in the metadata
Wilfred Aug 23, 2023
6444211
Auto merge of #15503 - Wilfred:scip_version, r=Veykril
bors Aug 23, 2023
a4b2503
Merge branch 'master' into sync-from-rust
lnicola Aug 23, 2023
8b8c7d7
Auto merge of #15504 - lnicola:sync-from-rust, r=lnicola
bors Aug 23, 2023
f5b7c60
Auto merge of #15385 - inferiorhumanorgans:explicit-cross-target, r=V…
bors Aug 23, 2023
4e034d7
Set RUSTC_BOOTSTRAP=1 when running analysis-stats on libstd
lnicola Aug 25, 2023
3864b43
Update offset intrinsic to match 1.72
HKalbasi Aug 25, 2023
fa76f60
Run cargo fmt on 1.72
HKalbasi Aug 25, 2023
0a0bb77
Auto merge of #15512 - HKalbasi:mir, r=HKalbasi
bors Aug 25, 2023
204bc2c
fix: diagnostics for 'while let' loop with label in condition
xffxff Aug 26, 2023
029baaa
Auto merge of #15517 - xffxff:label_in_condition, r=lnicola
bors Aug 26, 2023
a0d2761
Use env node to set RUSTC_BOOTSTRAP
lnicola Aug 28, 2023
a6f5356
Fix release workflow
lnicola Aug 28, 2023
144526c
Auto merge of #15523 - lnicola:bootstrap, r=lnicola
bors Aug 28, 2023
e457759
Add bind_unused_param assistant.
vsrs Aug 28, 2023
19e9994
Add cov_mark tests
vsrs Aug 28, 2023
514fefa
Respect `#[allow(unused_braces)]`
HKalbasi Aug 28, 2023
62268e4
Auto merge of #15527 - HKalbasi:diagnostics-allow, r=HKalbasi
bors Aug 28, 2023
6b20c1b
Apply suggestions.
vsrs Aug 29, 2023
b06503b
Auto merge of #15465 - Wilfred:command_handle_fixes, r=Veykril
bors Aug 29, 2023
62d1897
Only send inlay hint refresh requests on initial load
SomeoneToIgnore Aug 29, 2023
6b559c4
Better trait implementation support
vsrs Aug 29, 2023
1eb6d2e
Rollback changes in remove_unused_param.rs
vsrs Aug 29, 2023
ea74cc4
Update architecture.md
Veykril Aug 30, 2023
3213344
Auto merge of #15534 - rust-lang:Veykril-patch-1, r=Veykril
bors Aug 30, 2023
c09f175
Less `once_cell` more `std`
Veykril Sep 1, 2023
ce650ce
Auto merge of #15542 - Veykril:std-once, r=Veykril
bors Sep 1, 2023
70e21dc
Remove some allocations in borrowck
Veykril Sep 1, 2023
074c668
Auto merge of #15543 - Veykril:less-alloc, r=Veykril
bors Sep 1, 2023
cc8b786
Shuffle some locking around
Veykril Sep 1, 2023
0f1cde7
On type format '(', by adding closing ')' automatically
SomeoneToIgnore Aug 29, 2023
da78617
Use proper assertion in on-type formatting edits
SomeoneToIgnore Aug 31, 2023
c193909
Reduce semantic token cache lock scopes
Veykril Sep 1, 2023
60182f7
Auto merge of #15544 - Veykril:locks, r=Veykril
bors Sep 1, 2023
056b6b9
remove the repetitive word
cuishuang Sep 2, 2023
2557995
Auto merge of #15546 - cuishuang:master, r=lnicola
bors Sep 2, 2023
2dbc7e3
Restructure some modules in rust-analyzer crate
Veykril Sep 2, 2023
8a29d07
Auto merge of #15548 - Veykril:r-a-restructure, r=Veykril
bors Sep 2, 2023
0bf0563
Add a few more `db.unwind_if_cancelled()` calls
Veykril Sep 2, 2023
0e002fe
Auto merge of #15549 - Veykril:unwind-if-cancelled, r=Veykril
bors Sep 2, 2023
b157552
Move doc comment handling into ide-db
Veykril Sep 2, 2023
8eddc64
Simplify
Veykril Sep 2, 2023
81f0108
Remove markdown module from rust-analyzer crate
Veykril Sep 2, 2023
99686d5
Auto merge of #15551 - Veykril:docs, r=Veykril
bors Sep 2, 2023
e07fbab
Resolve inlay hint data
SomeoneToIgnore Aug 27, 2023
10464c7
Simplify InlayFieldsToResolve handling
SomeoneToIgnore Aug 29, 2023
caf0185
Ensure resolved hint's file exists
SomeoneToIgnore Aug 29, 2023
7b3dba5
Provide resolve data only when it can actually be resolved
SomeoneToIgnore Sep 2, 2023
7f450da
Omit hint resolve data better
SomeoneToIgnore Sep 2, 2023
3a6196b
Bump rustc-perf, replace webrender and diesel with newer versions
Veykril Sep 3, 2023
520d02f
Check that the bench path exists before invoking analysis-stats
Veykril Sep 3, 2023
f76f025
Fix metrics CI to use new json file names
Veykril Sep 3, 2023
63867dd
Auto merge of #15552 - Veykril:metrics-new, r=Veykril
bors Sep 3, 2023
db4684e
Add hyper-0.14.18 to metrics
Veykril Sep 3, 2023
2df30e1
Auto merge of #15553 - Veykril:metrics-hyper, r=Veykril
bors Sep 3, 2023
4f22e1a
Update notify to 6.1.1
gigaroby Sep 4, 2023
9b8eb80
Parse builtin# syntax
Veykril Sep 5, 2023
1504830
Implement offset_of in hir-def and hir-ty
Veykril Sep 5, 2023
3431d58
Insert builtin#asm into asm! expansion
Veykril Sep 5, 2023
caeea45
Auto merge of #15557 - Veykril:builtin-syntax, r=Veykril
bors Sep 5, 2023
b1b044f
code: yeet rust-analyzer.discoverProjectCommand
davidbarsky Sep 5, 2023
1ee7f54
fix lints
davidbarsky Sep 5, 2023
68781ae
fix some more lints
davidbarsky Sep 5, 2023
abe8f1e
Implement builtin#format_args, using rustc's format_args parser
Veykril Sep 5, 2023
6260c63
fmt
davidbarsky Sep 5, 2023
b9a9722
Auto merge of #15556 - gigaroby:master, r=lnicola
bors Sep 5, 2023
e243a03
Desugar builtin#format_args
Veykril Sep 6, 2023
5fdd1e3
Remove `todo!()`s
Veykril Sep 6, 2023
c0e4026
Emit builtin#format_args in builtin format_args expander
Veykril Sep 6, 2023
3fa0bf0
Fix ide-diagnostics test fixture
Veykril Sep 6, 2023
5046889
Don't allocate the format_args template string as an expression
Veykril Sep 6, 2023
96f1923
Fix hir pretty printing emitting trailing whitespace
Veykril Sep 6, 2023
f29867b
Auto merge of #15559 - Veykril:builtin-format-args, r=Veykril
bors Sep 6, 2023
42f77f8
internal: use current subcrate's `rustfmt.toml` with all rustfmt conf…
davidbarsky Sep 6, 2023
f13b184
Implement `write_via_move` intrinsic for mir-eval
Veykril Sep 6, 2023
a843e46
Auto merge of #15564 - davidbarsky:davidbarsky/use-current-subcrates-…
bors Sep 6, 2023
5906c26
Auto merge of #15565 - Veykril:mir, r=Veykril
bors Sep 6, 2023
77b359a
Auto merge of #15532 - SomeoneToIgnore:more-brackets-on-type-formatti…
bors Sep 6, 2023
e4c4693
Ignore enum variants in analysis stats of mir bodies
HKalbasi Sep 6, 2023
d04cff6
Auto merge of #15567 - HKalbasi:mir, r=HKalbasi
bors Sep 6, 2023
10b0cd7
Replace format-args parser with upstream fork
Veykril Sep 7, 2023
8edd81f
Auto merge of #15568 - Veykril:upstream-rustc-ap, r=Veykril
bors Sep 7, 2023
5b5bce8
project-model: when using `rust-project.json`, prefer the sysroot-def…
davidbarsky Sep 5, 2023
cd53bd6
Remove allocation on mir eval memory write
Veykril Sep 7, 2023
d5b6ab2
Auto merge of #15571 - Veykril:mir-alloc, r=Veykril
bors Sep 7, 2023
553152e
refactor `rustc_cfg` to be more inline with `docs/dev/style.md`
davidbarsky Sep 7, 2023
fad3823
rename `rustc_cfg::Config` to `rustc_cfg::RustcCfgConfig` and import
davidbarsky Sep 7, 2023
912b22f
add doc comment to `rustc_cfg::RustcCfgConfig`
davidbarsky Sep 7, 2023
9762f76
Add assist `into_to_qualified_from`
alibektas Sep 4, 2023
506a477
Use cargo name as the CARGO_CRATE_NAME instead of package name
alibektas Sep 7, 2023
5ddad87
Auto merge of #15574 - alibektas:15572/false_crate_name_env, r=Veykril
bors Sep 8, 2023
47e0d07
Auto merge of #15573 - alibektas:15539/into_to_from, r=Veykril
bors Sep 8, 2023
fac77a8
Auto merge of #15558 - davidbarsky:davidbarsky/add-companion-extensio…
bors Sep 8, 2023
3325622
Auto merge of #15430 - alibektas:deunwrap/wrap_return_type_in_result,…
bors Sep 8, 2023
ca6ddd8
Enable `rust_analyzer` for cfgs when code is being analyzed by rust-a…
Veykril Aug 29, 2023
853f8a2
Fix cfg completions not working
Veykril Aug 29, 2023
e9e2c1a
Update project-model test outputs
Veykril Aug 29, 2023
fddef42
Only set rust-analyzer cfg for workspace members
Veykril Sep 8, 2023
9708a29
Intern projections in mir place
HKalbasi Sep 8, 2023
829e777
Auto merge of #15524 - vsrs:bind_unused_param, r=Veykril
bors Sep 8, 2023
548d2f0
Auto merge of #15575 - HKalbasi:mir, r=HKalbasi
bors Sep 8, 2023
b67606c
Auto merge of #15529 - SomeoneToIgnore:less-inlay-hint-refreshes, r=V…
bors Sep 8, 2023
347695a
Auto merge of #15528 - Veykril:r-a-cfg, r=Veykril
bors Sep 8, 2023
70a6cf0
Auto merge of #15522 - SomeoneToIgnore:resolve-inlay-hints, r=Veykril
bors Sep 8, 2023
7e786ea
Rework no_coverage to coverage(off)
bossmc Aug 9, 2023
297ed70
Clear native diagnostics on file closing
Veykril Sep 8, 2023
ea71a49
Auto merge of #15577 - Veykril:clear-native-diags, r=Veykril
bors Sep 8, 2023
8654a09
Diagnose mismatched arg count for tuple struct patterns
Veykril Sep 8, 2023
c31d418
Auto merge of #15578 - Veykril:diag-tuple-struct-count, r=Veykril
bors Sep 8, 2023
0bf6ffa
Update crates/project-model/src/rustc_cfg.rs
davidbarsky Sep 8, 2023
c405509
Auto merge of #15560 - davidbarsky:davidbarsky/use-sysroot-rustc-to-d…
bors Sep 8, 2023
55c7545
Diagnose private fields in record constructor
Veykril Sep 8, 2023
8f5fee4
Diagnose incorrect and private fields in record structs
Veykril Sep 9, 2023
a3cfb45
Auto merge of #15584 - Veykril:diag-private-field-constructor, r=Veykril
bors Sep 9, 2023
cfcef69
shrink_to_fit body source map
Veykril Sep 9, 2023
994df3d
Auto merge of #15586 - Veykril:shrink, r=Veykril
bors Sep 9, 2023
ccff704
Shrink some stuff
Veykril Sep 9, 2023
326f37e
Auto merge of #15592 - Veykril:shrink, r=Veykril
bors Sep 10, 2023
35e0d80
Deunwrap extract_function
alibektas Aug 9, 2023
6f74604
v2
alibektas Aug 15, 2023
0f1673c
v3
alibektas Sep 10, 2023
7ae70a0
Disallow renaming of non-local structs
alibektas Jul 8, 2023
43edb51
Generalize disallowing of definition renaming
alibektas Jul 8, 2023
6dc7fa9
v3
alibektas Aug 24, 2023
a0c8bee
Add more comments as requested
alibektas Aug 24, 2023
0118741
v4
alibektas Sep 10, 2023
0e251ff
Auto merge of #15232 - alibektas:14850, r=Veykril
bors Sep 11, 2023
cc6c820
Auto merge of #15431 - alibektas:deunwrap/extract_function, r=Veykril
bors Sep 11, 2023
cd0a89a
fix: field shorthand overwritten in promote local to const assist
rmehri01 Sep 11, 2023
affe5a7
fix: Temporarily skip decl check in derive expansions
Veykril Sep 12, 2023
15e1356
Auto merge of #15601 - Veykril:diag-derive, r=Veykril
bors Sep 12, 2023
712e67c
fix: Fix lens location "above_whole_item" breaking lenses
Veykril Sep 13, 2023
089ae47
Auto merge of #15606 - Veykril:annotation-above-item-fi, r=Veykril
bors Sep 13, 2023
a219dbd
Remove most of the duplication from `Semantics{,Impl}` via deref
WaffleLapkin Sep 13, 2023
47c51b7
Auto merge of #15609 - WaffleLapkin:undup_sema, r=Veykril
bors Sep 14, 2023
e63e323
Prefer stable paths over unstable ones in import path calculation
Veykril Sep 14, 2023
12e28c3
Auto merge of #15611 - Veykril:stability-import, r=Veykril
bors Sep 14, 2023
9d0ccf0
Auto merge of #15597 - rmehri01:fix_promote_local_field_shorthand, r=…
bors Sep 16, 2023
a77789e
regression test
jDomantas Sep 17, 2023
a0c31b7
don't skip the rest of the block after let-else
jDomantas Sep 17, 2023
b3aba94
use code from bug report for regression test
jDomantas Sep 17, 2023
a961068
add layout test
jDomantas Sep 17, 2023
0566644
Auto merge of #15625 - jDomantas:domantas/fix-15623, r=HKalbasi
bors Sep 17, 2023
d39b45a
Merge branch 'master' into sync-from-rust
lnicola Sep 18, 2023
258b15c
Auto merge of #15628 - lnicola:sync-from-rust, r=lnicola
bors Sep 18, 2023
b18db7a
Merge commit '258b15c506a2d3ad862fd17ae24eaf272443f477' into sync-fro…
lnicola Sep 18, 2023
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: 1 addition & 1 deletion src/tools/rust-analyzer/.cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ lint = "clippy --all-targets -- -Aclippy::collapsible_if -Aclippy::needless_pass
linker = "rust-lld"

[env]
CARGO_WORKSPACE_DIR = { value = "", relative = true }
CARGO_WORKSPACE_DIR = { value = "", relative = true }
8 changes: 8 additions & 0 deletions src/tools/rust-analyzer/.github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,20 @@ jobs:
- name: Test
run: cargo test ${{ env.USE_SYSROOT_ABI }} -- --nocapture --quiet

- name: Switch to stable toolchain
run: |
rustup update --no-self-update stable
rustup component add --toolchain stable rust-src
rustup default stable

- name: Run analysis-stats on rust-analyzer
if: matrix.os == 'ubuntu-latest'
run: target/${{ matrix.target }}/debug/rust-analyzer analysis-stats .

- name: Run analysis-stats on rust std library
if: matrix.os == 'ubuntu-latest'
env:
RUSTC_BOOTSTRAP: 1
run: target/${{ matrix.target }}/debug/rust-analyzer analysis-stats --with-deps $(rustc --print sysroot)/lib/rustlib/src/rust/library/std

# Weird targets to catch non-portable code
Expand Down
23 changes: 14 additions & 9 deletions src/tools/rust-analyzer/.github/workflows/metrics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
other_metrics:
strategy:
matrix:
names: [self, ripgrep, webrender, diesel]
names: [self, ripgrep-13.0.0, webrender-2022, diesel-1.4.8, hyper-0.14.18]
runs-on: ubuntu-latest
needs: [setup_cargo, build_metrics]

Expand All @@ -92,7 +92,7 @@ jobs:
key: ${{ runner.os }}-target-${{ github.sha }}

- name: Collect metrics
run: cargo xtask metrics ${{ matrix.names }}
run: cargo xtask metrics "${{ matrix.names }}"

- name: Upload metrics
uses: actions/upload-artifact@v3
Expand All @@ -118,25 +118,30 @@ jobs:
with:
name: self-${{ github.sha }}

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

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

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

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

- name: Combine json
run: |
git clone --depth 1 https://[email protected]/rust-analyzer/metrics.git
jq -s ".[0] * .[1] * .[2] * .[3] * .[4]" build.json self.json ripgrep.json webrender.json diesel.json -c >> metrics/metrics.json
jq -s ".[0] * .[1] * .[2] * .[3] * .[4] * .[5]" build.json self.json ripgrep-13.0.0.json webrender-2022.json diesel-1.4.8.json hyper-0.14.18.json -c >> metrics/metrics.json
cd metrics
git add .
git -c user.name=Bot -c [email protected] commit --message 📈
Expand Down
2 changes: 2 additions & 0 deletions src/tools/rust-analyzer/.github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ jobs:

- name: Run analysis-stats on rust std library
if: matrix.target == 'x86_64-unknown-linux-gnu'
env:
RUSTC_BOOTSTRAP: 1
run: target/${{ matrix.target }}/release/rust-analyzer analysis-stats --with-deps $(rustc --print sysroot)/lib/rustlib/src/rust/library/std

- name: Upload artifacts
Expand Down
114 changes: 54 additions & 60 deletions src/tools/rust-analyzer/Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -381,14 +381,14 @@ dependencies = [

[[package]]
name = "filetime"
version = "0.2.19"
version = "0.2.22"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4e884668cd0c7480504233e951174ddc3b382f7c2666e3b7310b5c4e7b0c37f9"
checksum = "d4029edd3e734da6fe05b6cd7bd2960760a616bd2ddd0d59a0124746d6272af0"
dependencies = [
"cfg-if",
"libc",
"redox_syscall",
"windows-sys 0.42.0",
"redox_syscall 0.3.5",
"windows-sys 0.48.0",
]

[[package]]
Expand Down Expand Up @@ -541,6 +541,7 @@ dependencies = [
"mbe",
"once_cell",
"profile",
"ra-ap-rustc_parse_format",
"rustc-hash",
"smallvec",
"stdx",
Expand Down Expand Up @@ -854,7 +855,6 @@ version = "0.0.0"
dependencies = [
"dashmap",
"hashbrown 0.12.3",
"once_cell",
"rustc-hash",
"triomphe",
]
Expand Down Expand Up @@ -999,7 +999,7 @@ checksum = "b06a4cde4c0f271a446782e3eff8de789548ce57dbc8eca9292c27f4a42004b4"

[[package]]
name = "lsp-server"
version = "0.7.3"
version = "0.7.4"
dependencies = [
"crossbeam-channel",
"log",
Expand All @@ -1010,9 +1010,9 @@ dependencies = [

[[package]]
name = "lsp-server"
version = "0.7.3"
version = "0.7.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "72417faa455bfb4e5bf14b157d8e2ca2ed74b4e89b8cf42ea2d864825ae5c8a2"
checksum = "b52dccdf3302eefab8c8a1273047f0a3c3dca4b527c8458d00c09484c8371928"
dependencies = [
"crossbeam-channel",
"log",
Expand Down Expand Up @@ -1149,20 +1149,21 @@ checksum = "2bf50223579dc7cdcfb3bfcacf7069ff68243f8c363f62ffa99cf000a6b9c451"

[[package]]
name = "notify"
version = "5.1.0"
version = "6.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "58ea850aa68a06e48fdb069c0ec44d0d64c8dbffa49bf3b6f7f0a901fdea1ba9"
checksum = "6205bd8bb1e454ad2e27422015fb5e4f2bcc7e08fa8f27058670d208324a4d2d"
dependencies = [
"bitflags 1.3.2",
"bitflags 2.3.2",
"crossbeam-channel",
"filetime",
"fsevent-sys",
"inotify",
"kqueue",
"libc",
"log",
"mio",
"walkdir",
"windows-sys 0.42.0",
"windows-sys 0.48.0",
]

[[package]]
Expand Down Expand Up @@ -1251,7 +1252,7 @@ dependencies = [
"cfg-if",
"instant",
"libc",
"redox_syscall",
"redox_syscall 0.2.16",
"smallvec",
"winapi",
]
Expand All @@ -1264,7 +1265,7 @@ checksum = "ba1ef8814b5c993410bb3adfad7a5ed269563e4a2f90c41f5d85be7fb47133bf"
dependencies = [
"cfg-if",
"libc",
"redox_syscall",
"redox_syscall 0.2.16",
"smallvec",
"windows-sys 0.42.0",
]
Expand Down Expand Up @@ -1481,16 +1482,36 @@ dependencies = [
"proc-macro2",
]

[[package]]
name = "ra-ap-rustc_index"
version = "0.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "07b5fa61d34da18e148dc3a81f654488ea07f40938d8aefb17f8b64bb78c6120"
dependencies = [
"arrayvec",
"smallvec",
]

[[package]]
name = "ra-ap-rustc_lexer"
version = "0.1.0"
version = "0.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e1c145702ed3f237918e512685185dc8a4d0edc3a5326c63d20361d8ba9b45b3"
checksum = "f2e2f6b48422e4eed5218277ab7cc9733e60dd8f3167f4f36a49a0cafe4dc195"
dependencies = [
"unic-emoji-char",
"unicode-properties",
"unicode-xid",
]

[[package]]
name = "ra-ap-rustc_parse_format"
version = "0.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c3c7369ad01cc79f9e3513c9f6a6326f6b980100e4862a7ac71b9991c88108bb"
dependencies = [
"ra-ap-rustc_index",
"ra-ap-rustc_lexer",
]

[[package]]
name = "rayon"
version = "1.7.0"
Expand Down Expand Up @@ -1522,6 +1543,15 @@ dependencies = [
"bitflags 1.3.2",
]

[[package]]
name = "redox_syscall"
version = "0.3.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "567664f262709473930a4bf9e51bf2ebf3348f2e748ccc50dea20646858f8f29"
dependencies = [
"bitflags 1.3.2",
]

[[package]]
name = "rowan"
version = "0.15.11"
Expand All @@ -1545,7 +1575,6 @@ dependencies = [
"crossbeam-channel",
"dissimilar",
"expect-test",
"filetime",
"flycheck",
"hir",
"hir-def",
Expand All @@ -1555,7 +1584,7 @@ dependencies = [
"ide-ssr",
"itertools",
"load-cargo",
"lsp-server 0.7.3 (registry+https://github.com/rust-lang/crates.io-index)",
"lsp-server 0.7.4 (registry+https://github.com/rust-lang/crates.io-index)",
"lsp-types",
"mbe",
"mimalloc",
Expand Down Expand Up @@ -2056,47 +2085,6 @@ version = "1.16.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a3e5df347f0bf3ec1d670aad6ca5c6a1859cd9ea61d2113125794654ccced68f"

[[package]]
name = "unic-char-property"
version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a8c57a407d9b6fa02b4795eb81c5b6652060a15a7903ea981f3d723e6c0be221"
dependencies = [
"unic-char-range",
]

[[package]]
name = "unic-char-range"
version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0398022d5f700414f6b899e10b8348231abf9173fa93144cbc1a43b9793c1fbc"

[[package]]
name = "unic-common"
version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "80d7ff825a6a654ee85a63e80f92f054f904f21e7d12da4e22f9834a4aaa35bc"

[[package]]
name = "unic-emoji-char"
version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0b07221e68897210270a38bde4babb655869637af0f69407f96053a34f76494d"
dependencies = [
"unic-char-property",
"unic-char-range",
"unic-ucd-version",
]

[[package]]
name = "unic-ucd-version"
version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "96bd2f2237fe450fcd0a1d2f5f4e91711124f7857ba2e964247776ebeeb7b0c4"
dependencies = [
"unic-common",
]

[[package]]
name = "unicase"
version = "2.6.0"
Expand Down Expand Up @@ -2127,6 +2115,12 @@ dependencies = [
"tinyvec",
]

[[package]]
name = "unicode-properties"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c7f91c8b21fbbaa18853c3d0801c78f4fc94cdb976699bb03e832e75f7fd22f0"

[[package]]
name = "unicode-segmentation"
version = "1.10.1"
Expand Down
12 changes: 8 additions & 4 deletions src/tools/rust-analyzer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ proc-macro-test = { path = "./crates/proc-macro-test" }
# In-tree crates that are published separately and follow semver. See lib/README.md
line-index = { version = "0.1.0-pre.1" }
la-arena = { version = "0.3.1" }
lsp-server = { version = "0.7.3" }
lsp-server = { version = "0.7.4" }

# non-local crates
smallvec = { version = "1.10.0", features = [
Expand All @@ -97,11 +97,15 @@ smallvec = { version = "1.10.0", features = [
smol_str = "0.2.0"
nohash-hasher = "0.2.0"
text-size = "1.1.0"
# See https://github.com/serde-rs/serde/issues/2538#issuecomment-1684517372 for why we pin serde
serde = { version = "1.0.156, < 1.0.172", features = ["derive"] }
serde = { version = "1.0.156", features = ["derive"] }
serde_json = "1.0.96"
triomphe = { version = "0.1.8", default-features = false, features = ["std"] }
# can't upgrade due to dashmap depending on 0.12.3 currently
hashbrown = { version = "0.12.3", features = ["inline-more"], default-features = false }

rustc_lexer = { version = "0.1.0", package = "ra-ap-rustc_lexer" }
rustc_lexer = { version = "0.10.0", package = "ra-ap-rustc_lexer" }
rustc_parse_format = { version = "0.10.0", package = "ra-ap-rustc_parse_format", default-features = false }

# Upstream broke this for us so we can't update it
rustc_abi = { version = "0.0.20221221", package = "hkalbasi-rustc-ap-rustc_abi", default-features = false }
rustc_index = { version = "0.0.20221221", package = "hkalbasi-rustc-ap-rustc_index", default-features = false }
10 changes: 5 additions & 5 deletions src/tools/rust-analyzer/crates/base-db/src/fixture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ impl ChangeFixture {
meta.edition,
Some(crate_name.clone().into()),
version,
meta.cfg,
Default::default(),
meta.cfg.clone(),
Some(meta.cfg),
meta.env,
false,
origin,
Expand All @@ -200,7 +200,7 @@ impl ChangeFixture {
} else if meta.path == "/main.rs" || meta.path == "/lib.rs" {
assert!(default_crate_root.is_none());
default_crate_root = Some(file_id);
default_cfg = meta.cfg;
default_cfg.extend(meta.cfg.into_iter());
default_env.extend(meta.env.iter().map(|(x, y)| (x.to_owned(), y.to_owned())));
default_target_data_layout = meta.target_data_layout;
}
Expand All @@ -220,8 +220,8 @@ impl ChangeFixture {
Edition::CURRENT,
Some(CrateName::new("test").unwrap().into()),
None,
default_cfg,
Default::default(),
default_cfg.clone(),
Some(default_cfg),
default_env,
false,
CrateOrigin::Local { repo: None, name: None },
Expand Down
Loading