This is an automated email from the ASF dual-hosted git repository.

github-merge-queue[bot] pushed a commit to branch 
gh-readonly-queue/main/pr-3389-693339072b87eebf075479393a8ef55182f27aca
in repository https://gitbox.apache.org/repos/asf/iceberg-rust.git

commit d6720efb2b749b6722169ea6aa0f654bb699eee3
Author: Yuang Gao <[email protected]>
AuthorDate: Mon Oct 12 11:45:22 2026 +0000

    ci: fail on rustdoc warnings (#3389)
---
 .github/workflows/ci.yml | 3 +++
 Makefile                 | 5 ++++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 9369a91e8..58ec189db 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -122,6 +122,9 @@ jobs:
       - name: Cargo clippy
         run: make check-clippy
 
+      - name: Cargo doc
+        run: make check-doc
+
   build:
     needs: lint
     runs-on: ${{ matrix.os }}
diff --git a/Makefile b/Makefile
index c596fc4bf..9da47d186 100644
--- a/Makefile
+++ b/Makefile
@@ -26,6 +26,9 @@ check-fmt:
 check-clippy:
        cargo clippy --all-targets --all-features --workspace -- -D warnings
 
+check-doc:
+       RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --all-features 
--workspace
+
 # Keep version in sync with the CI lint install step in 
.github/workflows/ci.yml.
 install-cargo-machete:
        cargo install --locked [email protected]
@@ -96,7 +99,7 @@ install-cargo-deny:
 check-dependency-licenses: install-cargo-deny
        python3 ./dev/release/licenses.py dependencies check
 
-check: check-fmt check-clippy check-toml cargo-machete check-license-notice 
check-dependency-licenses
+check: check-fmt check-clippy check-doc check-toml cargo-machete 
check-license-notice check-dependency-licenses
 
 doc-test:
        cargo test --no-fail-fast --doc --all-features --workspace

Reply via email to