[INFO] cloning repository https://github.com/lesleyangel/meshing [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lesleyangel/meshing" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flesleyangel%2Fmeshing", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flesleyangel%2Fmeshing'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 30c127bf2e7a376ad1c4b10919ce25ab2b93514f [INFO] checking lesleyangel/meshing against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flesleyangel%2Fmeshing" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/lesleyangel/meshing [INFO] finished tweaking git repo https://github.com/lesleyangel/meshing [INFO] tweaked toml for git repo https://github.com/lesleyangel/meshing written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/lesleyangel/meshing on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/lesleyangel/meshing 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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b51afb1072eeaf6bcc4b5875d2e998f76b67a60b14d1a09d7a74da4666904f8b [INFO] running `Command { std: "docker" "start" "-a" "b51afb1072eeaf6bcc4b5875d2e998f76b67a60b14d1a09d7a74da4666904f8b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b51afb1072eeaf6bcc4b5875d2e998f76b67a60b14d1a09d7a74da4666904f8b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b51afb1072eeaf6bcc4b5875d2e998f76b67a60b14d1a09d7a74da4666904f8b", kill_on_drop: false }` [INFO] [stdout] b51afb1072eeaf6bcc4b5875d2e998f76b67a60b14d1a09d7a74da4666904f8b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f2cde871d981638d313e54fc75379ea896d7b3f70bd4bf9d3eb0efdc2208e9e2 [INFO] running `Command { std: "docker" "start" "-a" "f2cde871d981638d313e54fc75379ea896d7b3f70bd4bf9d3eb0efdc2208e9e2", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Checking meshing v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: function `pause` is never used [INFO] [stdout] --> src/main.rs:52:4 [INFO] [stdout] | [INFO] [stdout] 52 | fn pause() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `meshing` (bin "meshing" test) due to 4 previous errors; 5 warnings emitted [INFO] [stdout] warning: variant `None` is never constructed [INFO] [stdout] --> src/meshing.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum MeshStyle { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 15 | None, // 无效的模式 [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: method `check` is never used [INFO] [stdout] --> src/meshing.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl MeshMat { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 27 | pub fn check(&self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::from_raw` that must be used [INFO] [stdout] --> src/c_meshing.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 89 | Box::from_raw(ptr); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 89 | let _ = Box::from_raw(ptr); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/c_meshing.rs:96:14 [INFO] [stdout] | [INFO] [stdout] 96 | unsafe { (*res).eta_mesh[fai_num][eta_id] } [INFO] [stdout] | ^^---^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut MeshMat` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&Vec` [INFO] [stdout] --> src/c_meshing.rs:96:14 [INFO] [stdout] | [INFO] [stdout] 96 | unsafe { (*res).eta_mesh[fai_num][eta_id] } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[deny(dangerous_implicit_autorefs)]` on by default [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 96 | unsafe { (&(*res).eta_mesh[fai_num])[eta_id] } [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/c_meshing.rs:96:14 [INFO] [stdout] | [INFO] [stdout] 96 | unsafe { (*res).eta_mesh[fai_num][eta_id] } [INFO] [stdout] | ^^---^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut MeshMat` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&Vec>` [INFO] [stdout] --> src/c_meshing.rs:96:14 [INFO] [stdout] | [INFO] [stdout] 96 | unsafe { (*res).eta_mesh[fai_num][eta_id] } [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 96 | unsafe { (&(*res).eta_mesh)[fai_num][eta_id] } [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/c_meshing.rs:100:14 [INFO] [stdout] | [INFO] [stdout] 100 | unsafe { (*res).fai_mesh[fai_num][eta_id] } [INFO] [stdout] | ^^---^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut MeshMat` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&Vec` [INFO] [stdout] --> src/c_meshing.rs:100:14 [INFO] [stdout] | [INFO] [stdout] 100 | unsafe { (*res).fai_mesh[fai_num][eta_id] } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 100 | unsafe { (&(*res).fai_mesh[fai_num])[eta_id] } [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/c_meshing.rs:100:14 [INFO] [stdout] | [INFO] [stdout] 100 | unsafe { (*res).fai_mesh[fai_num][eta_id] } [INFO] [stdout] | ^^---^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut MeshMat` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&Vec>` [INFO] [stdout] --> src/c_meshing.rs:100:14 [INFO] [stdout] | [INFO] [stdout] 100 | unsafe { (*res).fai_mesh[fai_num][eta_id] } [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 100 | unsafe { (&(*res).fai_mesh)[fai_num][eta_id] } [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::from_raw` that must be used [INFO] [stdout] --> src/meshing/free_info.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 113 | Box::from_raw(ptr); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 113 | let _ = Box::from_raw(ptr); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `None` is never constructed [INFO] [stdout] --> src/meshing.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum MeshStyle { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 15 | None, // 无效的模式 [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `check` is never used [INFO] [stdout] --> src/meshing.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl MeshMat { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 27 | pub fn check(&self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::from_raw` that must be used [INFO] [stdout] --> src/lib.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | Box::from_raw(ptr); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 37 | let _ = Box::from_raw(ptr); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::from_raw` that must be used [INFO] [stdout] --> src/meshing/free_info.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 113 | Box::from_raw(ptr); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 113 | let _ = Box::from_raw(ptr); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::from_raw` that must be used [INFO] [stdout] --> src/c_meshing.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 89 | Box::from_raw(ptr); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 89 | let _ = Box::from_raw(ptr); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/c_meshing.rs:96:14 [INFO] [stdout] | [INFO] [stdout] 96 | unsafe { (*res).eta_mesh[fai_num][eta_id] } [INFO] [stdout] | ^^---^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut MeshMat` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&Vec` [INFO] [stdout] --> src/c_meshing.rs:96:14 [INFO] [stdout] | [INFO] [stdout] 96 | unsafe { (*res).eta_mesh[fai_num][eta_id] } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[deny(dangerous_implicit_autorefs)]` on by default [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 96 | unsafe { (&(*res).eta_mesh[fai_num])[eta_id] } [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/c_meshing.rs:96:14 [INFO] [stdout] | [INFO] [stdout] 96 | unsafe { (*res).eta_mesh[fai_num][eta_id] } [INFO] [stdout] | ^^---^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut MeshMat` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&Vec>` [INFO] [stdout] --> src/c_meshing.rs:96:14 [INFO] [stdout] | [INFO] [stdout] 96 | unsafe { (*res).eta_mesh[fai_num][eta_id] } [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 96 | unsafe { (&(*res).eta_mesh)[fai_num][eta_id] } [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/c_meshing.rs:100:14 [INFO] [stdout] | [INFO] [stdout] 100 | unsafe { (*res).fai_mesh[fai_num][eta_id] } [INFO] [stdout] | ^^---^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut MeshMat` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&Vec` [INFO] [stdout] --> src/c_meshing.rs:100:14 [INFO] [stdout] | [INFO] [stdout] 100 | unsafe { (*res).fai_mesh[fai_num][eta_id] } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 100 | unsafe { (&(*res).fai_mesh[fai_num])[eta_id] } [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/c_meshing.rs:100:14 [INFO] [stdout] | [INFO] [stdout] 100 | unsafe { (*res).fai_mesh[fai_num][eta_id] } [INFO] [stdout] | ^^---^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut MeshMat` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&Vec>` [INFO] [stdout] --> src/c_meshing.rs:100:14 [INFO] [stdout] | [INFO] [stdout] 100 | unsafe { (*res).fai_mesh[fai_num][eta_id] } [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 100 | unsafe { (&(*res).fai_mesh)[fai_num][eta_id] } [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `meshing` (lib) due to 4 previous errors; 5 warnings emitted [INFO] [stdout] warning: function `pause` is never used [INFO] [stdout] --> src/main.rs:52:4 [INFO] [stdout] | [INFO] [stdout] 52 | fn pause() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `None` is never constructed [INFO] [stdout] --> src/meshing.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum MeshStyle { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 15 | None, // 无效的模式 [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `check` is never used [INFO] [stdout] --> src/meshing.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl MeshMat { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 27 | pub fn check(&self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::from_raw` that must be used [INFO] [stdout] --> src/c_meshing.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 89 | Box::from_raw(ptr); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 89 | let _ = Box::from_raw(ptr); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/c_meshing.rs:96:14 [INFO] [stdout] | [INFO] [stdout] 96 | unsafe { (*res).eta_mesh[fai_num][eta_id] } [INFO] [stdout] | ^^---^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut MeshMat` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&Vec` [INFO] [stdout] --> src/c_meshing.rs:96:14 [INFO] [stdout] | [INFO] [stdout] 96 | unsafe { (*res).eta_mesh[fai_num][eta_id] } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[deny(dangerous_implicit_autorefs)]` on by default [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 96 | unsafe { (&(*res).eta_mesh[fai_num])[eta_id] } [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/c_meshing.rs:96:14 [INFO] [stdout] | [INFO] [stdout] 96 | unsafe { (*res).eta_mesh[fai_num][eta_id] } [INFO] [stdout] | ^^---^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut MeshMat` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&Vec>` [INFO] [stdout] --> src/c_meshing.rs:96:14 [INFO] [stdout] | [INFO] [stdout] 96 | unsafe { (*res).eta_mesh[fai_num][eta_id] } [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 96 | unsafe { (&(*res).eta_mesh)[fai_num][eta_id] } [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/c_meshing.rs:100:14 [INFO] [stdout] | [INFO] [stdout] 100 | unsafe { (*res).fai_mesh[fai_num][eta_id] } [INFO] [stdout] | ^^---^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut MeshMat` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&Vec` [INFO] [stdout] --> src/c_meshing.rs:100:14 [INFO] [stdout] | [INFO] [stdout] 100 | unsafe { (*res).fai_mesh[fai_num][eta_id] } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 100 | unsafe { (&(*res).fai_mesh[fai_num])[eta_id] } [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/c_meshing.rs:100:14 [INFO] [stdout] | [INFO] [stdout] 100 | unsafe { (*res).fai_mesh[fai_num][eta_id] } [INFO] [stdout] | ^^---^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut MeshMat` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&Vec>` [INFO] [stdout] --> src/c_meshing.rs:100:14 [INFO] [stdout] | [INFO] [stdout] 100 | unsafe { (*res).fai_mesh[fai_num][eta_id] } [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 100 | unsafe { (&(*res).fai_mesh)[fai_num][eta_id] } [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `None` is never constructed [INFO] [stdout] --> src/meshing.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum MeshStyle { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 15 | None, // 无效的模式 [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `check` is never used [INFO] [stdout] --> src/meshing.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl MeshMat { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 27 | pub fn check(&self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::from_raw` that must be used [INFO] [stdout] --> src/meshing/free_info.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 113 | Box::from_raw(ptr); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 113 | let _ = Box::from_raw(ptr); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::from_raw` that must be used [INFO] [stdout] --> src/lib.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | Box::from_raw(ptr); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 37 | let _ = Box::from_raw(ptr); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::from_raw` that must be used [INFO] [stdout] --> src/meshing/free_info.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 113 | Box::from_raw(ptr); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 113 | let _ = Box::from_raw(ptr); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::from_raw` that must be used [INFO] [stdout] --> src/c_meshing.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 89 | Box::from_raw(ptr); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 89 | let _ = Box::from_raw(ptr); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/c_meshing.rs:96:14 [INFO] [stdout] | [INFO] [stdout] 96 | unsafe { (*res).eta_mesh[fai_num][eta_id] } [INFO] [stdout] | ^^---^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut MeshMat` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&Vec` [INFO] [stdout] --> src/c_meshing.rs:96:14 [INFO] [stdout] | [INFO] [stdout] 96 | unsafe { (*res).eta_mesh[fai_num][eta_id] } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[deny(dangerous_implicit_autorefs)]` on by default [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 96 | unsafe { (&(*res).eta_mesh[fai_num])[eta_id] } [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/c_meshing.rs:96:14 [INFO] [stdout] | [INFO] [stdout] 96 | unsafe { (*res).eta_mesh[fai_num][eta_id] } [INFO] [stdout] | ^^---^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut MeshMat` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&Vec>` [INFO] [stdout] --> src/c_meshing.rs:96:14 [INFO] [stdout] | [INFO] [stdout] 96 | unsafe { (*res).eta_mesh[fai_num][eta_id] } [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 96 | unsafe { (&(*res).eta_mesh)[fai_num][eta_id] } [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/c_meshing.rs:100:14 [INFO] [stdout] | [INFO] [stdout] 100 | unsafe { (*res).fai_mesh[fai_num][eta_id] } [INFO] [stdout] | ^^---^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut MeshMat` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&Vec` [INFO] [stdout] --> src/c_meshing.rs:100:14 [INFO] [stdout] | [INFO] [stdout] 100 | unsafe { (*res).fai_mesh[fai_num][eta_id] } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 100 | unsafe { (&(*res).fai_mesh[fai_num])[eta_id] } [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/c_meshing.rs:100:14 [INFO] [stdout] | [INFO] [stdout] 100 | unsafe { (*res).fai_mesh[fai_num][eta_id] } [INFO] [stdout] | ^^---^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut MeshMat` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&Vec>` [INFO] [stdout] --> src/c_meshing.rs:100:14 [INFO] [stdout] | [INFO] [stdout] 100 | unsafe { (*res).fai_mesh[fai_num][eta_id] } [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 100 | unsafe { (&(*res).fai_mesh)[fai_num][eta_id] } [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `meshing` (bin "meshing") due to 4 previous errors; 5 warnings emitted [INFO] [stderr] error: could not compile `meshing` (lib test) due to 4 previous errors; 5 warnings emitted [INFO] running `Command { std: "docker" "inspect" "f2cde871d981638d313e54fc75379ea896d7b3f70bd4bf9d3eb0efdc2208e9e2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f2cde871d981638d313e54fc75379ea896d7b3f70bd4bf9d3eb0efdc2208e9e2", kill_on_drop: false }` [INFO] [stdout] f2cde871d981638d313e54fc75379ea896d7b3f70bd4bf9d3eb0efdc2208e9e2