[INFO] crate rustc-ap-rustc_index 669.0.0 is already in cache [INFO] checking rustc-ap-rustc_index-669.0.0 against master#1557fb031b272b4c5bfcc7de5df7eddc7b36a584 for pr-73166 [INFO] extracting crate rustc-ap-rustc_index 669.0.0 into /workspace/builds/worker-13/source [INFO] validating manifest of crates.io crate rustc-ap-rustc_index 669.0.0 on toolchain 1557fb031b272b4c5bfcc7de5df7eddc7b36a584 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1557fb031b272b4c5bfcc7de5df7eddc7b36a584" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking crates.io crate rustc-ap-rustc_index 669.0.0 [INFO] finished tweaking crates.io crate rustc-ap-rustc_index 669.0.0 [INFO] tweaked toml for crates.io crate rustc-ap-rustc_index 669.0.0 written to /workspace/builds/worker-13/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1557fb031b272b4c5bfcc7de5df7eddc7b36a584" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1557fb031b272b4c5bfcc7de5df7eddc7b36a584" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+1557fb031b272b4c5bfcc7de5df7eddc7b36a584" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3e2db458c58a35cbd0cf763e875760fbfd7da6add0470a9c8e10d0687315acb7 [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" "3e2db458c58a35cbd0cf763e875760fbfd7da6add0470a9c8e10d0687315acb7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3e2db458c58a35cbd0cf763e875760fbfd7da6add0470a9c8e10d0687315acb7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3e2db458c58a35cbd0cf763e875760fbfd7da6add0470a9c8e10d0687315acb7", kill_on_drop: false }` [INFO] [stdout] 3e2db458c58a35cbd0cf763e875760fbfd7da6add0470a9c8e10d0687315acb7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+1557fb031b272b4c5bfcc7de5df7eddc7b36a584" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9befd28ec20e14bb4d7261d6f3aaee90a62b6b18399b1fe0c0c9ea185e242948 [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" "9befd28ec20e14bb4d7261d6f3aaee90a62b6b18399b1fe0c0c9ea185e242948", kill_on_drop: false }` [INFO] [stderr] Checking rustc-ap-rustc_index v669.0.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0658]: `if` is not allowed in a `const fn` [INFO] [stdout] --> vec.rs:126:17 [INFO] [stdout] | [INFO] [stdout] 126 | assert!(value <= ($max as usize)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: vec/tests.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | newtype_index!(struct MyIdx { MAX = 0xFFFF_FFFA }); [INFO] [stdout] | --------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: see issue #49146 for more information [INFO] [stdout] = help: add `#![feature(const_if_match)]` to the crate attributes to enable [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: `if` is not allowed in a `const fn` [INFO] [stdout] --> vec.rs:134:17 [INFO] [stdout] | [INFO] [stdout] 134 | assert!(value <= $max); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: vec/tests.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | newtype_index!(struct MyIdx { MAX = 0xFFFF_FFFA }); [INFO] [stdout] | --------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: see issue #49146 for more information [INFO] [stdout] = help: add `#![feature(const_if_match)]` to the crate attributes to enable [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0658`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rustc-ap-rustc_index`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `Command { std: "docker" "inspect" "9befd28ec20e14bb4d7261d6f3aaee90a62b6b18399b1fe0c0c9ea185e242948", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9befd28ec20e14bb4d7261d6f3aaee90a62b6b18399b1fe0c0c9ea185e242948", kill_on_drop: false }` [INFO] [stdout] 9befd28ec20e14bb4d7261d6f3aaee90a62b6b18399b1fe0c0c9ea185e242948