Skip to content

Commit

Permalink
Only give an error when docs.rs feature is set
Browse files Browse the repository at this point in the history
This allows distinguishing between 'any doc run' and 'doc run that uses
docs.rs features'
  • Loading branch information
jyn514 committed Oct 29, 2020
1 parent 821c9a1 commit 7fa32dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion local-crates/docs-rs-features/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#[cfg(any(doc, feature = "docs_rs_feature"))]
#[cfg(feature = "docs_rs_feature")]
compile_error!("oh no, a hidden regression!");

fn main() {
Expand Down

0 comments on commit 7fa32dc

Please sign in to comment.