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
kentfredric opened this issue
Nov 22, 2019
· 4 comments
Labels
A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.C-bugCategory: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.
The text was updated successfully, but these errors were encountered:
jonas-schievink
added
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-bug
Category: This is a bug.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
labels
Nov 22, 2019
To add insult to injury, I've discovered this also happens for lints that are defaulted on, as demonstrated by byteorder 0.5.3
running 6 tests
test src/lib.rs - ByteOrder (line 114) ... FAILED
test src/lib.rs - ByteOrder (line 104) ... ok
test src/lib.rs - (line 15) ... ok
test src/lib.rs - (line 28) ... ok
test src/new.rs - new::ReadBytesExt (line 15) ... ok
test src/new.rs - new::WriteBytesExt (line 143) ... ok
failures:
---- src/lib.rs - ByteOrder (line 114) stdout ----
error: literal out of range for `i16`
--> src/lib.rs:118:33
|
7 | BigEndian::write_i16(&mut buf, -50_000);
| ^^^^^^
|
= note: `#[deny(overflowing_literals)]` on by default
error: literal out of range for `i16`
--> src/lib.rs:119:13
|
8 | assert_eq!(-50_000, BigEndian::read_i16(&buf));
| ^^^^^^
error: aborting due to 2 previous errors
Couldn't compile the test.
failures:
src/lib.rs - ByteOrder (line 114)
test result: FAILED. 5 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out
Nothing I can do to resolve this other than patching the source. ( this issue is fixed in newer byteorders, but due to some deep dependency chain, the old byteorder is still required, and so as a linux vendor, we desire tests to run, but this failure isn't a useful one )
A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.C-bugCategory: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.
As I mentioned in #66622 , there's a fun thing that happens:
--cap-lints warn
can be over-ridden, apparently by attributes in macros, when run under rustdoc, which pretty much defeats the points of--cap-lints
With
rand 0.5.6
:It seems that, this line, in
src/lib.rs
takes precedence over lint-capping :(#![doc(test(attr(allow(unused_variables), deny(warnings))))]
The text was updated successfully, but these errors were encountered: