Use --cfg when running doctests#30372
Conversation
|
(rust_highfive has picked a reviewer for you, use r? to override) |
|
Thanks! Could the test actually be added to |
Previously passed --cfg was used only when collecting doctests.
|
Test moved. Thanks for reviewing! |
|
@bors r=alexcrichton |
|
📌 Commit eb25721 has been approved by |
The hidden "mod test" layout of the first example has been broken for a while, but it wasn't noticed because rustdoc wasn't passing any features at all. That was fixed in rust-lang/rust#30372, and now we need to get our ducks in a row too.
The RSA doctest had to be disabled temporarily until rust-lang/rust#30372 makes it to the stable Rust channel (Rust 1.8). Some of the tests and the test framework in |ring::file_test| are still using the heap. This will be fixed separately.
|
Could this change be backported to 1.7 and 1.6? This seems like a small change that would be low risk for backporting. I am working on adding Thanks. |
|
I'm not sure we should be back porting things this close to the release. I'm on the super conservative side on this though. On Jan 8, 2016, 16:15 -0500, Brian Smithnotifications@github.com, wrote:
|
|
Adding |
|
Accepted for a backport |
The hidden "mod test" layout of the first example has been broken for a while, but it wasn't noticed because rustdoc wasn't passing any features at all. That was fixed in rust-lang/rust#30372, and now we need to get our ducks in a row too.
Fix #30252.