about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorLukas Wirth <lukastw97@gmail.com>2025-03-25 06:42:40 +0000
committerGitHub <noreply@github.com>2025-03-25 06:42:40 +0000
commitef44eaee063f15c48844d283163cd4ad933e409e (patch)
treea45e623935c89374460068622094748352cbe291 /src
parent83a97bbdbf9f8a086ad468cf184c785ece165324 (diff)
parentf9307c137041e275dcdc002a8e0ba58673942adc (diff)
downloadrust-ef44eaee063f15c48844d283163cd4ad933e409e.tar.gz
rust-ef44eaee063f15c48844d283163cd4ad933e409e.zip
Merge pull request #19446 from Veykril/push-olslsvoxlxwk
ci: run `intern` tests via `cargo miri`
Diffstat (limited to 'src')
-rw-r--r--src/tools/rust-analyzer/.github/workflows/ci.yaml22
-rw-r--r--src/tools/rust-analyzer/crates/intern/Cargo.toml1
2 files changed, 21 insertions, 2 deletions
diff --git a/src/tools/rust-analyzer/.github/workflows/ci.yaml b/src/tools/rust-analyzer/.github/workflows/ci.yaml
index 645b596f97f..07ff5aacec1 100644
--- a/src/tools/rust-analyzer/.github/workflows/ci.yaml
+++ b/src/tools/rust-analyzer/.github/workflows/ci.yaml
@@ -143,7 +143,7 @@ jobs:
         run: target/${{ matrix.target }}/debug/rust-analyzer analysis-stats --with-deps --no-sysroot --no-test $(rustc --print sysroot)/lib/rustlib/src/rust/library/
 
       - name: clippy
-        if: matrix.os == 'windows-latest'
+        if: matrix.os == 'macos-latest'
         run: cargo clippy --all-targets -- -D clippy::disallowed_macros -D clippy::dbg_macro -D clippy::todo -D clippy::print_stdout -D clippy::print_stderr
 
       - name: rustfmt
@@ -151,6 +151,26 @@ jobs:
         run: cargo fmt -- --check
 
   # Weird targets to catch non-portable code
+  miri:
+    if: github.repository == 'rust-lang/rust-analyzer'
+    name: miri
+    runs-on: ubuntu-latest
+
+    steps:
+      - name: Checkout repository
+        uses: actions/checkout@v4
+
+      - name: Install Rust toolchain
+        run: |
+          rustup update --no-self-update nightly
+          rustup component add miri --toolchain nightly
+
+      - name: Cache Dependencies
+        uses: Swatinem/rust-cache@9bdad043e88c75890e36ad3bbc8d27f0090dd609
+
+      - run: cargo +nightly miri test --locked
+
+  # Weird targets to catch non-portable code
   rust-cross:
     if: github.repository == 'rust-lang/rust-analyzer'
     name: Rust Cross
diff --git a/src/tools/rust-analyzer/crates/intern/Cargo.toml b/src/tools/rust-analyzer/crates/intern/Cargo.toml
index 397eba09296..9ff656cb744 100644
--- a/src/tools/rust-analyzer/crates/intern/Cargo.toml
+++ b/src/tools/rust-analyzer/crates/intern/Cargo.toml
@@ -13,7 +13,6 @@ rust-version.workspace = true
 
 
 [dependencies]
-# We need to freeze the version of the crate, as the raw-api feature is considered unstable
 dashmap.workspace = true
 hashbrown.workspace = true
 rustc-hash.workspace = true