-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Actually fail CI for doc warnings #32
Conversation
Ok, this is weird. Setting
|
Oh, right, that's going to be the issue. Just installing the toolchain does not make it the default, so that job is instead using the GHA-pre-installed stable toolchain. |
With #33 this passes now. |
Alternatively, apply the further diff diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index 4538ca8..73340d0 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -9,6 +9,7 @@ on:
env:
RUSTFLAGS: -D warnings
+ RUSTDOCFLAGS: -D warnings
RUSTUP_MAX_RETRIES: 10
CARGO_NET_RETRY: 10
@@ -51,4 +52,4 @@ jobs:
override: true
- name: Rustdoc
- run: cargo rustdoc --all-features -- -D warnings
+ run: cargo doc --all-features |
@@ -7,6 +7,11 @@ on: | |||
- staging | |||
- trying | |||
|
|||
env: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wait, does this actually work? Docs don't say it does. Could you add a warning to rustc code to check this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
checked on ra, it does work 🎉
This should fail without a further PR to fix the broken intra doc link, if this is doing what it should do.