-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Doc tests #19237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doc tests #19237
Conversation
If we decide this is worth it, we should remove |
110ecf9
to
d377aef
Compare
CI failure is #19214, given the proc-macro library changes CI runs nightly which hits that now |
d377aef
to
b345deb
Compare
You can rebase on top of master now. |
b345deb
to
b19ef6b
Compare
The paths doc test fails on windows because |
cargo test
does not test code snippets in documentation because of howCargo.toml
is configured, so this ensures that documentation is written correctly. If this is detrimental, feel free to close this. I do think it would be a good enhancement, though. rustdoc expects code snippets to work unless told otherwise. Also note how many syntax errors were caught, such asfn main {
or($x:expr + $y:expr)
.