#![cfg(platform)]
causes rustc to ignore #![allow(...)]
directives
#78237
Labels
A-attributes
Area: #[attributes(..)]
A-lint
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
And ran
RUSTFLAGS="-D missing_docs" cargo check
.I expected to see this happen:
On all platforms, the missing docs on
a_function
to be allowed.Instead, this happened:
On Windows it worked as expected and on other platforms (Linux, macOS):
Meta
rustc --version --verbose
:Also tested:
The text was updated successfully, but these errors were encountered: