Skip to content

Commit 7fa32dc

Browse files
committed
Only give an error when docs.rs feature is set
This allows distinguishing between 'any doc run' and 'doc run that uses docs.rs features'
1 parent 821c9a1 commit 7fa32dc

File tree

1 file changed

+1
-1
lines changed
  • local-crates/docs-rs-features/src

1 file changed

+1
-1
lines changed

local-crates/docs-rs-features/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[cfg(any(doc, feature = "docs_rs_feature"))]
1+
#[cfg(feature = "docs_rs_feature")]
22
compile_error!("oh no, a hidden regression!");
33

44
fn main() {

0 commit comments

Comments
 (0)