Skip to content

Subtree update of rust-analyzer #122981

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 98 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
98 commits
Select commit Hold shift + click to select a range
9582885
Fix panic with impl trait associated types in where clause
Jesse-Bakker Mar 13, 2024
d472fd9
refactor: Rename CargoTask to RustTask in extension
Wilfred Mar 13, 2024
2e109c7
refactor: Use a single CLI args array rather than a separate subcomma…
Wilfred Mar 13, 2024
4422a90
refactor: Store the CLI command directly in RustTargetDefinition
Wilfred Mar 14, 2024
d2aba91
feat: Implement ATPIT
ShoyuVanilla Mar 15, 2024
fc53c59
fix: typo
ShoyuVanilla Mar 15, 2024
5a95a53
Merge commit '5ecace48f693afaa6adf8cb23086b651db3aec96' into sync-fro…
lnicola Mar 17, 2024
66adc1c
Emit `Const` modifier in syntax highlighting for const-like things
Veykril Mar 17, 2024
c8f6655
Don't emit modifiers depending on the symbol kind in lsp conversion l…
Veykril Mar 17, 2024
23fff55
Split SymbolKind::Function into Function and Method
Veykril Mar 17, 2024
640c8b7
Move custom async modifier to standard one
Veykril Mar 17, 2024
77607ab
More precise highlighting rules for constant modifier
Veykril Mar 17, 2024
20d521d
Adjust `benchmark_syntax_highlighting_parser` for changes
Veykril Mar 17, 2024
2a8edaa
remove redundant clone()s
matthiaskrgr Mar 17, 2024
b99618c
Bump dependencies
Nadrieril Mar 17, 2024
8d59aaf
Use in-tree rustc_pattern_analysis
Nadrieril Mar 17, 2024
405a626
Merge branch 'master' into sync-from-rust
lnicola Mar 17, 2024
3d39ddf
Auto merge of #16864 - lnicola:sync-from-rust, r=lnicola
bors Mar 17, 2024
c1122c9
Auto merge of #16862 - matthiaskrgr:noclone, r=Veykril
bors Mar 17, 2024
bb541c3
fix: Ignore some warnings if they originate from within macro expansions
Veykril Mar 17, 2024
b6d1887
Auto merge of #16861 - Veykril:macro-diag-exceptions, r=Veykril
bors Mar 17, 2024
109344c
fix: handle attributes when typing curly bracket
roife Mar 18, 2024
65c601f
Auto merge of #16863 - Nadrieril:update-pat-ana, r=Veykril
bors Mar 18, 2024
f07489a
Auto merge of #16868 - roife:fix-issue-16848, r=Veykril
bors Mar 18, 2024
4b679f9
Generate AST in a more stable manner
Veykril Mar 17, 2024
a71a032
Auto merge of #16830 - Jesse-Bakker:fix-ty-panic, r=ShoyuVanilla
bors Mar 18, 2024
f6e2895
Auto merge of #16839 - Wilfred:extension_refactor_for_shell, r=Veykril
bors Mar 18, 2024
3115fd8
Simplify inlay hints `needs_resolve`
Veykril Mar 12, 2024
4a93368
Use a hash to find the correct inlay hint when resolving
Veykril Mar 12, 2024
f40c7d8
Auto merge of #16822 - Veykril:inlays, r=Veykril
bors Mar 18, 2024
7c2bb75
Auto merge of #16860 - Veykril:macarons, r=Veykril
bors Mar 18, 2024
d034ab0
Apply reviewed suggestions
ShoyuVanilla Mar 18, 2024
76fb73a
Skip problematic cyclic dev-dependencies
Veykril Mar 18, 2024
d3eeadc
Auto merge of #16852 - ShoyuVanilla:atpit, r=Veykril
bors Mar 18, 2024
3cfcd4e
Abstract over the uses of `compute_match_usefulness`
Nadrieril Mar 17, 2024
e67adf4
Don't assume place validity when we don't know
Nadrieril Mar 17, 2024
040f37a
Avoid hanging on complex matches
Nadrieril Mar 17, 2024
59b9cc1
Auto merge of #16871 - Veykril:dev-dependency-cycles, r=Veykril
bors Mar 18, 2024
92300e8
Use `--workspace` and `--no-fail-fast` in test explorer
HKalbasi Mar 18, 2024
4de0204
Auto merge of #16880 - HKalbasi:test-explorer, r=HKalbasi
bors Mar 18, 2024
232125b
minor: Do progress reporting for crate-graph construction
Veykril Mar 19, 2024
c626db0
Auto merge of #16883 - Veykril:progress-report, r=Veykril
bors Mar 19, 2024
dc4e598
fix: Improve error recovery for match arms
Veykril Mar 19, 2024
b38d539
internal: Move grammar codegen into xtask
Veykril Mar 19, 2024
054ebf9
Auto merge of #16885 - Veykril:match-recovery, r=Veykril
bors Mar 19, 2024
1c2d7d0
Auto merge of #16884 - Veykril:grammar-codegen, r=Veykril
bors Mar 19, 2024
ba33959
internal: Delay drawing of workspace dev-dependency edges
Veykril Mar 19, 2024
b91697d
Auto merge of #16886 - Veykril:dev-deps-delay, r=Veykril
bors Mar 19, 2024
967a864
fix: Goto implementation to impls inside blocks
ShoyuVanilla Mar 11, 2024
e03df77
Auto merge of #16812 - ShoyuVanilla:issue-3739, r=Veykril
bors Mar 19, 2024
08a5f1e
Skip the test when testing locally
Nadrieril Mar 19, 2024
d6b0aae
chore: remove repetitive words
goodmost Mar 19, 2024
399dbc0
internal: Enforce utf8 paths
Veykril Mar 19, 2024
a2f73d3
Auto merge of #16879 - Nadrieril:fuel, r=Veykril
bors Mar 19, 2024
4e54b4b
Auto merge of #16889 - Veykril:utf8-path, r=Veykril
bors Mar 19, 2024
7b91d01
internal: Don't eagerly try to read crate root file contents before VFS
Veykril Mar 19, 2024
6fce1d7
Auto merge of #16892 - Veykril:crate-graph-non-eager, r=Veykril
bors Mar 19, 2024
c7f0201
fix: Fix project discovery not checking whether the `Cargo.toml` actu…
Veykril Mar 20, 2024
5e276ae
Auto merge of #16899 - Veykril:discover-fix, r=Veykril
bors Mar 20, 2024
dc2e0b3
Auto merge of #16891 - goodmost:master, r=lnicola
bors Mar 21, 2024
7918339
Bump rust-cache action
lnicola Mar 21, 2024
8d74705
Auto merge of #16904 - lnicola:bump-rust-cache, r=lnicola
bors Mar 21, 2024
255a8ae
Move Edition into span crate
Veykril Mar 19, 2024
7e88fa5
Remove span generics from most of the mbe crate
Veykril Mar 19, 2024
6d10719
Resolve whether $pat is $pat_param or not via 🌟hygiene🌟
Veykril Mar 19, 2024
928d847
Keep the span for Attr::Literal
Veykril Mar 21, 2024
0036762
Make use of `ThinArc` in `RawAttrs`
Veykril Mar 21, 2024
83f9cc6
Auto merge of #16895 - Veykril:spans, r=Veykril
bors Mar 21, 2024
15d183b
Initial Attempt limiting number of token tree in macro expansion.
wyatt-herkamp Mar 14, 2024
f499564
censor attribute derive
wyatt-herkamp Mar 14, 2024
4bd2f94
Formatting
wyatt-herkamp Mar 15, 2024
2c2bbe0
Treat Derive Macro specially.
wyatt-herkamp Mar 18, 2024
70f5344
macro_arg_considering_derives is now in ExpandDatabase and now takes …
wyatt-herkamp Mar 18, 2024
c376add
Cleanup
wyatt-herkamp Mar 21, 2024
20290b2
Auto merge of #16909 - Veykril:spans, r=Veykril
bors Mar 21, 2024
2ad14b8
fix: Fix projects depending on rustc_private hanging
Veykril Mar 21, 2024
a3d9625
Auto merge of #16911 - Veykril:rustc-crates, r=Veykril
bors Mar 21, 2024
262e06f
Remove MacroCallKind::DeriveAttr
wyatt-herkamp Mar 21, 2024
c381d0f
Review Updates
wyatt-herkamp Mar 21, 2024
16c8dee
Auto merge of #16835 - wyatt-herkamp:use_one_tt_for_a_derive, r=Veykril
bors Mar 21, 2024
cd8eb0f
internal: Remove span trait
Veykril Mar 21, 2024
4d442d8
Auto merge of #16912 - Veykril:span-trait, r=Veykril
bors Mar 21, 2024
23613a9
fix: Some file watching related vfs fixes
Veykril Mar 21, 2024
fe28e47
Use relative glob patterns in DidChangeWatchedFilesRegistrationOptions
Veykril Mar 21, 2024
7ef7f44
Auto merge of #16913 - Veykril:client-watched-files, r=Veykril
bors Mar 21, 2024
ea44706
fix: Don't assert paths being utf8 when filtering them in the watcher
Veykril Mar 22, 2024
5577612
Auto merge of #16918 - Veykril:utf8-paths, r=Veykril
bors Mar 22, 2024
0e8170e
fix: handle self::super in lowering of UseTree
roife Mar 22, 2024
fc0d51a
Auto merge of #16919 - roife:fix-issue-16800, r=Veykril
bors Mar 22, 2024
8e324e9
Rename ProcMacroKind::FuncLike to Bang
Veykril Mar 21, 2024
6f54ebb
Auto merge of #16905 - Veykril:sysroot-patch-cfg, r=Veykril
bors Mar 22, 2024
966d387
fix: Rename `func_like` to `FuncLike`
Sculas Mar 22, 2024
6e54d41
Auto merge of #16927 - Sculas:fix/funclike-rename, r=Veykril
bors Mar 23, 2024
6ee3f66
Build x86_64-unknown-linux-gnu on Rocky Linux 8
lnicola Mar 23, 2024
9031582
Auto merge of #16928 - lnicola:rocky-8, r=lnicola
bors Mar 23, 2024
869efe2
Bump actions/checkout, actions/setup-node and node in release workflow
lnicola Mar 23, 2024
e265e3d
Auto merge of #16929 - lnicola:bump-release-actions, r=lnicola
bors Mar 23, 2024
e71e0b6
Merge commit 'e265e3d5189513c42d037999d41a696369af9388' into sync-fro…
lnicola Mar 24, 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
4 changes: 2 additions & 2 deletions src/tools/rust-analyzer/.github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
run: echo "::add-matcher::.github/rust.json"

