flags 0.1.5

A macro to generate structures which behave like bitflags.
Documentation
Build #328018 2020-12-22 18:08:08

# rustc version rustc 1.50.0-nightly (11c94a197 2020-12-21)

# docs.rs version docsrs 0.6.0 (67080e8 2020-12-22)

# build log [INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace/builds/flags-0.1.5/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace/builds/flags-0.1.5/source:/opt/rustwide/workdir:ro,Z" "-v" "/home/cratesfyi/workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/home/cratesfyi/workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "DOCS_RS=1" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "3221225472" "--cpus" "2" "--user" "1001:1001" "--network" "none" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--features" "example_generated" "-Zunstable-options" "--config=doc.extern-map.registries.crates-io=\"https://docs.rs\"" "-j2" "--" "-Z" "unstable-options" "--resource-suffix" "-20201221-1.50.0-nightly-11c94a197" "--static-root-path" "/" "--cap-lints" "warn" "--disable-per-crate-search", kill_on_drop: false }` [INFO] [stdout] c1f6109d2f6a2a948c18f7859f9e102a9ec9bad12082f5af47b1a8ae9787b79b [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "c1f6109d2f6a2a948c18f7859f9e102a9ec9bad12082f5af47b1a8ae9787b79b", kill_on_drop: false }` [INFO] [stderr] /opt/crates-build-env/entrypoint.sh: line 7: /etc/hosts: Permission denied [INFO] [stderr] Documenting flags v0.1.5 (/opt/rustwide/workdir) [INFO] [stderr] warning: `#[inline]` is ignored on constants [INFO] [stderr] --> src/lib.rs:493:25 [INFO] [stderr] | [INFO] [stderr] 493 | #[inline] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] ::: src/example_generated.rs:4:1 [INFO] [stderr] | [INFO] [stderr] 4 | / bitflags! { [INFO] [stderr] 5 | | /// This is the same `Flags` struct defined in the [crate level example](../index.html#example). [INFO] [stderr] 6 | | /// Note that this struct is just for documentation purposes only, it must not be used outside [INFO] [stderr] 7 | | /// this crate. [INFO] [stderr] ... | [INFO] [stderr] 13 | | } [INFO] [stderr] 14 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_attributes)]` on by default [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: see issue #65833 <https://github.com/rust-lang/rust/issues/65833> for more information [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `#[inline]` is ignored on constants [INFO] [stderr] --> src/lib.rs:493:25 [INFO] [stderr] | [INFO] [stderr] 493 | #[inline] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] ::: src/example_generated.rs:4:1 [INFO] [stderr] | [INFO] [stderr] 4 | / bitflags! { [INFO] [stderr] 5 | | /// This is the same `Flags` struct defined in the [crate level example](../index.html#example). [INFO] [stderr] 6 | | /// Note that this struct is just for documentation purposes only, it must not be used outside [INFO] [stderr] 7 | | /// this crate. [INFO] [stderr] ... | [INFO] [stderr] 13 | | } [INFO] [stderr] 14 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: see issue #65833 <https://github.com/rust-lang/rust/issues/65833> for more information [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `#[inline]` is ignored on constants [INFO] [stderr] --> src/lib.rs:774:11 [INFO] [stderr] | [INFO] [stderr] 774 | $(#[$filtered])* [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] ::: src/example_generated.rs:4:1 [INFO] [stderr] | [INFO] [stderr] 4 | / bitflags! { [INFO] [stderr] 5 | | /// This is the same `Flags` struct defined in the [crate level example](../index.html#example). [INFO] [stderr] 6 | | /// Note that this struct is just for documentation purposes only, it must not be used outside [INFO] [stderr] 7 | | /// this crate. [INFO] [stderr] ... | [INFO] [stderr] 13 | | } [INFO] [stderr] 14 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: see issue #65833 <https://github.com/rust-lang/rust/issues/65833> for more information [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `#[inline]` is ignored on constants [INFO] [stderr] --> src/lib.rs:774:11 [INFO] [stderr] | [INFO] [stderr] 774 | $(#[$filtered])* [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] ::: src/example_generated.rs:4:1 [INFO] [stderr] | [INFO] [stderr] 4 | / bitflags! { [INFO] [stderr] 5 | | /// This is the same `Flags` struct defined in the [crate level example](../index.html#example). [INFO] [stderr] 6 | | /// Note that this struct is just for documentation purposes only, it must not be used outside [INFO] [stderr] 7 | | /// this crate. [INFO] [stderr] ... | [INFO] [stderr] 13 | | } [INFO] [stderr] 14 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: see issue #65833 <https://github.com/rust-lang/rust/issues/65833> for more information [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `#[inline]` is ignored on constants [INFO] [stderr] --> src/lib.rs:774:11 [INFO] [stderr] | [INFO] [stderr] 774 | $(#[$filtered])* [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] ::: src/example_generated.rs:4:1 [INFO] [stderr] | [INFO] [stderr] 4 | / bitflags! { [INFO] [stderr] 5 | | /// This is the same `Flags` struct defined in the [crate level example](../index.html#example). [INFO] [stderr] 6 | | /// Note that this struct is just for documentation purposes only, it must not be used outside [INFO] [stderr] 7 | | /// this crate. [INFO] [stderr] ... | [INFO] [stderr] 13 | | } [INFO] [stderr] 14 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: see issue #65833 <https://github.com/rust-lang/rust/issues/65833> for more information [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `#[inline]` is ignored on constants [INFO] [stderr] --> src/lib.rs:774:11 [INFO] [stderr] | [INFO] [stderr] 774 | $(#[$filtered])* [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] ::: src/example_generated.rs:4:1 [INFO] [stderr] | [INFO] [stderr] 4 | / bitflags! { [INFO] [stderr] 5 | | /// This is the same `Flags` struct defined in the [crate level example](../index.html#example). [INFO] [stderr] 6 | | /// Note that this struct is just for documentation purposes only, it must not be used outside [INFO] [stderr] 7 | | /// this crate. [INFO] [stderr] ... | [INFO] [stderr] 13 | | } [INFO] [stderr] 14 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: see issue #65833 <https://github.com/rust-lang/rust/issues/65833> for more information [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: 6 warnings emitted [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.36s [INFO] running `Command { std: "docker" "inspect" "c1f6109d2f6a2a948c18f7859f9e102a9ec9bad12082f5af47b1a8ae9787b79b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c1f6109d2f6a2a948c18f7859f9e102a9ec9bad12082f5af47b1a8ae9787b79b", kill_on_drop: false }` [INFO] [stdout] c1f6109d2f6a2a948c18f7859f9e102a9ec9bad12082f5af47b1a8ae9787b79b