[INFO] crate bitflags 1.1.0 is already in cache [INFO] checking bitflags-1.1.0 against try#38f08371587f97c145dedb2c055ac7b01bf1e788 for pr-65294 [INFO] extracting crate bitflags 1.1.0 into /workspace/builds/worker-11/source [INFO] validating manifest of crates.io crate bitflags 1.1.0 on toolchain 38f08371587f97c145dedb2c055ac7b01bf1e788 [INFO] running `"/workspace/cargo-home/bin/cargo" "+38f08371587f97c145dedb2c055ac7b01bf1e788" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking crates.io crate bitflags 1.1.0 [INFO] finished tweaking crates.io crate bitflags 1.1.0 [INFO] tweaked toml for crates.io crate bitflags 1.1.0 written to /workspace/builds/worker-11/source/Cargo.toml [INFO] running `"/workspace/cargo-home/bin/cargo" "+38f08371587f97c145dedb2c055ac7b01bf1e788" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/workspace/cargo-home/bin/cargo" "+38f08371587f97c145dedb2c055ac7b01bf1e788" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+38f08371587f97c145dedb2c055ac7b01bf1e788" "check" "--frozen" "--all" "--all-targets"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 9e68c8d5e18c98fdbafedb24f7e0754c7c56a39e55c51c87e42b4e77da087e5f [INFO] running `"docker" "start" "-a" "9e68c8d5e18c98fdbafedb24f7e0754c7c56a39e55c51c87e42b4e77da087e5f"` [INFO] [stderr] Compiling bitflags v1.1.0 (/opt/rustwide/workdir) [INFO] [stderr] error[E0518]: attribute should be applied to function or closure [INFO] [stderr] --> src/lib.rs:566:29 [INFO] [stderr] | [INFO] [stderr] 566 | #[inline] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 567 | const $Flag: $T = 0; [INFO] [stderr] | -------------------- not a function or closure [INFO] [stderr] ... [INFO] [stderr] 903 | / bitflags! { [INFO] [stderr] 904 | | #[doc = "> The first principle is that you must not fool yourself — and"] [INFO] [stderr] 905 | | #[doc = "> you are the easiest person to fool."] [INFO] [stderr] 906 | | #[doc = "> "] [INFO] [stderr] ... | [INFO] [stderr] 917 | | } [INFO] [stderr] 918 | | } [INFO] [stderr] | |_____- in this macro invocation [INFO] [stderr] [INFO] [stderr] error[E0518]: attribute should be applied to function or closure [INFO] [stderr] --> src/lib.rs:566:29 [INFO] [stderr] | [INFO] [stderr] 566 | #[inline] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 567 | const $Flag: $T = 0; [INFO] [stderr] | -------------------- not a function or closure [INFO] [stderr] ... [INFO] [stderr] 920 | / bitflags! { [INFO] [stderr] 921 | | struct _CfgFlags: u32 { [INFO] [stderr] 922 | | #[cfg(windows)] [INFO] [stderr] 923 | | const _CFG_A = 0b01; [INFO] [stderr] ... | [INFO] [stderr] 928 | | } [INFO] [stderr] 929 | | } [INFO] [stderr] | |_____- in this macro invocation [INFO] [stderr] [INFO] [stderr] error[E0518]: attribute should be applied to function or closure [INFO] [stderr] --> src/lib.rs:566:29 [INFO] [stderr] | [INFO] [stderr] 566 | #[inline] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 567 | const $Flag: $T = 0; [INFO] [stderr] | -------------------- not a function or closure [INFO] [stderr] ... [INFO] [stderr] 931 | / bitflags! { [INFO] [stderr] 932 | | struct AnotherSetOfFlags: i8 { [INFO] [stderr] 933 | | const ANOTHER_FLAG = -1_i8; [INFO] [stderr] 934 | | } [INFO] [stderr] 935 | | } [INFO] [stderr] | |_____- in this macro invocation [INFO] [stderr] [INFO] [stderr] error[E0518]: attribute should be applied to function or closure [INFO] [stderr] --> src/lib.rs:566:29 [INFO] [stderr] | [INFO] [stderr] 566 | #[inline] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 567 | const $Flag: $T = 0; [INFO] [stderr] | -------------------- not a function or closure [INFO] [stderr] ... [INFO] [stderr] 937 | / bitflags! { [INFO] [stderr] 938 | | struct LongFlags: u32 { [INFO] [stderr] 939 | | const LONG_A = 0b1111111111111111; [INFO] [stderr] 940 | | } [INFO] [stderr] 941 | | } [INFO] [stderr] | |_____- in this macro invocation [INFO] [stderr] [INFO] [stderr] error[E0518]: attribute should be applied to function or closure [INFO] [stderr] --> src/lib.rs:566:29 [INFO] [stderr] | [INFO] [stderr] 566 | #[inline] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 567 | const $Flag: $T = 0; [INFO] [stderr] | -------------------- not a function or closure [INFO] [stderr] ... [INFO] [stderr] 1274 | / bitflags! { [INFO] [stderr] 1275 | | struct Flags: u8 { [INFO] [stderr] 1276 | | const A = 1; [INFO] [stderr] 1277 | | #[cfg(any())] // false [INFO] [stderr] 1278 | | const B = 2; [INFO] [stderr] 1279 | | } [INFO] [stderr] 1280 | | } [INFO] [stderr] | |_________- in this macro invocation [INFO] [stderr] [INFO] [stderr] error[E0518]: attribute should be applied to function or closure [INFO] [stderr] --> src/lib.rs:566:29 [INFO] [stderr] | [INFO] [stderr] 566 | #[inline] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 567 | const $Flag: $T = 0; [INFO] [stderr] | -------------------- not a function or closure [INFO] [stderr] ... [INFO] [stderr] 1287 | / bitflags! { [INFO] [stderr] 1288 | | pub struct TestFlags: u32 { [INFO] [stderr] 1289 | | #[deprecated(note = "Use something else.")] [INFO] [stderr] 1290 | | const ONE = 1; [INFO] [stderr] 1291 | | } [INFO] [stderr] 1292 | | } [INFO] [stderr] | |_________- in this macro invocation [INFO] [stderr] [INFO] [stderr] error[E0518]: attribute should be applied to function or closure [INFO] [stderr] --> src/lib.rs:566:29 [INFO] [stderr] | [INFO] [stderr] 566 | #[inline] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 567 | const $Flag: $T = 0; [INFO] [stderr] | -------------------- not a function or closure [INFO] [stderr] ... [INFO] [stderr] 1339 | / bitflags! { [INFO] [stderr] 1340 | | struct Flags: u32 { [INFO] [stderr] 1341 | | const NONE = 0b0; [INFO] [stderr] 1342 | | const SOME = 0b1; [INFO] [stderr] 1343 | | } [INFO] [stderr] 1344 | | } [INFO] [stderr] | |_________- in this macro invocation [INFO] [stderr] [INFO] [stderr] error[E0518]: attribute should be applied to function or closure [INFO] [stderr] --> src/lib.rs:880:11 [INFO] [stderr] | [INFO] [stderr] 576 | const $Flag: $T = Self::$Flag.bits; [INFO] [stderr] | ___________________________________________________________________- [INFO] [stderr] 577 | | } [INFO] [stderr] 578 | | )+ [INFO] [stderr] 579 | | } [INFO] [stderr] ... | [INFO] [stderr] 880 | | $(#[$filtered])* [INFO] [stderr] | | ^^^^^^^^^^^^ [INFO] [stderr] 881 | | const $($item)* [INFO] [stderr] | |_____________- not a function or closure [INFO] [stderr] ... [INFO] [stderr] 903 | / bitflags! { [INFO] [stderr] 904 | | #[doc = "> The first principle is that you must not fool yourself — and"] [INFO] [stderr] 905 | | #[doc = "> you are the easiest person to fool."] [INFO] [stderr] 906 | | #[doc = "> "] [INFO] [stderr] ... | [INFO] [stderr] 917 | | } [INFO] [stderr] 918 | | } [INFO] [stderr] | |_____- in this macro invocation [INFO] [stderr] [INFO] [stderr] error[E0518]: attribute should be applied to function or closure [INFO] [stderr] --> src/lib.rs:880:11 [INFO] [stderr] | [INFO] [stderr] 576 | const $Flag: $T = Self::$Flag.bits; [INFO] [stderr] | ___________________________________________________________________- [INFO] [stderr] 577 | | } [INFO] [stderr] 578 | | )+ [INFO] [stderr] 579 | | } [INFO] [stderr] ... | [INFO] [stderr] 880 | | $(#[$filtered])* [INFO] [stderr] | | ^^^^^^^^^^^^ [INFO] [stderr] 881 | | const $($item)* [INFO] [stderr] | |_____________- not a function or closure [INFO] [stderr] ... [INFO] [stderr] 903 | / bitflags! { [INFO] [stderr] 904 | | #[doc = "> The first principle is that you must not fool yourself — and"] [INFO] [stderr] 905 | | #[doc = "> you are the easiest person to fool."] [INFO] [stderr] 906 | | #[doc = "> "] [INFO] [stderr] ... | [INFO] [stderr] 917 | | } [INFO] [stderr] 918 | | } [INFO] [stderr] | |_____- in this macro invocation [INFO] [stderr] [INFO] [stderr] error[E0518]: attribute should be applied to function or closure [INFO] [stderr] --> src/lib.rs:880:11 [INFO] [stderr] | [INFO] [stderr] 576 | const $Flag: $T = Self::$Flag.bits; [INFO] [stderr] | ___________________________________________________________________- [INFO] [stderr] 577 | | } [INFO] [stderr] 578 | | )+ [INFO] [stderr] 579 | | } [INFO] [stderr] ... | [INFO] [stderr] 880 | | $(#[$filtered])* [INFO] [stderr] | | ^^^^^^^^^^^^ [INFO] [stderr] 881 | | const $($item)* [INFO] [stderr] | |_____________- not a function or closure [INFO] [stderr] ... [INFO] [stderr] 903 | / bitflags! { [INFO] [stderr] 904 | | #[doc = "> The first principle is that you must not fool yourself — and"] [INFO] [stderr] 905 | | #[doc = "> you are the easiest person to fool."] [INFO] [stderr] 906 | | #[doc = "> "] [INFO] [stderr] ... | [INFO] [stderr] 917 | | } [INFO] [stderr] 918 | | } [INFO] [stderr] | |_____- in this macro invocation [INFO] [stderr] [INFO] [stderr] error[E0518]: attribute should be applied to function or closure [INFO] [stderr] --> src/lib.rs:880:11 [INFO] [stderr] | [INFO] [stderr] 576 | const $Flag: $T = Self::$Flag.bits; [INFO] [stderr] | ___________________________________________________________________- [INFO] [stderr] 577 | | } [INFO] [stderr] 578 | | )+ [INFO] [stderr] 579 | | } [INFO] [stderr] ... | [INFO] [stderr] 880 | | $(#[$filtered])* [INFO] [stderr] | | ^^^^^^^^^^^^ [INFO] [stderr] 881 | | const $($item)* [INFO] [stderr] | |_____________- not a function or closure [INFO] [stderr] ... [INFO] [stderr] 903 | / bitflags! { [INFO] [stderr] 904 | | #[doc = "> The first principle is that you must not fool yourself — and"] [INFO] [stderr] 905 | | #[doc = "> you are the easiest person to fool."] [INFO] [stderr] 906 | | #[doc = "> "] [INFO] [stderr] ... | [INFO] [stderr] 917 | | } [INFO] [stderr] 918 | | } [INFO] [stderr] | |_____- in this macro invocation [INFO] [stderr] [INFO] [stderr] error[E0518]: attribute should be applied to function or closure [INFO] [stderr] --> src/lib.rs:880:11 [INFO] [stderr] | [INFO] [stderr] 576 | const $Flag: $T = Self::$Flag.bits; [INFO] [stderr] | ___________________________________________________________________- [INFO] [stderr] 577 | | } [INFO] [stderr] 578 | | )+ [INFO] [stderr] 579 | | } [INFO] [stderr] ... | [INFO] [stderr] 880 | | $(#[$filtered])* [INFO] [stderr] | | ^^^^^^^^^^^^ [INFO] [stderr] 881 | | const $($item)* [INFO] [stderr] | |_____________- not a function or closure [INFO] [stderr] ... [INFO] [stderr] 920 | / bitflags! { [INFO] [stderr] 921 | | struct _CfgFlags: u32 { [INFO] [stderr] 922 | | #[cfg(windows)] [INFO] [stderr] 923 | | const _CFG_A = 0b01; [INFO] [stderr] ... | [INFO] [stderr] 928 | | } [INFO] [stderr] 929 | | } [INFO] [stderr] | |_____- in this macro invocation [INFO] [stderr] [INFO] [stderr] error[E0518]: attribute should be applied to function or closure [INFO] [stderr] --> src/lib.rs:880:11 [INFO] [stderr] | [INFO] [stderr] 576 | const $Flag: $T = Self::$Flag.bits; [INFO] [stderr] | ___________________________________________________________________- [INFO] [stderr] 577 | | } [INFO] [stderr] 578 | | )+ [INFO] [stderr] 579 | | } [INFO] [stderr] ... | [INFO] [stderr] 880 | | $(#[$filtered])* [INFO] [stderr] | | ^^^^^^^^^^^^ [INFO] [stderr] 881 | | const $($item)* [INFO] [stderr] | |_____________- not a function or closure [INFO] [stderr] ... [INFO] [stderr] 931 | / bitflags! { [INFO] [stderr] 932 | | struct AnotherSetOfFlags: i8 { [INFO] [stderr] 933 | | const ANOTHER_FLAG = -1_i8; [INFO] [stderr] 934 | | } [INFO] [stderr] 935 | | } [INFO] [stderr] | |_____- in this macro invocation [INFO] [stderr] [INFO] [stderr] error[E0518]: attribute should be applied to function or closure [INFO] [stderr] --> src/lib.rs:880:11 [INFO] [stderr] | [INFO] [stderr] 576 | const $Flag: $T = Self::$Flag.bits; [INFO] [stderr] | ___________________________________________________________________- [INFO] [stderr] 577 | | } [INFO] [stderr] 578 | | )+ [INFO] [stderr] 579 | | } [INFO] [stderr] ... | [INFO] [stderr] 880 | | $(#[$filtered])* [INFO] [stderr] | | ^^^^^^^^^^^^ [INFO] [stderr] 881 | | const $($item)* [INFO] [stderr] | |_____________- not a function or closure [INFO] [stderr] ... [INFO] [stderr] 937 | / bitflags! { [INFO] [stderr] 938 | | struct LongFlags: u32 { [INFO] [stderr] 939 | | const LONG_A = 0b1111111111111111; [INFO] [stderr] 940 | | } [INFO] [stderr] 941 | | } [INFO] [stderr] | |_____- in this macro invocation [INFO] [stderr] [INFO] [stderr] error[E0518]: attribute should be applied to function or closure [INFO] [stderr] --> src/lib.rs:880:11 [INFO] [stderr] | [INFO] [stderr] 576 | const $Flag: $T = Self::$Flag.bits; [INFO] [stderr] | ___________________________________________________________________- [INFO] [stderr] 577 | | } [INFO] [stderr] 578 | | )+ [INFO] [stderr] 579 | | } [INFO] [stderr] ... | [INFO] [stderr] 880 | | $(#[$filtered])* [INFO] [stderr] | | ^^^^^^^^^^^^ [INFO] [stderr] 881 | | const $($item)* [INFO] [stderr] | |_____________- not a function or closure [INFO] [stderr] ... [INFO] [stderr] 1274 | / bitflags! { [INFO] [stderr] 1275 | | struct Flags: u8 { [INFO] [stderr] 1276 | | const A = 1; [INFO] [stderr] 1277 | | #[cfg(any())] // false [INFO] [stderr] 1278 | | const B = 2; [INFO] [stderr] 1279 | | } [INFO] [stderr] 1280 | | } [INFO] [stderr] | |_________- in this macro invocation [INFO] [stderr] [INFO] [stderr] error[E0518]: attribute should be applied to function or closure [INFO] [stderr] --> src/lib.rs:880:11 [INFO] [stderr] | [INFO] [stderr] 576 | const $Flag: $T = Self::$Flag.bits; [INFO] [stderr] | ___________________________________________________________________- [INFO] [stderr] 577 | | } [INFO] [stderr] 578 | | )+ [INFO] [stderr] 579 | | } [INFO] [stderr] ... | [INFO] [stderr] 880 | | $(#[$filtered])* [INFO] [stderr] | | ^^^^^^^^^^^^ [INFO] [stderr] 881 | | const $($item)* [INFO] [stderr] | |_____________- not a function or closure [INFO] [stderr] ... [INFO] [stderr] 1287 | / bitflags! { [INFO] [stderr] 1288 | | pub struct TestFlags: u32 { [INFO] [stderr] 1289 | | #[deprecated(note = "Use something else.")] [INFO] [stderr] 1290 | | const ONE = 1; [INFO] [stderr] 1291 | | } [INFO] [stderr] 1292 | | } [INFO] [stderr] | |_________- in this macro invocation [INFO] [stderr] [INFO] [stderr] error[E0518]: attribute should be applied to function or closure [INFO] [stderr] --> src/lib.rs:880:11 [INFO] [stderr] | [INFO] [stderr] 576 | const $Flag: $T = Self::$Flag.bits; [INFO] [stderr] | ___________________________________________________________________- [INFO] [stderr] 577 | | } [INFO] [stderr] 578 | | )+ [INFO] [stderr] 579 | | } [INFO] [stderr] ... | [INFO] [stderr] 880 | | $(#[$filtered])* [INFO] [stderr] | | ^^^^^^^^^^^^ [INFO] [stderr] 881 | | const $($item)* [INFO] [stderr] | |_____________- not a function or closure [INFO] [stderr] ... [INFO] [stderr] 1339 | / bitflags! { [INFO] [stderr] 1340 | | struct Flags: u32 { [INFO] [stderr] 1341 | | const NONE = 0b0; [INFO] [stderr] 1342 | | const SOME = 0b1; [INFO] [stderr] 1343 | | } [INFO] [stderr] 1344 | | } [INFO] [stderr] | |_________- in this macro invocation [INFO] [stderr] [INFO] [stderr] error[E0518]: attribute should be applied to function or closure [INFO] [stderr] --> src/lib.rs:880:11 [INFO] [stderr] | [INFO] [stderr] 576 | const $Flag: $T = Self::$Flag.bits; [INFO] [stderr] | ___________________________________________________________________- [INFO] [stderr] 577 | | } [INFO] [stderr] 578 | | )+ [INFO] [stderr] 579 | | } [INFO] [stderr] ... | [INFO] [stderr] 880 | | $(#[$filtered])* [INFO] [stderr] | | ^^^^^^^^^^^^ [INFO] [stderr] 881 | | const $($item)* [INFO] [stderr] | |_____________- not a function or closure [INFO] [stderr] ... [INFO] [stderr] 1339 | / bitflags! { [INFO] [stderr] 1340 | | struct Flags: u32 { [INFO] [stderr] 1341 | | const NONE = 0b0; [INFO] [stderr] 1342 | | const SOME = 0b1; [INFO] [stderr] 1343 | | } [INFO] [stderr] 1344 | | } [INFO] [stderr] | |_________- in this macro invocation [INFO] [stderr] [INFO] [stderr] error[E0518]: attribute should be applied to function or closure [INFO] [stderr] --> src/lib.rs:566:29 [INFO] [stderr] | [INFO] [stderr] 566 | #[inline] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 567 | const $Flag: $T = 0; [INFO] [stderr] | -------------------- not a function or closure [INFO] [stderr] ... [INFO] [stderr] 1233 | / bitflags! { [INFO] [stderr] 1234 | | pub struct PublicFlags: i8 { [INFO] [stderr] 1235 | | const X = 0; [INFO] [stderr] 1236 | | } [INFO] [stderr] 1237 | | } [INFO] [stderr] | |_________- in this macro invocation [INFO] [stderr] [INFO] [stderr] error[E0518]: attribute should be applied to function or closure [INFO] [stderr] --> src/lib.rs:566:29 [INFO] [stderr] | [INFO] [stderr] 566 | #[inline] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 567 | const $Flag: $T = 0; [INFO] [stderr] | -------------------- not a function or closure [INFO] [stderr] ... [INFO] [stderr] 1238 | / bitflags! { [INFO] [stderr] 1239 | | struct PrivateFlags: i8 { [INFO] [stderr] 1240 | | const Y = 0; [INFO] [stderr] 1241 | | } [INFO] [stderr] 1242 | | } [INFO] [stderr] | |_________- in this macro invocation [INFO] [stderr] [INFO] [stderr] error[E0518]: attribute should be applied to function or closure [INFO] [stderr] --> src/lib.rs:880:11 [INFO] [stderr] | [INFO] [stderr] 576 | const $Flag: $T = Self::$Flag.bits; [INFO] [stderr] | ___________________________________________________________________- [INFO] [stderr] 577 | | } [INFO] [stderr] 578 | | )+ [INFO] [stderr] 579 | | } [INFO] [stderr] ... | [INFO] [stderr] 880 | | $(#[$filtered])* [INFO] [stderr] | | ^^^^^^^^^^^^ [INFO] [stderr] 881 | | const $($item)* [INFO] [stderr] | |_____________- not a function or closure [INFO] [stderr] ... [INFO] [stderr] 1233 | / bitflags! { [INFO] [stderr] 1234 | | pub struct PublicFlags: i8 { [INFO] [stderr] 1235 | | const X = 0; [INFO] [stderr] 1236 | | } [INFO] [stderr] 1237 | | } [INFO] [stderr] | |_________- in this macro invocation [INFO] [stderr] [INFO] [stderr] error[E0518]: attribute should be applied to function or closure [INFO] [stderr] --> src/lib.rs:880:11 [INFO] [stderr] | [INFO] [stderr] 576 | const $Flag: $T = Self::$Flag.bits; [INFO] [stderr] | ___________________________________________________________________- [INFO] [stderr] 577 | | } [INFO] [stderr] 578 | | )+ [INFO] [stderr] 579 | | } [INFO] [stderr] ... | [INFO] [stderr] 880 | | $(#[$filtered])* [INFO] [stderr] | | ^^^^^^^^^^^^ [INFO] [stderr] 881 | | const $($item)* [INFO] [stderr] | |_____________- not a function or closure [INFO] [stderr] ... [INFO] [stderr] 1238 | / bitflags! { [INFO] [stderr] 1239 | | struct PrivateFlags: i8 { [INFO] [stderr] 1240 | | const Y = 0; [INFO] [stderr] 1241 | | } [INFO] [stderr] 1242 | | } [INFO] [stderr] | |_________- in this macro invocation [INFO] [stderr] [INFO] [stderr] error[E0518]: attribute should be applied to function or closure [INFO] [stderr] --> src/lib.rs:566:29 [INFO] [stderr] | [INFO] [stderr] 566 | #[inline] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 567 | const $Flag: $T = 0; [INFO] [stderr] | -------------------- not a function or closure [INFO] [stderr] ... [INFO] [stderr] 1260 | / bitflags! { [INFO] [stderr] 1261 | | /// baz [INFO] [stderr] 1262 | | struct Flags: foo::Bar { [INFO] [stderr] 1263 | | const A = 0b00000001; [INFO] [stderr] ... | [INFO] [stderr] 1268 | | } [INFO] [stderr] 1269 | | } [INFO] [stderr] | |_________- in this macro invocation [INFO] [stderr] [INFO] [stderr] error[E0518]: attribute should be applied to function or closure [INFO] [stderr] --> src/lib.rs:880:11 [INFO] [stderr] | [INFO] [stderr] 576 | const $Flag: $T = Self::$Flag.bits; [INFO] [stderr] | ___________________________________________________________________- [INFO] [stderr] 577 | | } [INFO] [stderr] 578 | | )+ [INFO] [stderr] 579 | | } [INFO] [stderr] ... | [INFO] [stderr] 880 | | $(#[$filtered])* [INFO] [stderr] | | ^^^^^^^^^^^^ [INFO] [stderr] 881 | | const $($item)* [INFO] [stderr] | |_____________- not a function or closure [INFO] [stderr] ... [INFO] [stderr] 1260 | / bitflags! { [INFO] [stderr] 1261 | | /// baz [INFO] [stderr] 1262 | | struct Flags: foo::Bar { [INFO] [stderr] 1263 | | const A = 0b00000001; [INFO] [stderr] ... | [INFO] [stderr] 1268 | | } [INFO] [stderr] 1269 | | } [INFO] [stderr] | |_________- in this macro invocation [INFO] [stderr] [INFO] [stderr] error[E0518]: attribute should be applied to function or closure [INFO] [stderr] --> src/lib.rs:566:29 [INFO] [stderr] | [INFO] [stderr] 566 | #[inline] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 567 | const $Flag: $T = 0; [INFO] [stderr] | -------------------- not a function or closure [INFO] [stderr] ... [INFO] [stderr] 1298 | / bitflags! { [INFO] [stderr] 1299 | | pub (crate) struct Test: u8 { [INFO] [stderr] 1300 | | const FOO = 1; [INFO] [stderr] 1301 | | } [INFO] [stderr] 1302 | | } [INFO] [stderr] | |_____________- in this macro invocation [INFO] [stderr] [INFO] [stderr] error[E0518]: attribute should be applied to function or closure [INFO] [stderr] --> src/lib.rs:880:11 [INFO] [stderr] | [INFO] [stderr] 576 | const $Flag: $T = Self::$Flag.bits; [INFO] [stderr] | ___________________________________________________________________- [INFO] [stderr] 577 | | } [INFO] [stderr] 578 | | )+ [INFO] [stderr] 579 | | } [INFO] [stderr] ... | [INFO] [stderr] 880 | | $(#[$filtered])* [INFO] [stderr] | | ^^^^^^^^^^^^ [INFO] [stderr] 881 | | const $($item)* [INFO] [stderr] | |_____________- not a function or closure [INFO] [stderr] ... [INFO] [stderr] 1298 | / bitflags! { [INFO] [stderr] 1299 | | pub (crate) struct Test: u8 { [INFO] [stderr] 1300 | | const FOO = 1; [INFO] [stderr] 1301 | | } [INFO] [stderr] 1302 | | } [INFO] [stderr] | |_____________- in this macro invocation [INFO] [stderr] [INFO] [stderr] error[E0518]: attribute should be applied to function or closure [INFO] [stderr] --> src/lib.rs:566:29 [INFO] [stderr] | [INFO] [stderr] 566 | #[inline] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 567 | const $Flag: $T = 0; [INFO] [stderr] | -------------------- not a function or closure [INFO] [stderr] ... [INFO] [stderr] 1312 | / bitflags! { [INFO] [stderr] 1313 | | // `pub (in super)` means only the module `module` will [INFO] [stderr] 1314 | | // be able to access this. [INFO] [stderr] 1315 | | pub (in super) struct Test: u8 { [INFO] [stderr] 1316 | | const FOO = 1; [INFO] [stderr] 1317 | | } [INFO] [stderr] 1318 | | } [INFO] [stderr] | |_________________- in this macro invocation [INFO] [stderr] [INFO] [stderr] error[E0518]: attribute should be applied to function or closure [INFO] [stderr] --> src/lib.rs:880:11 [INFO] [stderr] | [INFO] [stderr] 576 | const $Flag: $T = Self::$Flag.bits; [INFO] [stderr] | ___________________________________________________________________- [INFO] [stderr] 577 | | } [INFO] [stderr] 578 | | )+ [INFO] [stderr] 579 | | } [INFO] [stderr] ... | [INFO] [stderr] 880 | | $(#[$filtered])* [INFO] [stderr] | | ^^^^^^^^^^^^ [INFO] [stderr] 881 | | const $($item)* [INFO] [stderr] | |_____________- not a function or closure [INFO] [stderr] ... [INFO] [stderr] 1312 | / bitflags! { [INFO] [stderr] 1313 | | // `pub (in super)` means only the module `module` will [INFO] [stderr] 1314 | | // be able to access this. [INFO] [stderr] 1315 | | pub (in super) struct Test: u8 { [INFO] [stderr] 1316 | | const FOO = 1; [INFO] [stderr] 1317 | | } [INFO] [stderr] 1318 | | } [INFO] [stderr] | |_________________- in this macro invocation [INFO] [stderr] [INFO] [stderr] error: aborting due to 28 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0518`. [INFO] [stderr] error: could not compile `bitflags`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "9e68c8d5e18c98fdbafedb24f7e0754c7c56a39e55c51c87e42b4e77da087e5f"` [INFO] running `"docker" "rm" "-f" "9e68c8d5e18c98fdbafedb24f7e0754c7c56a39e55c51c87e42b4e77da087e5f"` [INFO] [stdout] 9e68c8d5e18c98fdbafedb24f7e0754c7c56a39e55c51c87e42b4e77da087e5f