]> git.lizzy.rs Git - rust.git/blobdiff - .github/workflows/rustdoc.yaml
Merge #11461
[rust.git] / .github / workflows / rustdoc.yaml
index cf4bca8403a21b8517461aa4f368c50820dbaf14..ac69adb947716455d3ff61e7d11ac396c3622acb 100644 (file)
@@ -7,11 +7,12 @@ on:
 env:
   CARGO_INCREMENTAL: 0
   CARGO_NET_RETRY: 10
-  RUSTFLAGS: -D warnings
+  RUSTFLAGS: "-D warnings -W unreachable-pub"
   RUSTUP_MAX_RETRIES: 10
 
 jobs:
   rustdoc:
+    if: github.repository == 'rust-analyzer/rust-analyzer'
     runs-on: ubuntu-latest
 
     steps: