[INFO] cloning repository https://github.com/FelixTheC/reasycheck [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/FelixTheC/reasycheck" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFelixTheC%2Freasycheck", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFelixTheC%2Freasycheck'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1a77c9aab206ee09dc7ba401e3a01ede5367f5d2 [INFO] linting FelixTheC/reasycheck against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFelixTheC%2Freasycheck" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/FelixTheC/reasycheck [INFO] finished tweaking git repo https://github.com/FelixTheC/reasycheck [INFO] tweaked toml for git repo https://github.com/FelixTheC/reasycheck written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/FelixTheC/reasycheck on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/FelixTheC/reasycheck 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" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded pyo3-macros-backend v0.19.2 [INFO] [stderr] Downloaded pyo3-build-config v0.19.2 [INFO] [stderr] Downloaded target-lexicon v0.12.11 [INFO] [stderr] Downloaded pyo3-macros v0.19.2 [INFO] [stderr] Downloaded pyo3-ffi v0.19.2 [INFO] [stderr] Downloaded pyo3 v0.19.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 90d85fd76df08d7490985e7f87491760887910bf826ce338d6db34fe11896464 [INFO] running `Command { std: "docker" "start" "-a" "90d85fd76df08d7490985e7f87491760887910bf826ce338d6db34fe11896464", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "90d85fd76df08d7490985e7f87491760887910bf826ce338d6db34fe11896464", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "90d85fd76df08d7490985e7f87491760887910bf826ce338d6db34fe11896464", kill_on_drop: false }` [INFO] [stdout] 90d85fd76df08d7490985e7f87491760887910bf826ce338d6db34fe11896464 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c546b6092ea7fb02eca8bd39deed7879bcc85fb1d3919c7a0947aec58cc05043 [INFO] running `Command { std: "docker" "start" "-a" "c546b6092ea7fb02eca8bd39deed7879bcc85fb1d3919c7a0947aec58cc05043", kill_on_drop: false }` [INFO] [stderr] Compiling target-lexicon v0.12.11 [INFO] [stderr] Compiling proc-macro2 v1.0.67 [INFO] [stderr] Compiling parking_lot_core v0.9.8 [INFO] [stderr] Checking smallvec v1.11.0 [INFO] [stderr] Checking unindent v0.1.11 [INFO] [stderr] Compiling indoc v1.0.9 [INFO] [stderr] Compiling pyo3-build-config v0.19.2 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling pyo3-ffi v0.19.2 [INFO] [stderr] Compiling pyo3 v0.19.2 [INFO] [stderr] Compiling pyo3-macros-backend v0.19.2 [INFO] [stderr] Compiling pyo3-macros v0.19.2 [INFO] [stderr] Checking reasycheck v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition name: `addr_of` [INFO] [stdout] --> src/limit_condition.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | pyo3::create_exception!(reasycheck, LimitError, PyBaseException); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `$crate::pyobject_native_type_info` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `$crate::pyobject_native_type_info` may come from an old version of the `pyo3` crate, try updating your dependency with `cargo update -p pyo3` [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 macro `$crate::pyobject_native_type_info` which comes from the expansion of the macro `pyo3::create_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `addr_of` [INFO] [stdout] --> src/limit_condition.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | pyo3::create_exception!(reasycheck, LimitError, PyBaseException); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `$crate::pyobject_native_type_info` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `$crate::pyobject_native_type_info` may come from an old version of the `pyo3` crate, try updating your dependency with `cargo update -p pyo3` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `$crate::pyobject_native_type_info` which comes from the expansion of the macro `pyo3::create_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `addr_of` [INFO] [stdout] --> src/limit_condition.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | pyo3::create_exception!(reasycheck, LimitError, PyBaseException); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `$crate::pyobject_native_type_info` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `$crate::pyobject_native_type_info` may come from an old version of the `pyo3` crate, try updating your dependency with `cargo update -p pyo3` [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 macro `$crate::pyobject_native_type_info` which comes from the expansion of the macro `pyo3::create_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `addr_of` [INFO] [stdout] --> src/limit_condition.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | pyo3::create_exception!(reasycheck, LimitError, PyBaseException); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `$crate::pyobject_native_type_info` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `$crate::pyobject_native_type_info` may come from an old version of the `pyo3` crate, try updating your dependency with `cargo update -p pyo3` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `$crate::pyobject_native_type_info` which comes from the expansion of the macro `pyo3::create_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `addr_of` [INFO] [stdout] --> src/length_condition.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pyo3::create_exception!(reasycheck, LengthError, PyBaseException); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `$crate::pyobject_native_type_info` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `$crate::pyobject_native_type_info` may come from an old version of the `pyo3` crate, try updating your dependency with `cargo update -p pyo3` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `$crate::pyobject_native_type_info` which comes from the expansion of the macro `pyo3::create_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `addr_of` [INFO] [stdout] --> src/length_condition.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pyo3::create_exception!(reasycheck, LengthError, PyBaseException); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `$crate::pyobject_native_type_info` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `$crate::pyobject_native_type_info` may come from an old version of the `pyo3` crate, try updating your dependency with `cargo update -p pyo3` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `$crate::pyobject_native_type_info` which comes from the expansion of the macro `pyo3::create_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `addr_of` [INFO] [stdout] --> src/length_condition.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pyo3::create_exception!(reasycheck, LengthError, PyBaseException); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `$crate::pyobject_native_type_info` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `$crate::pyobject_native_type_info` may come from an old version of the `pyo3` crate, try updating your dependency with `cargo update -p pyo3` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `$crate::pyobject_native_type_info` which comes from the expansion of the macro `pyo3::create_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `addr_of` [INFO] [stdout] --> src/length_condition.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pyo3::create_exception!(reasycheck, LengthError, PyBaseException); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `$crate::pyobject_native_type_info` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `$crate::pyobject_native_type_info` may come from an old version of the `pyo3` crate, try updating your dependency with `cargo update -p pyo3` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `$crate::pyobject_native_type_info` which comes from the expansion of the macro `pyo3::create_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `addr_of` [INFO] [stdout] --> src/is_close_condition.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pyo3::create_exception!(reasycheck, NotCloseEnoughError, PyBaseException); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `$crate::pyobject_native_type_info` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `$crate::pyobject_native_type_info` may come from an old version of the `pyo3` crate, try updating your dependency with `cargo update -p pyo3` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `$crate::pyobject_native_type_info` which comes from the expansion of the macro `pyo3::create_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `addr_of` [INFO] [stdout] --> src/is_close_condition.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pyo3::create_exception!(reasycheck, NotCloseEnoughError, PyBaseException); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `$crate::pyobject_native_type_info` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `$crate::pyobject_native_type_info` may come from an old version of the `pyo3` crate, try updating your dependency with `cargo update -p pyo3` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `$crate::pyobject_native_type_info` which comes from the expansion of the macro `pyo3::create_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::any::Any` [INFO] [stdout] --> src/check_type_condition.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::any::Any; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IntoPy` [INFO] [stdout] --> src/check_type_condition.rs:3:25 [INFO] [stdout] | [INFO] [stdout] 3 | use pyo3::{AsPyPointer, IntoPy, pyfunction, PyObject, PyResult, Python, PyTypeInfo}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `panic::catch_unwind` [INFO] [stdout] --> src/path_condition.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use panic::catch_unwind; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::any::Any` [INFO] [stdout] --> src/path_condition.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::any::Any; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Debug` [INFO] [stdout] --> src/path_condition.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fmt::Debug; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/path_condition.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PyResult` [INFO] [stdout] --> src/path_condition.rs:8:80 [INFO] [stdout] | [INFO] [stdout] 8 | use pyo3::{AsPyPointer, FromPyPointer, Py, PyAny, PyErr, pyfunction, PyObject, PyResult, Python, PyTypeInfo, ToPyObject}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PyGen_New` [INFO] [stdout] --> src/path_condition.rs:10:17 [INFO] [stdout] | [INFO] [stdout] 10 | use pyo3::ffi::{PyGen_New, PyIter_Next, PyObject_IsInstance}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: denote infinite loops with `loop { ... }` [INFO] [stdout] --> src/path_condition.rs:140:9 [INFO] [stdout] | [INFO] [stdout] 140 | while true { [INFO] [stdout] | ^^^^^^^^^^ help: use `loop` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(while_true)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `addr_of` [INFO] [stdout] --> src/is_close_condition.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pyo3::create_exception!(reasycheck, NotCloseEnoughError, PyBaseException); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `$crate::pyobject_native_type_info` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `$crate::pyobject_native_type_info` may come from an old version of the `pyo3` crate, try updating your dependency with `cargo update -p pyo3` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `$crate::pyobject_native_type_info` which comes from the expansion of the macro `pyo3::create_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `addr_of` [INFO] [stdout] --> src/is_close_condition.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pyo3::create_exception!(reasycheck, NotCloseEnoughError, PyBaseException); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `$crate::pyobject_native_type_info` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `$crate::pyobject_native_type_info` may come from an old version of the `pyo3` crate, try updating your dependency with `cargo update -p pyo3` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `$crate::pyobject_native_type_info` which comes from the expansion of the macro `pyo3::create_exception` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::any::Any` [INFO] [stdout] --> src/check_type_condition.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::any::Any; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IntoPy` [INFO] [stdout] --> src/check_type_condition.rs:3:25 [INFO] [stdout] | [INFO] [stdout] 3 | use pyo3::{AsPyPointer, IntoPy, pyfunction, PyObject, PyResult, Python, PyTypeInfo}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `panic::catch_unwind` [INFO] [stdout] --> src/path_condition.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use panic::catch_unwind; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::any::Any` [INFO] [stdout] --> src/path_condition.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::any::Any; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Debug` [INFO] [stdout] --> src/path_condition.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fmt::Debug; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/path_condition.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PyResult` [INFO] [stdout] --> src/path_condition.rs:8:80 [INFO] [stdout] | [INFO] [stdout] 8 | use pyo3::{AsPyPointer, FromPyPointer, Py, PyAny, PyErr, pyfunction, PyObject, PyResult, Python, PyTypeInfo, ToPyObject}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PyGen_New` [INFO] [stdout] --> src/path_condition.rs:10:17 [INFO] [stdout] | [INFO] [stdout] 10 | use pyo3::ffi::{PyGen_New, PyIter_Next, PyObject_IsInstance}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: denote infinite loops with `loop { ... }` [INFO] [stdout] --> src/path_condition.rs:140:9 [INFO] [stdout] | [INFO] [stdout] 140 | while true { [INFO] [stdout] | ^^^^^^^^^^ help: use `loop` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(while_true)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FromPyPointer` [INFO] [stdout] --> src/path_condition.rs:8:25 [INFO] [stdout] | [INFO] [stdout] 8 | use pyo3::{AsPyPointer, FromPyPointer, Py, PyAny, PyErr, pyfunction, PyObject, PyResult, Python, PyTypeInfo, ToPyObject}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handle_with` [INFO] [stdout] --> src/if_condition.rs:30:54 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn assert_if(_py: Python, condition: Py, handle_with: Option<&PyType>, message: Option<&str>) -> PyResult<()> { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle_with` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handle_with` [INFO] [stdout] --> src/if_not_condition.rs:29:58 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn assert_if_not(_py: Python, condition: Py, handle_with: Option<&PyType>, message: Option<&str>) -> PyResult<()> { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle_with` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `throw_error` is never read [INFO] [stdout] --> src/limit_condition.rs:25:27 [INFO] [stdout] | [INFO] [stdout] 25 | let mut throw_error = true; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handle_with` [INFO] [stdout] --> src/limit_condition.rs:55:28 [INFO] [stdout] | [INFO] [stdout] 55 | ... handle_with: Option<&PyType>, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle_with` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handle_with` [INFO] [stdout] --> src/length_condition.rs:76:22 [INFO] [stdout] | [INFO] [stdout] 76 | handle_with: Option<&PyType>, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle_with` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handle_with` [INFO] [stdout] --> src/is_close_condition.rs:104:25 [INFO] [stdout] | [INFO] [stdout] 104 | handle_with: Option<&PyType>, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle_with` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handle_with` [INFO] [stdout] --> src/check_type_condition.rs:58:81 [INFO] [stdout] | [INFO] [stdout] 58 | ...cted_type: PyObject, handle_with: Option<&PyType>, message: Option<&str>) -> PyResult<()> { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle_with` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `err_msg` is never read [INFO] [stdout] --> src/path_condition.rs:219:51 [INFO] [stdout] | [INFO] [stdout] 219 | let mut err_msg: String = "".to_string(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/length_condition.rs:42:24 [INFO] [stdout] | [INFO] [stdout] 42 | if !op.getattr(_py, "__call__").is_ok() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `op.getattr(_py, "__call__").is_err()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/length_condition.rs:58:47 [INFO] [stdout] | [INFO] [stdout] 58 | let pylist = PyList::new(_py, &[item]); [INFO] [stdout] | ^^^^^^^ help: change this to: `[item]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/path_condition.rs:174:5 [INFO] [stdout] | [INFO] [stdout] 174 | return Err(PyTypeError::new_err("Argument paths must be string")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] = note: `#[warn(clippy::needless_return)]` on by default [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 174 - return Err(PyTypeError::new_err("Argument paths must be string")); [INFO] [stdout] 174 + Err(PyTypeError::new_err("Argument paths must be string")) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/path_condition.rs:87:13 [INFO] [stdout] | [INFO] [stdout] 87 | / if mode != "raise" && mode != "return" { [INFO] [stdout] 88 | | return Err(PyValueError::new_err("execution_mode can only be `raise` or `return`")); [INFO] [stdout] 89 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] = note: `#[warn(clippy::collapsible_match)]` on by default [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 86 ~ Some(mode) [INFO] [stdout] 87 ~ if mode != "raise" && mode != "return" => { [INFO] [stdout] 88 | return Err(PyValueError::new_err("execution_mode can only be `raise` or `return`")); [INFO] [stdout] 89 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/path_condition.rs:180:13 [INFO] [stdout] | [INFO] [stdout] 180 | return Ok(None); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 180 - return Ok(None); [INFO] [stdout] 180 + Ok(None) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/path_condition.rs:187:13 [INFO] [stdout] | [INFO] [stdout] 187 | return Ok(Some(Py::from(result))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 187 - return Ok(Some(Py::from(result))); [INFO] [stdout] 187 + Ok(Some(Py::from(result))) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/path_condition.rs:189:16 [INFO] [stdout] | [INFO] [stdout] 189 | _ => { return Err(PyRuntimeError::new_err("Something went wrong.")); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 189 - _ => { return Err(PyRuntimeError::new_err("Something went wrong.")); } [INFO] [stdout] 189 + _ => { Err(PyRuntimeError::new_err("Something went wrong."))} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/path_condition.rs:203:17 [INFO] [stdout] | [INFO] [stdout] 203 | return Ok(None); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 203 - return Ok(None); [INFO] [stdout] 203 + Ok(None) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/path_condition.rs:210:17 [INFO] [stdout] | [INFO] [stdout] 210 | return Ok(Some(Py::from(result))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 210 - return Ok(Some(Py::from(result))); [INFO] [stdout] 210 + Ok(Some(Py::from(result))) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/path_condition.rs:212:20 [INFO] [stdout] | [INFO] [stdout] 212 | _ => { return Err(PyRuntimeError::new_err("Something went wrong.")); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 212 - _ => { return Err(PyRuntimeError::new_err("Something went wrong.")); } [INFO] [stdout] 212 + _ => { Err(PyRuntimeError::new_err("Something went wrong."))} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/path_condition.rs:228:25 [INFO] [stdout] | [INFO] [stdout] 228 | return Err(PyFileNotFoundError::new_err(err_msg)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 228 - return Err(PyFileNotFoundError::new_err(err_msg)); [INFO] [stdout] 228 + Err(PyFileNotFoundError::new_err(err_msg)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/path_condition.rs:231:25 [INFO] [stdout] | [INFO] [stdout] 231 | return Err(helper::check_handle_warning_with(handle_with, message)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 231 - return Err(helper::check_handle_warning_with(handle_with, message)); [INFO] [stdout] 231 + Err(helper::check_handle_warning_with(handle_with, message)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/path_condition.rs:247:17 [INFO] [stdout] | [INFO] [stdout] 247 | return Ok(Some(Py::from(result))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 247 - return Ok(Some(Py::from(result))); [INFO] [stdout] 247 + Ok(Some(Py::from(result))) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/path_condition.rs:249:20 [INFO] [stdout] | [INFO] [stdout] 249 | _ => { return Err(PyRuntimeError::new_err("Something went wrong.")); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 249 - _ => { return Err(PyRuntimeError::new_err("Something went wrong.")); } [INFO] [stdout] 249 + _ => { Err(PyRuntimeError::new_err("Something went wrong."))} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/path_condition.rs:256:5 [INFO] [stdout] | [INFO] [stdout] 256 | / return check_if_paths_exist(_py, [INFO] [stdout] 257 | | paths, [INFO] [stdout] 258 | | Option::from(PyAssertionError::new_err(()).get_type(_py)), [INFO] [stdout] 259 | | Option::from(""), [INFO] [stdout] 260 | | Option::from("raise")); [INFO] [stdout] | |______________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 256 ~ check_if_paths_exist(_py, [INFO] [stdout] 257 + paths, [INFO] [stdout] 258 + Option::from(PyAssertionError::new_err(()).get_type(_py)), [INFO] [stdout] 259 + Option::from(""), [INFO] [stdout] 260 ~ Option::from("raise")) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FromPyPointer` [INFO] [stdout] --> src/path_condition.rs:8:25 [INFO] [stdout] | [INFO] [stdout] 8 | use pyo3::{AsPyPointer, FromPyPointer, Py, PyAny, PyErr, pyfunction, PyObject, PyResult, Python, PyTypeInfo, ToPyObject}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handle_with` [INFO] [stdout] --> src/if_condition.rs:30:54 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn assert_if(_py: Python, condition: Py, handle_with: Option<&PyType>, message: Option<&str>) -> PyResult<()> { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle_with` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handle_with` [INFO] [stdout] --> src/if_not_condition.rs:29:58 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn assert_if_not(_py: Python, condition: Py, handle_with: Option<&PyType>, message: Option<&str>) -> PyResult<()> { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle_with` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `throw_error` is never read [INFO] [stdout] --> src/limit_condition.rs:25:27 [INFO] [stdout] | [INFO] [stdout] 25 | let mut throw_error = true; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handle_with` [INFO] [stdout] --> src/limit_condition.rs:55:28 [INFO] [stdout] | [INFO] [stdout] 55 | ... handle_with: Option<&PyType>, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle_with` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handle_with` [INFO] [stdout] --> src/length_condition.rs:76:22 [INFO] [stdout] | [INFO] [stdout] 76 | handle_with: Option<&PyType>, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle_with` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handle_with` [INFO] [stdout] --> src/is_close_condition.rs:104:25 [INFO] [stdout] | [INFO] [stdout] 104 | handle_with: Option<&PyType>, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle_with` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handle_with` [INFO] [stdout] --> src/check_type_condition.rs:58:81 [INFO] [stdout] | [INFO] [stdout] 58 | ...cted_type: PyObject, handle_with: Option<&PyType>, message: Option<&str>) -> PyResult<()> { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle_with` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `err_msg` is never read [INFO] [stdout] --> src/path_condition.rs:219:51 [INFO] [stdout] | [INFO] [stdout] 219 | let mut err_msg: String = "".to_string(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/length_condition.rs:42:24 [INFO] [stdout] | [INFO] [stdout] 42 | if !op.getattr(_py, "__call__").is_ok() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `op.getattr(_py, "__call__").is_err()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/length_condition.rs:58:47 [INFO] [stdout] | [INFO] [stdout] 58 | let pylist = PyList::new(_py, &[item]); [INFO] [stdout] | ^^^^^^^ help: change this to: `[item]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/path_condition.rs:174:5 [INFO] [stdout] | [INFO] [stdout] 174 | return Err(PyTypeError::new_err("Argument paths must be string")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] = note: `#[warn(clippy::needless_return)]` on by default [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 174 - return Err(PyTypeError::new_err("Argument paths must be string")); [INFO] [stdout] 174 + Err(PyTypeError::new_err("Argument paths must be string")) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/path_condition.rs:87:13 [INFO] [stdout] | [INFO] [stdout] 87 | / if mode != "raise" && mode != "return" { [INFO] [stdout] 88 | | return Err(PyValueError::new_err("execution_mode can only be `raise` or `return`")); [INFO] [stdout] 89 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] = note: `#[warn(clippy::collapsible_match)]` on by default [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 86 ~ Some(mode) [INFO] [stdout] 87 ~ if mode != "raise" && mode != "return" => { [INFO] [stdout] 88 | return Err(PyValueError::new_err("execution_mode can only be `raise` or `return`")); [INFO] [stdout] 89 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/path_condition.rs:180:13 [INFO] [stdout] | [INFO] [stdout] 180 | return Ok(None); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 180 - return Ok(None); [INFO] [stdout] 180 + Ok(None) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/path_condition.rs:187:13 [INFO] [stdout] | [INFO] [stdout] 187 | return Ok(Some(Py::from(result))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 187 - return Ok(Some(Py::from(result))); [INFO] [stdout] 187 + Ok(Some(Py::from(result))) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/path_condition.rs:189:16 [INFO] [stdout] | [INFO] [stdout] 189 | _ => { return Err(PyRuntimeError::new_err("Something went wrong.")); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 189 - _ => { return Err(PyRuntimeError::new_err("Something went wrong.")); } [INFO] [stdout] 189 + _ => { Err(PyRuntimeError::new_err("Something went wrong."))} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/path_condition.rs:203:17 [INFO] [stdout] | [INFO] [stdout] 203 | return Ok(None); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 203 - return Ok(None); [INFO] [stdout] 203 + Ok(None) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/path_condition.rs:210:17 [INFO] [stdout] | [INFO] [stdout] 210 | return Ok(Some(Py::from(result))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 210 - return Ok(Some(Py::from(result))); [INFO] [stdout] 210 + Ok(Some(Py::from(result))) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/path_condition.rs:212:20 [INFO] [stdout] | [INFO] [stdout] 212 | _ => { return Err(PyRuntimeError::new_err("Something went wrong.")); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 212 - _ => { return Err(PyRuntimeError::new_err("Something went wrong.")); } [INFO] [stdout] 212 + _ => { Err(PyRuntimeError::new_err("Something went wrong."))} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/path_condition.rs:228:25 [INFO] [stdout] | [INFO] [stdout] 228 | return Err(PyFileNotFoundError::new_err(err_msg)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 228 - return Err(PyFileNotFoundError::new_err(err_msg)); [INFO] [stdout] 228 + Err(PyFileNotFoundError::new_err(err_msg)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/path_condition.rs:231:25 [INFO] [stdout] | [INFO] [stdout] 231 | return Err(helper::check_handle_warning_with(handle_with, message)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 231 - return Err(helper::check_handle_warning_with(handle_with, message)); [INFO] [stdout] 231 + Err(helper::check_handle_warning_with(handle_with, message)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/path_condition.rs:247:17 [INFO] [stdout] | [INFO] [stdout] 247 | return Ok(Some(Py::from(result))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 247 - return Ok(Some(Py::from(result))); [INFO] [stdout] 247 + Ok(Some(Py::from(result))) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/path_condition.rs:249:20 [INFO] [stdout] | [INFO] [stdout] 249 | _ => { return Err(PyRuntimeError::new_err("Something went wrong.")); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 249 - _ => { return Err(PyRuntimeError::new_err("Something went wrong.")); } [INFO] [stdout] 249 + _ => { Err(PyRuntimeError::new_err("Something went wrong."))} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/path_condition.rs:256:5 [INFO] [stdout] | [INFO] [stdout] 256 | / return check_if_paths_exist(_py, [INFO] [stdout] 257 | | paths, [INFO] [stdout] 258 | | Option::from(PyAssertionError::new_err(()).get_type(_py)), [INFO] [stdout] 259 | | Option::from(""), [INFO] [stdout] 260 | | Option::from("raise")); [INFO] [stdout] | |______________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 256 ~ check_if_paths_exist(_py, [INFO] [stdout] 257 + paths, [INFO] [stdout] 258 + Option::from(PyAssertionError::new_err(()).get_type(_py)), [INFO] [stdout] 259 + Option::from(""), [INFO] [stdout] 260 ~ Option::from("raise")) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 15.98s [INFO] running `Command { std: "docker" "inspect" "c546b6092ea7fb02eca8bd39deed7879bcc85fb1d3919c7a0947aec58cc05043", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c546b6092ea7fb02eca8bd39deed7879bcc85fb1d3919c7a0947aec58cc05043", kill_on_drop: false }` [INFO] [stdout] c546b6092ea7fb02eca8bd39deed7879bcc85fb1d3919c7a0947aec58cc05043