[INFO] fetching crate ezcgmath 0.0.4... [INFO] checking ezcgmath-0.0.4 against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] extracting crate ezcgmath 0.0.4 into /workspace/builds/worker-2/source [INFO] validating manifest of crates.io crate ezcgmath 0.0.4 on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking crates.io crate ezcgmath 0.0.4 [INFO] finished tweaking crates.io crate ezcgmath 0.0.4 [INFO] tweaked toml for crates.io crate ezcgmath 0.0.4 written to /workspace/builds/worker-2/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "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" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 66466119272e288714144aaa7c9cbcb0b0dcd688ec8893dcd21825494354fd5b [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" "66466119272e288714144aaa7c9cbcb0b0dcd688ec8893dcd21825494354fd5b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "66466119272e288714144aaa7c9cbcb0b0dcd688ec8893dcd21825494354fd5b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "66466119272e288714144aaa7c9cbcb0b0dcd688ec8893dcd21825494354fd5b", kill_on_drop: false }` [INFO] [stdout] 66466119272e288714144aaa7c9cbcb0b0dcd688ec8893dcd21825494354fd5b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "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" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 965f91e6b617790feec51ccedd9db6ace5eb7e4a9cb29d918722e5d86c68908a [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" "965f91e6b617790feec51ccedd9db6ace5eb7e4a9cb29d918722e5d86c68908a", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Checking approx v0.3.2 [INFO] [stderr] Checking ezcgmath v0.0.4 (/opt/rustwide/workdir) [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> tests/vector.rs:56:25 [INFO] [stdout] | [INFO] [stdout] 56 | assert_ulps_eq!(A.length(), (6.0 as f32).sqrt()); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(const_item_mutation)]` on by default [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: mutable reference created due to call to this method [INFO] [stdout] --> /opt/rustwide/workdir/src/vector.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | / pub fn length(&mut self) -> Scalar { [INFO] [stdout] 36 | | (self.x + self.y).sqrt() [INFO] [stdout] 37 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> tests/vector.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | const A: Vector2 = Vector2::new(2.0, 4.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> tests/vector.rs:57:25 [INFO] [stdout] | [INFO] [stdout] 57 | assert_ulps_eq!(B.length(), (15.0 as f32).sqrt()); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: mutable reference created due to call to this method [INFO] [stdout] --> /opt/rustwide/workdir/src/vector.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | / pub fn length(&mut self) -> Scalar { [INFO] [stdout] 36 | | (self.x + self.y).sqrt() [INFO] [stdout] 37 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> tests/vector.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | const B: Vector2 = Vector2::new(5.0, 10.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> tests/vector.rs:147:25 [INFO] [stdout] | [INFO] [stdout] 147 | assert_ulps_eq!(A.length(), a_len); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: mutable reference created due to call to this method [INFO] [stdout] --> /opt/rustwide/workdir/src/vector.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 110 | / pub fn length(&mut self) -> Scalar { [INFO] [stdout] 111 | | (self.x.powf(2.0) + self.y.powf(2.0) + self.z.powf(2.0)).sqrt() [INFO] [stdout] 112 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> tests/vector.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 80 | const A: Vector3 = Vector3::new(2.0, 4.0, 6.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> tests/vector.rs:148:25 [INFO] [stdout] | [INFO] [stdout] 148 | assert_ulps_eq!(B.length(), b_len); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: mutable reference created due to call to this method [INFO] [stdout] --> /opt/rustwide/workdir/src/vector.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 110 | / pub fn length(&mut self) -> Scalar { [INFO] [stdout] 111 | | (self.x.powf(2.0) + self.y.powf(2.0) + self.z.powf(2.0)).sqrt() [INFO] [stdout] 112 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> tests/vector.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | const B: Vector3 = Vector3::new(5.0, 10.0, 15.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 3.89s [INFO] running `Command { std: "docker" "inspect" "965f91e6b617790feec51ccedd9db6ace5eb7e4a9cb29d918722e5d86c68908a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "965f91e6b617790feec51ccedd9db6ace5eb7e4a9cb29d918722e5d86c68908a", kill_on_drop: false }` [INFO] [stdout] 965f91e6b617790feec51ccedd9db6ace5eb7e4a9cb29d918722e5d86c68908a