[INFO] cloning repository https://github.com/mjkillough/osrm-ch-m2m [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mjkillough/osrm-ch-m2m" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmjkillough%2Fosrm-ch-m2m", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmjkillough%2Fosrm-ch-m2m'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] fd83de2bac824eae939dc384ed8a5ec5170fe705 [INFO] checking mjkillough/osrm-ch-m2m against master#bca37a20bd376ce3fd138e7cdee7fe704e0f8814 for pr-139493-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmjkillough%2Fosrm-ch-m2m" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/mjkillough/osrm-ch-m2m [INFO] finished tweaking git repo https://github.com/mjkillough/osrm-ch-m2m [INFO] tweaked toml for git repo https://github.com/mjkillough/osrm-ch-m2m written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/mjkillough/osrm-ch-m2m on toolchain bca37a20bd376ce3fd138e7cdee7fe704e0f8814 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/mjkillough/osrm-ch-m2m already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded superslice v0.1.0 [INFO] [stderr] Downloaded filetime v0.2.4 [INFO] [stderr] Downloaded libloading v0.5.0 [INFO] [stderr] Downloaded priority-queue v0.5.2 [INFO] [stderr] Downloaded termcolor v1.0.4 [INFO] [stderr] Downloaded cexpr v0.3.3 [INFO] [stderr] Downloaded cc v1.0.28 [INFO] [stderr] Downloaded clang-sys v0.26.4 [INFO] [stderr] Downloaded indexmap v0.4.1 [INFO] [stderr] Downloaded serde v1.0.83 [INFO] [stderr] Downloaded serde_json v1.0.34 [INFO] [stderr] Downloaded nom v4.1.1 [INFO] [stderr] Downloaded bindgen v0.42.3 [INFO] [stderr] Downloaded bitvec v0.9.0 [INFO] [stderr] Downloaded humantime v1.2.0 [INFO] [stderr] Downloaded wincolor v1.0.1 [INFO] [stderr] Downloaded ryu v0.2.7 [INFO] [stderr] Downloaded serde_derive v1.0.83 [INFO] [stderr] Downloaded tar v0.4.20 [INFO] [stderr] Downloaded winapi-util v0.1.1 [INFO] [stderr] Downloaded proc-macro2 v0.3.5 [INFO] [stderr] Downloaded which v1.0.5 [INFO] [stderr] Downloaded xattr v0.2.2 [INFO] [stderr] Downloaded redox_syscall v0.1.44 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ace2e5d637ef930937f5f01ae4e3a13f43e0f943a1b24510359c4768bcf5b962 [INFO] running `Command { std: "docker" "start" "-a" "ace2e5d637ef930937f5f01ae4e3a13f43e0f943a1b24510359c4768bcf5b962", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ace2e5d637ef930937f5f01ae4e3a13f43e0f943a1b24510359c4768bcf5b962", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ace2e5d637ef930937f5f01ae4e3a13f43e0f943a1b24510359c4768bcf5b962", kill_on_drop: false }` [INFO] [stdout] ace2e5d637ef930937f5f01ae4e3a13f43e0f943a1b24510359c4768bcf5b962 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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" "RUSTDOCFLAGS=--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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fbc4d636f6a3ea7168b16367e796e76cb7605afb28a7f2fbbdc1f93810cfd95b [INFO] running `Command { std: "docker" "start" "-a" "fbc4d636f6a3ea7168b16367e796e76cb7605afb28a7f2fbbdc1f93810cfd95b", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.45 [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Compiling cfg-if v0.1.6 [INFO] [stderr] Compiling proc-macro2 v0.4.24 [INFO] [stderr] Compiling cc v1.0.28 [INFO] [stderr] Compiling glob v0.2.11 [INFO] [stderr] Compiling regex v1.1.0 [INFO] [stderr] Compiling lazy_static v1.2.0 [INFO] [stderr] Compiling unicode-width v0.1.5 [INFO] [stderr] Compiling quick-error v1.2.2 [INFO] [stderr] Compiling regex-syntax v0.6.4 [INFO] [stderr] Compiling proc-macro2 v0.3.5 [INFO] [stderr] Compiling vec_map v0.8.1 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling termcolor v1.0.4 [INFO] [stderr] Compiling thread_local v0.3.6 [INFO] [stderr] Compiling log v0.4.6 [INFO] [stderr] Checking crossbeam-utils v0.2.2 [INFO] [stderr] Compiling textwrap v0.10.0 [INFO] [stderr] Compiling humantime v1.2.0 [INFO] [stderr] Compiling rayon-core v1.4.1 [INFO] [stderr] Compiling bindgen v0.42.3 [INFO] [stderr] Compiling bitflags v1.0.4 [INFO] [stderr] Compiling strsim v0.7.0 [INFO] [stderr] Compiling memchr v2.1.2 [INFO] [stderr] Compiling quote v0.5.2 [INFO] [stderr] Checking crossbeam-epoch v0.3.1 [INFO] [stderr] Compiling serde v1.0.83 [INFO] [stderr] Compiling peeking_take_while v0.1.2 [INFO] [stderr] Compiling ryu v0.2.7 [INFO] [stderr] Compiling rayon v1.0.3 [INFO] [stderr] Checking indexmap v0.4.1 [INFO] [stderr] Checking either v1.5.0 [INFO] [stderr] Checking superslice v0.1.0 [INFO] [stderr] Checking bitvec v0.9.0 [INFO] [stderr] Checking crossbeam-deque v0.2.0 [INFO] [stderr] Compiling clang-sys v0.26.4 [INFO] [stderr] Checking priority-queue v0.5.2 [INFO] [stderr] Compiling atty v0.2.11 [INFO] [stderr] Compiling which v1.0.5 [INFO] [stderr] Compiling libloading v0.5.0 [INFO] [stderr] Compiling clap v2.32.0 [INFO] [stderr] Compiling aho-corasick v0.6.9 [INFO] [stderr] Compiling nom v4.1.1 [INFO] [stderr] Compiling quote v0.6.10 [INFO] [stderr] Checking num_cpus v1.9.0 [INFO] [stderr] Checking filetime v0.2.4 [INFO] [stderr] Checking xattr v0.2.2 [INFO] [stderr] Compiling syn v0.15.23 [INFO] [stderr] Checking tar v0.4.20 [INFO] [stderr] Compiling cexpr v0.3.3 [INFO] [stderr] Compiling serde_derive v1.0.83 [INFO] [stderr] Compiling env_logger v0.5.13 [INFO] [stderr] Compiling osrm-ch-m2m v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking serde_json v1.0.34 [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/heap.rs:11:30 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(Copy, Clone, Debug, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/main.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | #[derive(Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/heap.rs:11:30 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(Copy, Clone, Debug, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/main.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | #[derive(Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `parent` is never read [INFO] [stdout] --> src/heap.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Query { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 13 | pub node: NodeId, [INFO] [stdout] 14 | pub parent: NodeId, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Query` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/main.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | #[derive(Deserialize)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Queries` [INFO] [stdout] 17 | struct Queries { [INFO] [stdout] | ------- `Queries` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> /opt/rustwide/target/debug/build/osrm-ch-m2m-b2c04e24477078b8/out/bindings.rs:108:1796 [INFO] [stdout] | [INFO] [stdout] 108 | ...bool ) { unsafe { let val : u8 = :: std :: mem :: transmute ( val ) ; self . _bitfield_1 . set ( 31usize , 1u8 , val as u64 ) } ... [INFO] [stdout] | --------------------------^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u8::from` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> /opt/rustwide/target/debug/build/osrm-ch-m2m-b2c04e24477078b8/out/bindings.rs:108:2351 [INFO] [stdout] | [INFO] [stdout] 108 | ..., { let shortcut : u8 = unsafe { :: std :: mem :: transmute ( shortcut ) } ; shortcut as u64 } ) ; __bindgen_bitfield_unit } # [... [INFO] [stdout] | --------------------------^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u8::from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> /opt/rustwide/target/debug/build/osrm-ch-m2m-b2c04e24477078b8/out/bindings.rs:108:2504 [INFO] [stdout] | [INFO] [stdout] 108 | ... ) -> Weight { unsafe { :: std :: mem :: transmute ( self . _bitfield_2 . get ( 0usize , 30u8 ) as u32 ) } } # [ inline ] pub fn... [INFO] [stdout] | --------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u32::cast_signed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> /opt/rustwide/target/debug/build/osrm-ch-m2m-b2c04e24477078b8/out/bindings.rs:108:2679 [INFO] [stdout] | [INFO] [stdout] 108 | ... { unsafe { let val : u32 = :: std :: mem :: transmute ( val ) ; self . _bitfield_2 . set ( 0usize , 30u8 , val as u64 ) } } # [... [INFO] [stdout] | --------------------------^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `i32::cast_unsigned` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> /opt/rustwide/target/debug/build/osrm-ch-m2m-b2c04e24477078b8/out/bindings.rs:108:3004 [INFO] [stdout] | [INFO] [stdout] 108 | ...bool ) { unsafe { let val : u8 = :: std :: mem :: transmute ( val ) ; self . _bitfield_2 . set ( 30usize , 1u8 , val as u64 ) } ... [INFO] [stdout] | --------------------------^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u8::from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> /opt/rustwide/target/debug/build/osrm-ch-m2m-b2c04e24477078b8/out/bindings.rs:108:3331 [INFO] [stdout] | [INFO] [stdout] 108 | ...bool ) { unsafe { let val : u8 = :: std :: mem :: transmute ( val ) ; self . _bitfield_2 . set ( 31usize , 1u8 , val as u64 ) } ... [INFO] [stdout] | --------------------------^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u8::from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> /opt/rustwide/target/debug/build/osrm-ch-m2m-b2c04e24477078b8/out/bindings.rs:108:3762 [INFO] [stdout] | [INFO] [stdout] 108 | ...t duration : u32 = unsafe { :: std :: mem :: transmute ( duration ) } ; duration as u64 } ) ; __bindgen_bitfield_unit . set ( 30... [INFO] [stdout] | --------------------------^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `i32::cast_unsigned` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> /opt/rustwide/target/debug/build/osrm-ch-m2m-b2c04e24477078b8/out/bindings.rs:108:3906 [INFO] [stdout] | [INFO] [stdout] 108 | ... , { let forward : u8 = unsafe { :: std :: mem :: transmute ( forward ) } ; forward as u64 } ) ; __bindgen_bitfield_unit . set (... [INFO] [stdout] | --------------------------^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u8::from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> /opt/rustwide/target/debug/build/osrm-ch-m2m-b2c04e24477078b8/out/bindings.rs:108:4049 [INFO] [stdout] | [INFO] [stdout] 108 | ..., { let backward : u8 = unsafe { :: std :: mem :: transmute ( backward ) } ; backward as u64 } ) ; __bindgen_bitfield_unit } } #... [INFO] [stdout] | --------------------------^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u8::from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/heap.rs:11:30 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(Copy, Clone, Debug, Deserialize)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Query` [INFO] [stdout] 12 | pub struct Query { [INFO] [stdout] | ----- `Query` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `parent` is never read [INFO] [stdout] --> src/heap.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Query { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 13 | pub node: NodeId, [INFO] [stdout] 14 | pub parent: NodeId, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Query` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/main.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | #[derive(Deserialize)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Queries` [INFO] [stdout] 17 | struct Queries { [INFO] [stdout] | ------- `Queries` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/osrm-ch-m2m-b2c04e24477078b8/out/bindings.rs:108:778 [INFO] [stdout] | [INFO] [stdout] 108 | ...nsafe { & ( * ( :: std :: ptr :: null :: < EdgeArrayEntry > ( ) ) ) . target as * const _ as usize } , 0usize , concat ! ( "Offs... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(deref_nullptr)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/osrm-ch-m2m-b2c04e24477078b8/out/bindings.rs:108:1007 [INFO] [stdout] | [INFO] [stdout] 108 | ...nsafe { & ( * ( :: std :: ptr :: null :: < EdgeArrayEntry > ( ) ) ) . weight as * const _ as usize } , 8usize , concat ! ( "Offs... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> /opt/rustwide/target/debug/build/osrm-ch-m2m-b2c04e24477078b8/out/bindings.rs:108:1796 [INFO] [stdout] | [INFO] [stdout] 108 | ...bool ) { unsafe { let val : u8 = :: std :: mem :: transmute ( val ) ; self . _bitfield_1 . set ( 31usize , 1u8 , val as u64 ) } ... [INFO] [stdout] | --------------------------^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u8::from` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> /opt/rustwide/target/debug/build/osrm-ch-m2m-b2c04e24477078b8/out/bindings.rs:108:2351 [INFO] [stdout] | [INFO] [stdout] 108 | ..., { let shortcut : u8 = unsafe { :: std :: mem :: transmute ( shortcut ) } ; shortcut as u64 } ) ; __bindgen_bitfield_unit } # [... [INFO] [stdout] | --------------------------^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u8::from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> /opt/rustwide/target/debug/build/osrm-ch-m2m-b2c04e24477078b8/out/bindings.rs:108:2504 [INFO] [stdout] | [INFO] [stdout] 108 | ... ) -> Weight { unsafe { :: std :: mem :: transmute ( self . _bitfield_2 . get ( 0usize , 30u8 ) as u32 ) } } # [ inline ] pub fn... [INFO] [stdout] | --------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u32::cast_signed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> /opt/rustwide/target/debug/build/osrm-ch-m2m-b2c04e24477078b8/out/bindings.rs:108:2679 [INFO] [stdout] | [INFO] [stdout] 108 | ... { unsafe { let val : u32 = :: std :: mem :: transmute ( val ) ; self . _bitfield_2 . set ( 0usize , 30u8 , val as u64 ) } } # [... [INFO] [stdout] | --------------------------^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `i32::cast_unsigned` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> /opt/rustwide/target/debug/build/osrm-ch-m2m-b2c04e24477078b8/out/bindings.rs:108:3004 [INFO] [stdout] | [INFO] [stdout] 108 | ...bool ) { unsafe { let val : u8 = :: std :: mem :: transmute ( val ) ; self . _bitfield_2 . set ( 30usize , 1u8 , val as u64 ) } ... [INFO] [stdout] | --------------------------^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u8::from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> /opt/rustwide/target/debug/build/osrm-ch-m2m-b2c04e24477078b8/out/bindings.rs:108:3331 [INFO] [stdout] | [INFO] [stdout] 108 | ...bool ) { unsafe { let val : u8 = :: std :: mem :: transmute ( val ) ; self . _bitfield_2 . set ( 31usize , 1u8 , val as u64 ) } ... [INFO] [stdout] | --------------------------^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u8::from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> /opt/rustwide/target/debug/build/osrm-ch-m2m-b2c04e24477078b8/out/bindings.rs:108:3762 [INFO] [stdout] | [INFO] [stdout] 108 | ...t duration : u32 = unsafe { :: std :: mem :: transmute ( duration ) } ; duration as u64 } ) ; __bindgen_bitfield_unit . set ( 30... [INFO] [stdout] | --------------------------^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `i32::cast_unsigned` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> /opt/rustwide/target/debug/build/osrm-ch-m2m-b2c04e24477078b8/out/bindings.rs:108:3906 [INFO] [stdout] | [INFO] [stdout] 108 | ... , { let forward : u8 = unsafe { :: std :: mem :: transmute ( forward ) } ; forward as u64 } ) ; __bindgen_bitfield_unit . set (... [INFO] [stdout] | --------------------------^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u8::from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> /opt/rustwide/target/debug/build/osrm-ch-m2m-b2c04e24477078b8/out/bindings.rs:108:4049 [INFO] [stdout] | [INFO] [stdout] 108 | ..., { let backward : u8 = unsafe { :: std :: mem :: transmute ( backward ) } ; backward as u64 } ) ; __bindgen_bitfield_unit } } #... [INFO] [stdout] | --------------------------^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u8::from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/osrm-ch-m2m-b2c04e24477078b8/out/bindings.rs:108:4615 [INFO] [stdout] | [INFO] [stdout] 108 | ...nsafe { & ( * ( :: std :: ptr :: null :: < NodeArrayEntry > ( ) ) ) . first_edge as * const _ as usize } , 0usize , concat ! ( "... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/osrm-ch-m2m-b2c04e24477078b8/out/bindings.rs:108:5292 [INFO] [stdout] | [INFO] [stdout] 108 | ...( unsafe { & ( * ( :: std :: ptr :: null :: < Metadata > ( ) ) ) . element_count as * const _ as usize } , 0usize , concat ! ( "... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/heap.rs:11:30 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(Copy, Clone, Debug, Deserialize)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Query` [INFO] [stdout] 12 | pub struct Query { [INFO] [stdout] | ----- `Query` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `osrm-ch-m2m` (bin "osrm-ch-m2m" test) due to 4 previous errors; 14 warnings emitted [INFO] running `Command { std: "docker" "inspect" "fbc4d636f6a3ea7168b16367e796e76cb7605afb28a7f2fbbdc1f93810cfd95b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fbc4d636f6a3ea7168b16367e796e76cb7605afb28a7f2fbbdc1f93810cfd95b", kill_on_drop: false }` [INFO] [stdout] fbc4d636f6a3ea7168b16367e796e76cb7605afb28a7f2fbbdc1f93810cfd95b