Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to '.github/workflows/ci.yaml')
-rw-r--r--.github/workflows/ci.yaml12
1 files changed, 7 insertions, 5 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index e3384c976b..1a0deee564 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -16,6 +16,7 @@ env:
CI: 1
RUST_BACKTRACE: short
RUSTUP_MAX_RETRIES: 10
+ RUSTFLAGS: "-D warnings -W unreachable-pub --cfg no_salsa_async_drops"
defaults:
run:
@@ -41,8 +42,6 @@ jobs:
if: github.repository == 'rust-lang/rust-analyzer'
name: proc-macro-srv
runs-on: ubuntu-latest
- env:
- RUSTFLAGS: "-D warnings"
steps:
- name: Checkout repository
@@ -80,7 +79,6 @@ jobs:
name: Rust
runs-on: ${{ matrix.os }}
env:
- RUSTFLAGS: "-Dwarnings"
CC: deny_c
strategy:
@@ -124,6 +122,12 @@ jobs:
- name: Run tests
run: cargo nextest run --no-fail-fast --hide-progress-bar --status-level fail
+ - name: Install cargo-machete
+ uses: taiki-e/install-action@cargo-machete
+
+ - name: Run cargo-machete
+ run: cargo machete
+
- name: Run Clippy
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
@@ -207,8 +211,6 @@ jobs:
# crate should
- target: wasm32-unknown-unknown
ide-only: true
- env:
- RUSTFLAGS: "-Dwarnings"
steps:
- name: Checkout repository