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
Allow doc tests to run on proc macro crates
Fixes#3545
Since `--test` works for rustc, doctests should also work. Currently cargo isn't setup to run doctests for proc macro crates, this PR adds them to the list.
Currently rustdoc can run doctests for proc-macro crates, but the `phase_2_configure_and_expand` call` triggers the following warning:
```
the `#[proc_macro_derive]` attribute is only usable with crates of the `proc-macro` crate type
```
So perhaps this PR should wait until I've finished creating/testing the PR for rustc.
It looks like having
proc-macro = true
inCargo.toml
disables all doc-tests. However unit tests#[test]
work fine.Steps to reproduce
cargo new foo
edit Cargo.toml
edit src/lib.rs
cargo test
The text was updated successfully, but these errors were encountered: