Skip to content

Commit 4d1fd47

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 893487a commit 4d1fd47

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)