summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.travis.yml2
-rw-r--r--libbindgen/Cargo.toml2
-rw-r--r--libbindgen/src/lib.rs4
3 files changed, 4 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml
index 5882493b..8d7047aa 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -31,7 +31,7 @@ script:
- git add -A
- git diff @
- git diff-index --quiet HEAD
- - cargo build --features "$BINDGEN_FEATURES _docs"
+ - cargo build --features "$BINDGEN_FEATURES docs_"
- cd tests/expectations
- cargo test
- cd ../../../bindgen
diff --git a/libbindgen/Cargo.toml b/libbindgen/Cargo.toml
index bc3137db..dceb17f0 100644
--- a/libbindgen/Cargo.toml
+++ b/libbindgen/Cargo.toml
@@ -59,4 +59,4 @@ llvm_stable = []
logging = ["env_logger", "log"]
static = []
# This feature only exists for CI -- don't use it!
-_docs = []
+docs_ = []
diff --git a/libbindgen/src/lib.rs b/libbindgen/src/lib.rs
index b2d3593c..6ed5cd4b 100644
--- a/libbindgen/src/lib.rs
+++ b/libbindgen/src/lib.rs
@@ -40,7 +40,7 @@ extern crate log;
mod log_stubs;
// A macro to declare an internal module for which we *must* provide
-// documentation for. If we are building with the "_docs" feature, then the
+// documentation for. If we are building with the "docs_" feature, then the
// module is declared public, and our `#![deny(missing_docs)]` pragma applies to
// it. This feature is used in CI, so we won't let anything slip by
// undocumented. Normal builds, however, will leave the module private, so that
@@ -48,7 +48,7 @@ mod log_stubs;
macro_rules! doc_mod {
($m:ident, $doc_mod_name:ident) => {
cfg_if! {
- if #[cfg(feature = "_docs")] {
+ if #[cfg(feature = "docs_")] {
pub mod $doc_mod_name {
//! Autogenerated documentation module.
pub use super::$m::*;