- name: Cache Dependencies
uses: Swatinem/rust-cache@988c164c3d0e93c4dbab36aaf5bbeb77425b2894
uses: Swatinem/rust-cache@640a22190e7a783d4c409684cea558f081f92012
with:
key: ${{ env.RUST_CHANNEL }}

Expand Down Expand Up @@ -140,7 +140,7 @@ jobs:
rustup target add ${{ env.targets }} ${{ env.targets_ide }}

- name: Cache Dependencies
uses: Swatinem/rust-cache@988c164c3d0e93c4dbab36aaf5bbeb77425b2894
uses: Swatinem/rust-cache@640a22190e7a783d4c409684cea558f081f92012

- name: Check
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,5 @@ jobs:
git config --global user.name "GitHub Action"
# Remove r-a crates from the workspaces so we don't auto-publish them as well
sed -i 's/ "crates\/\*"//' ./Cargo.toml
sed -i 's/ "xtask\/"//' ./Cargo.toml
cargo workspaces publish --yes --exact --from-git --no-git-commit --allow-dirty
17 changes: 13 additions & 4 deletions src/tools/rust-analyzer/.github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
- os: ubuntu-20.04
target: x86_64-unknown-linux-gnu
code-target: linux-x64
container: rockylinux:8
- os: ubuntu-20.04
target: aarch64-unknown-linux-gnu
code-target: linux-arm64
Expand All @@ -58,20 +59,28 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: ${{ env.FETCH_DEPTH }}

