Skip to content

Commit 7d2a95b

Browse files
committed
Auto merge of rust-lang#125272 - lnicola:sync-from-ra, r=lnicola
Subtree update of `rust-analyzer` r? `@ghost`
2 parents 84b9b6d + 0f4d94a commit 7d2a95b

File tree

205 files changed

+5502
-2897
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

205 files changed

+5502
-2897
lines changed

src/tools/rust-analyzer/.git-blame-ignore-revs

+7
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,10 @@
66

77
# prettier format
88
f247090558c9ba3c551566eae5882b7ca865225f
9+
10+
# subtree syncs
11+
932d85b52946d917deab2c23ead552f7f713b828
12+
3e358a6827d83e8d6473913a5e304734aadfed04
13+
9d2cb42a413e51deb50b36794a2e1605381878fc
14+
f532576ac53ddcc666bc8d59e0b6437065e2f599
15+
c48062fe2ab9a2d913d1985a6b0aec4bf936bfc1

src/tools/rust-analyzer/.github/workflows/ci.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ jobs:
6363
- name: Install Rust toolchain
6464
run: |
6565
rustup update --no-self-update ${{ env.RUST_CHANNEL }}
66-
rustup component add --toolchain ${{ env.RUST_CHANNEL }} rustfmt rust-src
6766
rustup default ${{ env.RUST_CHANNEL }}
67+
rustup component add --toolchain ${{ env.RUST_CHANNEL }} rustfmt rust-src
6868
# https://github.com/actions-rust-lang/setup-rust-toolchain/blob/main/rust.json
6969
- name: Install Rust Problem Matcher
7070
if: matrix.os == 'ubuntu-latest'
7171
run: echo "::add-matcher::.github/rust.json"
7272

7373
- name: Cache Dependencies
74-
uses: Swatinem/rust-cache@640a22190e7a783d4c409684cea558f081f92012
74+
uses: Swatinem/rust-cache@9bdad043e88c75890e36ad3bbc8d27f0090dd609
7575
with:
7676
key: ${{ env.RUST_CHANNEL }}
7777

@@ -140,7 +140,7 @@ jobs:
140140
rustup target add ${{ env.targets }} ${{ env.targets_ide }}
141141
142142
- name: Cache Dependencies
143-
uses: Swatinem/rust-cache@640a22190e7a783d4c409684cea558f081f92012
143+
uses: Swatinem/rust-cache@9bdad043e88c75890e36ad3bbc8d27f0090dd609
144144

145145
- name: Check
146146
run: |

src/tools/rust-analyzer/.github/workflows/metrics.yaml

+11-28
Original file line numberDiff line numberDiff line change
@@ -11,34 +11,21 @@ env:
1111
RUSTUP_MAX_RETRIES: 10
1212

1313
jobs:
14-
setup_cargo:
14+
build_metrics:
1515
if: github.repository == 'rust-lang/rust-analyzer'
1616
runs-on: ubuntu-latest
17+
1718
steps:
1819
- name: Install Rust toolchain
1920
run: |
2021
rustup update --no-self-update stable
21-
rustup component add rustfmt rust-src
2222
rustup default stable
23-
- name: Cache cargo
24-
uses: actions/cache@v4
25-
with:
26-
path: |
27-
~/.cargo/bin/
28-
~/.cargo/registry/index/
29-
~/.cargo/registry/cache/
30-
~/.cargo/git/db/
31-
key: ${{ runner.os }}-cargo-${{ github.sha }}
23+
rustup component add --toolchain stable rust-src
3224
33-
build_metrics:
34-
runs-on: ubuntu-latest
35-
needs: setup_cargo
36-
37-
steps:
3825
- name: Checkout repository
3926
uses: actions/checkout@v4
4027

41-
- name: Restore cargo cache
28+
- name: Cache cargo
4229
uses: actions/cache@v4
4330
with:
4431
path: |
@@ -69,22 +56,18 @@ jobs:
6956
matrix:
7057
names: [self, ripgrep-13.0.0, webrender-2022, diesel-1.4.8, hyper-0.14.18]
7158
runs-on: ubuntu-latest
72-
needs: [setup_cargo, build_metrics]
59+
needs: build_metrics
7360

7461
steps:
62+
- name: Install Rust toolchain
63+
run: |
64+
rustup update --no-self-update stable
65+
rustup default stable
66+
rustup component add --toolchain stable rust-src
67+
7568
- name: Checkout repository
7669
uses: actions/checkout@v4
7770

78-
- name: Restore cargo cache
79-
uses: actions/cache@v4
80-
with:
81-
path: |
82-
~/.cargo/bin/
83-
~/.cargo/registry/index/
84-
~/.cargo/registry/cache/
85-
~/.cargo/git/db/
86-
key: ${{ runner.os }}-cargo-${{ github.sha }}
87-
8871
- name: Restore target cache
8972
uses: actions/cache@v4
9073
with:

src/tools/rust-analyzer/.github/workflows/rustdoc.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
run: cargo doc --all --no-deps
2727

2828
- name: Deploy Docs
29-
uses: peaceiris/actions-gh-pages@364c31d33bb99327c77b3a5438a83a357a6729ad # v3.4.0
29+
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
3030
with:
3131
github_token: ${{ secrets.GITHUB_TOKEN }}
3232
publish_branch: gh-pages

0 commit comments

Comments
 (0)