You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can inject attributes into all doctests which can allow denying warnings, either outright (not recommended for the same reason as #![deny(warnings)] isn't)
#![doc(test(attr(deny(warnings))))]
or only in CI
#![cfg_attr(ci, doc(test(attr(deny(warnings))))]
with a runner running
> RUSTDOCFLAGS='--cfg ci' cargo test --doc
(with the same downsides of failing on new compilers like using RUSTFLAGS='-Dwarnings' cargo check).
The text was updated successfully, but these errors were encountered:
You can inject attributes into all doctests which can allow denying warnings, either outright (not recommended for the same reason as
#![deny(warnings)]
isn't)#![doc(test(attr(deny(warnings))))]
or only in CI
#![cfg_attr(ci, doc(test(attr(deny(warnings))))]
with a runner running
> RUSTDOCFLAGS='--cfg ci' cargo test --doc
(with the same downsides of failing on new compilers like using
RUSTFLAGS='-Dwarnings' cargo check
).The text was updated successfully, but these errors were encountered: