Closed
Description
It looks like having proc-macro = true
in Cargo.toml
disables all doc-tests. However unit tests #[test]
work fine.
Steps to reproduce
-
cargo new foo
-
edit Cargo.toml
# ... the usual
[lib]
proc-macro = true
edit src/lib.rs
//! ```rust
//! fn main() { panic!() } /* <-- this test should fail */
//! ```
#![crate_type = "proc-macro"]
extern crate proc_macro;
#[proc_macro_derive(Foo)]
pub fn derive(_: proc_macro::TokenStream) -> proc_macro::TokenStream {
unimplemented!()
}
cargo test
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured
Metadata
Assignees
Labels
No labels