diff options
author | Daniel Verkamp <dverkamp@chromium.org> | 2019-05-28 10:25:25 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-05-30 01:11:16 +0000 |
commit | d7738ec486fbc472e76529355f43eb8ee0e7e820 (patch) | |
tree | f1a7061ff10d53888f4989cace0e3aa58bff9835 /enumn/src/lib.rs | |
parent | 99c65d41f85290f693067391dfb5ded17a2bdc89 (diff) | |
download | crosvm-d7738ec486fbc472e76529355f43eb8ee0e7e820.tar crosvm-d7738ec486fbc472e76529355f43eb8ee0e7e820.tar.gz crosvm-d7738ec486fbc472e76529355f43eb8ee0e7e820.tar.bz2 crosvm-d7738ec486fbc472e76529355f43eb8ee0e7e820.tar.lz crosvm-d7738ec486fbc472e76529355f43eb8ee0e7e820.tar.xz crosvm-d7738ec486fbc472e76529355f43eb8ee0e7e820.tar.zst crosvm-d7738ec486fbc472e76529355f43eb8ee0e7e820.zip |
enumn: fix duplicate fn in doc tests
Two parts of the documentation mention the generated `fn n`, which (as of Rust 1.35) causes a doc test failure. Change these code blocks to be ignored instead of executed to avoid the problem. BUG=None TEST=cargo test --doc -p enumn Change-Id: I9d08d2a35d65930bd2fa899256c00e1da643ba4f Signed-off-by: Daniel Verkamp <dverkamp@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1632035 Reviewed-by: Zach Reizner <zachr@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com>
Diffstat (limited to 'enumn/src/lib.rs')
-rw-r--r-- | enumn/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/enumn/src/lib.rs b/enumn/src/lib.rs index 9f566e6..7a04303 100644 --- a/enumn/src/lib.rs +++ b/enumn/src/lib.rs @@ -51,7 +51,7 @@ //! attribute. If a `repr` is specified, the input to `n` will be required to be //! of that type. //! -//! ```rust +//! ```ignore //! use enumn::N; //! //! #[derive(N)] @@ -73,7 +73,7 @@ //! On the other hand if no `repr` is specified then we get a signature that is //! generic over a variety of possible types. //! -//! ```rust +//! ```ignore //! # enum E {} //! # //! impl E { |