rust-itertools / itertools

Extra iterator adaptors, iterator methods, free functions, and macros.
https://docs.rs/itertools/
Apache License 2.0
2.72k stars 309 forks source link

Fix ignored doctests #753

Closed Philippe-Cholet closed 1 year ago

Philippe-Cholet commented 1 year ago
Doctest attribute What it means
text Not code.
ignore It is ignored by default but might run, e.g. cargo test -- --ignored.
should_panic It must compile but panic at runtime.
no_run It must compile but is not run.
compile_fail It must not compile.
edition2018 Only runs on the given edition.

Personally, I annotate with "ignore" when it's slow and I don't want to run it every time. Otherwise, I think another attribute should be used.