- name: Install toolchain dependencies
if: matrix.container == 'rockylinux:8'
shell: bash
run: |
dnf install -y gcc
curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused -fsSL "https://sh.rustup.rs" | sh -s -- --profile minimal --default-toolchain none -y
echo "${CARGO_HOME:-$HOME/.cargo}/bin" >> $GITHUB_PATH

- name: Install Rust toolchain
run: |
rustup update --no-self-update stable
rustup target add ${{ matrix.target }}
rustup component add rust-src

- name: Install Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 16
node-version: 18

- name: Update apt repositories
if: matrix.target == 'aarch64-unknown-linux-gnu' || matrix.target == 'arm-unknown-linux-gnueabihf'
Expand Down Expand Up @@ -181,7 +190,7 @@ jobs:
- name: Install Nodejs
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20

- run: echo "TAG=$(date --iso -u)" >> $GITHUB_ENV
if: github.ref == 'refs/heads/release'
Expand Down
43 changes: 26 additions & 17 deletions src/tools/rust-analyzer/Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,7 @@ dependencies = [
"rustc-hash",
"scoped-tls",
"smallvec",
"span",
"stdx",
"syntax",
"test-fixture",
Expand Down Expand Up @@ -637,6 +638,7 @@ dependencies = [
"pulldown-cmark",
"pulldown-cmark-to-cmark",
"smallvec",
"span",
"stdx",
"syntax",
"test-fixture",
Expand Down Expand Up @@ -732,6 +734,7 @@ dependencies = [
"ide-db",
"itertools",
"once_cell",
"paths",
"serde_json",
"stdx",
"syntax",
Expand Down Expand Up @@ -931,6 +934,7 @@ dependencies = [
"hir-expand",
"ide-db",
"itertools",
"paths",
"proc-macro-api",
"project-model",
"span",
Expand Down Expand Up @@ -1225,6 +1229,9 @@ checksum = "de3145af08024dea9fa9914f381a17b8fc6034dfb00f3a84013f7ff43f29ed4c"
[[package]]
name = "paths"
version = "0.0.0"
dependencies = [
"camino",
]

[[package]]
name = "percent-encoding"
Expand Down Expand Up @@ -1375,6 +1382,7 @@ dependencies = [
"semver",
"serde",
"serde_json",
"span",
"stdx",
"toolchain",
"tracing",
Expand Down Expand Up @@ -1432,9 +1440,9 @@ dependencies = [

[[package]]
name = "ra-ap-rustc_abi"
version = "0.42.0"
version = "0.44.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c2ae52e2d5b08762c9464b541345f519b8719d57b643b73632bade43ecece9dc"
checksum = "b8709df2a746f055316bc0c62bd30948695a25e734863bf6e1f9755403e010ab"
dependencies = [
"bitflags 2.4.2",
"ra-ap-rustc_index",
Expand All @@ -1443,9 +1451,9 @@ dependencies = [

[[package]]
name = "ra-ap-rustc_index"
version = "0.42.0"
version = "0.44.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bfd7e10c7853fe79443d46e1d2d8ab09fe99926118e59653fb8b480d5045f126"
checksum = "9ad68bacffb87dcdbb23a3ce11261375078aaa06b85d348c49f39ffd5510dc20"
dependencies = [
"arrayvec",
"ra-ap-rustc_index_macros",
Expand All @@ -1454,9 +1462,9 @@ dependencies = [

[[package]]
name = "ra-ap-rustc_index_macros"
version = "0.42.0"
version = "0.44.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "47f1d1c589be6c9a9e852fadee0e60329c0f862e87442ac2fe5adae30663cc76"
checksum = "8782aaf3a113837c533dfb1c45df91cd17e1fdd1d2f9a20c2e0d1976025c4f1f"
dependencies = [
"proc-macro2",
"quote",
Expand All @@ -1466,29 +1474,29 @@ dependencies = [

[[package]]
name = "ra-ap-rustc_lexer"
version = "0.42.0"
version = "0.44.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fa852373a757b4c723bbdc96ced7f575cad68a1e266e45fee12bc4c69a482d80"
checksum = "aab683fc8579d09eb72033bd5dc9ba6d701aa9645b5fed087ef19af71184dff3"
dependencies = [
"unicode-properties",
"unicode-xid",
]

[[package]]
name = "ra-ap-rustc_parse_format"
version = "0.42.0"
version = "0.44.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2afe3c49accd95a53ac4d72ae13bafc7d115bdd80c8cd56ab09e6fc68f482210"
checksum = "0bcf9ff5edbf784b67b8ad5e03a068f1300fcc24062c0d476b3018965135d933"
dependencies = [
"ra-ap-rustc_index",
"ra-ap-rustc_lexer",
]

[[package]]
name = "ra-ap-rustc_pattern_analysis"
version = "0.42.0"
version = "0.44.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1253da23515d80c377a3998731e0ec3794997b62b989fd47db73efbde6a0bd7c"
checksum = "d63d1e1d5b2a13273cee1a10011147418f40e12b70f70578ce1dee0f1cafc334"
dependencies = [
"ra-ap-rustc_index",
"rustc-hash",
Expand Down Expand Up @@ -1598,6 +1606,7 @@ dependencies = [
"oorandom",
"parking_lot",
"parser",
"paths",
"proc-macro-api",
"profile",
"project-model",
Expand Down Expand Up @@ -1869,20 +1878,16 @@ dependencies = [
"itertools",
"once_cell",
"parser",
"proc-macro2",
"quote",
"ra-ap-rustc_lexer",
"rayon",
"rowan",
"rustc-hash",
"smol_str",
"sourcegen",
"stdx",
"test-utils",
"text-edit",
"tracing",
"triomphe",
"ungrammar",
]

[[package]]
Expand Down Expand Up @@ -2024,6 +2029,7 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"
name = "toolchain"
version = "0.0.0"
dependencies = [
"camino",
"home",
]

Expand Down Expand Up @@ -2109,7 +2115,6 @@ name = "tt"
version = "0.0.0"
dependencies = [
"smol_str",
"span",
"stdx",
"text-size",
]
Expand Down Expand Up @@ -2438,8 +2443,12 @@ version = "0.1.0"
dependencies = [
"anyhow",
"flate2",
"itertools",
"proc-macro2",
"quote",
"stdx",
"time",
"ungrammar",
"write-json",
"xflags",
"xshell",
Expand Down
11 changes: 6 additions & 5 deletions src/tools/rust-analyzer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ tt = { path = "./crates/tt", version = "0.0.0" }
vfs-notify = { path = "./crates/vfs-notify", version = "0.0.0" }
vfs = { path = "./crates/vfs", version = "0.0.0" }

ra-ap-rustc_lexer = { version = "0.42.0", default-features = false }
ra-ap-rustc_parse_format = { version = "0.42.0", default-features = false }
ra-ap-rustc_index = { version = "0.42.0", default-features = false }
ra-ap-rustc_abi = { version = "0.42.0", default-features = false }
ra-ap-rustc_pattern_analysis = { version = "0.42.0", default-features = false }
ra-ap-rustc_lexer = { version = "0.44.0", default-features = false }
ra-ap-rustc_parse_format = { version = "0.44.0", default-features = false }
ra-ap-rustc_index = { version = "0.44.0", default-features = false }
ra-ap-rustc_abi = { version = "0.44.0", default-features = false }
ra-ap-rustc_pattern_analysis = { version = "0.44.0", default-features = false }

# local crates that aren't published to crates.io. These should not have versions.
sourcegen = { path = "./crates/sourcegen" }
Expand All @@ -105,6 +105,7 @@ anyhow = "1.0.75"
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 }
Expand Down
Loading