about summary refs log tree commit diff
path: root/src/tools/rust-analyzer/.github/workflows
diff options
context:
space:
mode:
authorjyn <github@jyn.dev>2025-02-09 14:12:00 -0500
committerjyn <github@jyn.dev>2025-02-09 15:23:53 -0500
commit9bd9bcf4964ee3eeed2bbb99567619c8fb3d70d6 (patch)
treee0c51060883c6c01d4a5017abab54d34ac4641fe /src/tools/rust-analyzer/.github/workflows
parentd4f7c7668fece15523ae6f38e437cad01ee5ded6 (diff)
downloadrust-9bd9bcf4964ee3eeed2bbb99567619c8fb3d70d6.tar.gz
rust-9bd9bcf4964ee3eeed2bbb99567619c8fb3d70d6.zip
fix off-by-one error
Diffstat (limited to 'src/tools/rust-analyzer/.github/workflows')
-rw-r--r--src/tools/rust-analyzer/.github/workflows/ci.yaml6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tools/rust-analyzer/.github/workflows/ci.yaml b/src/tools/rust-analyzer/.github/workflows/ci.yaml
index ec33009239c..81b55712d7f 100644
--- a/src/tools/rust-analyzer/.github/workflows/ci.yaml
+++ b/src/tools/rust-analyzer/.github/workflows/ci.yaml
@@ -64,7 +64,11 @@ jobs:
         run: |
           rustup update --no-self-update ${{ env.RUST_CHANNEL }}
           rustup default ${{ env.RUST_CHANNEL }}
-          rustup component add --toolchain ${{ env.RUST_CHANNEL }} rustfmt rust-src
+          rustup component add --toolchain ${{ env.RUST_CHANNEL }} rust-src
+          # We always use a nightly rustfmt, regardless of channel, because we need
+          # --file-lines.
+          rustup toolchain add nightly --profile minimal
+          rustup component add --toolchain nightly rustfmt
       # https://github.com/actions-rust-lang/setup-rust-toolchain/blob/main/rust.json
       - name: Install Rust Problem Matcher
         if: matrix.os == 'ubuntu-latest'