I've used conditional compilation to change the type signature of a function, and now the same doctest can't be run for both "feature" modes, so I need a way to opt-out of the doctests. I've tried merging #[cfg_attr(feature = "rss_loose", ignore)] used in normal tests and ///rust,ignore to make ///rust,cfg_attr(feature = "rss_loose", ignore) but this doesn't seem to work. Just write two different sets of documentation and tests and it will all work as-is: /// ``` /// assert_eq!(42, dt::foo()); /// ``` #[cfg(not(feature = "alternate"))] pub fn foo() -> u8 { 42 } /// ``` /// assert_eq!(true, dt: