[INFO] cloning repository https://github.com/orgTestCodacy11KRepos110MB/repo-3084-edgedb [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/orgTestCodacy11KRepos110MB/repo-3084-edgedb" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2ForgTestCodacy11KRepos110MB%2Frepo-3084-edgedb", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2ForgTestCodacy11KRepos110MB%2Frepo-3084-edgedb'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 333c5029877d25025565e36d0c7ab693740d6b53 [INFO] checking orgTestCodacy11KRepos110MB/repo-3084-edgedb against try#9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869 for pr-129249 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2ForgTestCodacy11KRepos110MB%2Frepo-3084-edgedb" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/orgTestCodacy11KRepos110MB/repo-3084-edgedb on toolchain 9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/orgTestCodacy11KRepos110MB/repo-3084-edgedb [INFO] finished tweaking git repo https://github.com/orgTestCodacy11KRepos110MB/repo-3084-edgedb [INFO] tweaked toml for git repo https://github.com/orgTestCodacy11KRepos110MB/repo-3084-edgedb written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/orgTestCodacy11KRepos110MB/repo-3084-edgedb 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" "+9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] be9fb643f0a845a87bd7092fbe08b096033960f30d6e215647ca223bc059aa9e [INFO] running `Command { std: "docker" "start" "-a" "be9fb643f0a845a87bd7092fbe08b096033960f30d6e215647ca223bc059aa9e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "be9fb643f0a845a87bd7092fbe08b096033960f30d6e215647ca223bc059aa9e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "be9fb643f0a845a87bd7092fbe08b096033960f30d6e215647ca223bc059aa9e", kill_on_drop: false }` [INFO] [stdout] be9fb643f0a845a87bd7092fbe08b096033960f30d6e215647ca223bc059aa9e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2475db3fb852e597bb48bad8b0fadc65f8050167d8483820f890d5a7929548c5 [INFO] running `Command { std: "docker" "start" "-a" "2475db3fb852e597bb48bad8b0fadc65f8050167d8483820f890d5a7929548c5", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.90 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling doc-comment v0.3.3 [INFO] [stderr] Compiling unicode-segmentation v1.9.0 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Checking subtle v2.4.1 [INFO] [stderr] Checking bytes v1.1.0 [INFO] [stderr] Compiling libc v0.2.121 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking unchecked-index v0.2.2 [INFO] [stderr] Checking cpufeatures v0.2.2 [INFO] [stderr] Checking unicode-width v0.1.9 [INFO] [stderr] Checking base32 v0.4.0 [INFO] [stderr] Compiling cpython v0.7.0 [INFO] [stderr] Compiling paste v1.0.7 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Checking unreachable v1.0.0 [INFO] [stderr] Checking ascii v0.9.3 [INFO] [stderr] Checking uuid v0.8.2 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Checking ansi_term v0.12.1 [INFO] [stderr] Checking diff v0.1.12 [INFO] [stderr] Checking edgedb-errors v0.1.0 (https://github.com/edgedb/edgedb-rust#dfdeb7f2) [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Checking pretty_assertions v1.2.0 [INFO] [stderr] Checking combine v4.6.3 [INFO] [stderr] Checking twoway v0.2.2 [INFO] [stderr] Checking combine v3.8.1 [INFO] [stderr] Compiling quote v1.0.17 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling regex v1.5.5 [INFO] [stderr] Checking block-buffer v0.10.2 [INFO] [stderr] Checking crypto-common v0.1.3 [INFO] [stderr] Checking digest v0.10.3 [INFO] [stderr] Checking sha2 v0.10.2 [INFO] [stderr] Checking blake2 v0.10.4 [INFO] [stderr] Checking bigdecimal v0.3.0 [INFO] [stderr] Compiling python3-sys v0.7.0 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling snafu-derive v0.7.0 [INFO] [stderr] Checking thiserror v1.0.30 [INFO] [stderr] Checking edb-graphql-parser v0.3.0 (https://github.com/edgedb/graphql-parser#49f0e014) [INFO] [stderr] Checking snafu v0.7.0 [INFO] [stderr] Checking edgedb-protocol v0.2.0 (https://github.com/edgedb/edgedb-rust#dfdeb7f2) [INFO] [stderr] Checking edgeql-parser v0.1.0 (/opt/rustwide/workdir/edb/edgeql-parser) [INFO] [stderr] Checking edgeql-rust v0.1.0 (/opt/rustwide/workdir/edb/edgeql-rust) [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> edb/edgeql-rust/src/tokenizer.rs:170:9 [INFO] [stdout] | [INFO] [stdout] 167 | pub struct TokenInfo { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 170 | pub value: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this conversion is useless `Vec` to `Vec` [INFO] [stdout] --> edb/edgeql-rust/src/tokenizer.rs:678:19 [INFO] [stdout] | [INFO] [stdout] 678 | "b" => Ok(_unquote_bytes(&value[2..value.len()-1])?.into()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(self_type_conversion)]` 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] --> edb/edgeql-rust/src/tokenizer.rs:41:1 [INFO] [stdout] | [INFO] [stdout] 41 | / py_class!(pub class Token |py| { [INFO] [stdout] 42 | | data _kind: PyString; [INFO] [stdout] 43 | | data _text: PyString; [INFO] [stdout] 44 | | data _value: PyObject; [INFO] [stdout] ... | [INFO] [stdout] 85 | | }); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | `Token` is not local [INFO] [stdout] | |__`PythonObjectWithTypeObject` is not local [INFO] [stdout] | move the `impl` block outside of this associated function `create_instance` [INFO] [stdout] | [INFO] [stdout] = note: the macro `$crate::py_class_impl` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the macro `$crate::py_class_impl` may come from an old version of the `cpython` crate, try updating your dependency with `cargo update -p cpython` [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: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the macro `$crate::py_class_impl` which comes from the expansion of the macro `py_class` (in Nightly builds, run with -Z macro-backtrace for more info) [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] --> edb/edgeql-rust/src/tokenizer.rs:41:1 [INFO] [stdout] | [INFO] [stdout] 41 | / py_class!(pub class Token |py| { [INFO] [stdout] 42 | | data _kind: PyString; [INFO] [stdout] 43 | | data _text: PyString; [INFO] [stdout] 44 | | data _value: PyObject; [INFO] [stdout] ... | [INFO] [stdout] 85 | | }); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | `Token` is not local [INFO] [stdout] | |__`PythonObjectFromPyClassMacro` is not local [INFO] [stdout] | move the `impl` block outside of this associated function `create_instance` [INFO] [stdout] | [INFO] [stdout] = note: the macro `$crate::py_class_impl` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the macro `$crate::py_class_impl` may come from an old version of the `cpython` crate, try updating your dependency with `cargo update -p cpython` [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: this warning originates in the macro `$crate::py_class_impl` which comes from the expansion of the macro `py_class` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> edb/edgeql-rust/src/tokenizer.rs:234:27 [INFO] [stdout] | [INFO] [stdout] 234 | let tokens = unsafe { TOKENS.as_ref().expect("module initialized") }; [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> edb/edgeql-rust/src/tokenizer.rs:651:27 [INFO] [stdout] | [INFO] [stdout] 651 | let tokens = unsafe { TOKENS.as_ref().expect("module initialized") }; [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [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] --> edb/edgeql-rust/src/pynormalize.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | / py_class!(pub class Entry |py| { [INFO] [stdout] 19 | | data _key: PyBytes; [INFO] [stdout] 20 | | data _processed_source: String; [INFO] [stdout] 21 | | data _tokens: PyList; [INFO] [stdout] ... | [INFO] [stdout] 80 | | }); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | `Entry` is not local [INFO] [stdout] | |__`PythonObjectWithTypeObject` is not local [INFO] [stdout] | move the `impl` block outside of this associated function `create_instance` [INFO] [stdout] | [INFO] [stdout] = note: the macro `$crate::py_class_impl` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the macro `$crate::py_class_impl` may come from an old version of the `cpython` crate, try updating your dependency with `cargo update -p cpython` [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: this warning originates in the macro `$crate::py_class_impl` which comes from the expansion of the macro `py_class` (in Nightly builds, run with -Z macro-backtrace for more info) [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] --> edb/edgeql-rust/src/pynormalize.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | / py_class!(pub class Entry |py| { [INFO] [stdout] 19 | | data _key: PyBytes; [INFO] [stdout] 20 | | data _processed_source: String; [INFO] [stdout] 21 | | data _tokens: PyList; [INFO] [stdout] ... | [INFO] [stdout] 80 | | }); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | `Entry` is not local [INFO] [stdout] | |__`PythonObjectFromPyClassMacro` is not local [INFO] [stdout] | move the `impl` block outside of this associated function `create_instance` [INFO] [stdout] | [INFO] [stdout] = note: the macro `$crate::py_class_impl` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the macro `$crate::py_class_impl` may come from an old version of the `cpython` crate, try updating your dependency with `cargo update -p cpython` [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: this warning originates in the macro `$crate::py_class_impl` which comes from the expansion of the macro `py_class` (in Nightly builds, run with -Z macro-backtrace for more info) [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] --> edb/edgeql-rust/src/hash.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | / py_class!(pub class Hasher |py| { [INFO] [stdout] 13 | | data _hasher: RefCell>; [INFO] [stdout] 14 | | @staticmethod [INFO] [stdout] 15 | | def start_migration(parent_id: &PyString) -> PyResult { [INFO] [stdout] ... | [INFO] [stdout] 42 | | }); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | `Hasher` is not local [INFO] [stdout] | |__`PythonObjectWithTypeObject` is not local [INFO] [stdout] | move the `impl` block outside of this associated function `create_instance` [INFO] [stdout] | [INFO] [stdout] = note: the macro `$crate::py_class_impl` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the macro `$crate::py_class_impl` may come from an old version of the `cpython` crate, try updating your dependency with `cargo update -p cpython` [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: this warning originates in the macro `$crate::py_class_impl` which comes from the expansion of the macro `py_class` (in Nightly builds, run with -Z macro-backtrace for more info) [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] --> edb/edgeql-rust/src/hash.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | / py_class!(pub class Hasher |py| { [INFO] [stdout] 13 | | data _hasher: RefCell>; [INFO] [stdout] 14 | | @staticmethod [INFO] [stdout] 15 | | def start_migration(parent_id: &PyString) -> PyResult { [INFO] [stdout] ... | [INFO] [stdout] 42 | | }); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | `Hasher` is not local [INFO] [stdout] | |__`PythonObjectFromPyClassMacro` is not local [INFO] [stdout] | move the `impl` block outside of this associated function `create_instance` [INFO] [stdout] | [INFO] [stdout] = note: the macro `$crate::py_class_impl` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the macro `$crate::py_class_impl` may come from an old version of the `cpython` crate, try updating your dependency with `cargo update -p cpython` [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: this warning originates in the macro `$crate::py_class_impl` which comes from the expansion of the macro `py_class` (in Nightly builds, run with -Z macro-backtrace for more info) [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] --> edb/edgeql-rust/src/position.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | / py_class!(pub class SourcePoint |py| { [INFO] [stdout] 9 | | data _position: InflatedPos; [INFO] [stdout] 10 | | @classmethod def from_offsets(_cls, data: PyBytes, offsets: PyObject) [INFO] [stdout] 11 | | -> PyResult [INFO] [stdout] ... | [INFO] [stdout] 41 | | }); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | `SourcePoint` is not local [INFO] [stdout] | |__`PythonObjectWithTypeObject` is not local [INFO] [stdout] | move the `impl` block outside of this associated function `create_instance` [INFO] [stdout] | [INFO] [stdout] = note: the macro `$crate::py_class_impl` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the macro `$crate::py_class_impl` may come from an old version of the `cpython` crate, try updating your dependency with `cargo update -p cpython` [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: this warning originates in the macro `$crate::py_class_impl` which comes from the expansion of the macro `py_class` (in Nightly builds, run with -Z macro-backtrace for more info) [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] --> edb/edgeql-rust/src/position.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | / py_class!(pub class SourcePoint |py| { [INFO] [stdout] 9 | | data _position: InflatedPos; [INFO] [stdout] 10 | | @classmethod def from_offsets(_cls, data: PyBytes, offsets: PyObject) [INFO] [stdout] 11 | | -> PyResult [INFO] [stdout] ... | [INFO] [stdout] 41 | | }); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | `SourcePoint` is not local [INFO] [stdout] | |__`PythonObjectFromPyClassMacro` is not local [INFO] [stdout] | move the `impl` block outside of this associated function `create_instance` [INFO] [stdout] | [INFO] [stdout] = note: the macro `$crate::py_class_impl` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the macro `$crate::py_class_impl` may come from an old version of the `cpython` crate, try updating your dependency with `cargo update -p cpython` [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: this warning originates in the macro `$crate::py_class_impl` which comes from the expansion of the macro `py_class` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `edgeql-rust` (lib) due to 1 previous error; 11 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> edb/edgeql-rust/src/tokenizer.rs:170:9 [INFO] [stdout] | [INFO] [stdout] 167 | pub struct TokenInfo { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 170 | pub value: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this conversion is useless `Vec` to `Vec` [INFO] [stdout] --> edb/edgeql-rust/src/tokenizer.rs:678:19 [INFO] [stdout] | [INFO] [stdout] 678 | "b" => Ok(_unquote_bytes(&value[2..value.len()-1])?.into()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(self_type_conversion)]` 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] --> edb/edgeql-rust/src/tokenizer.rs:41:1 [INFO] [stdout] | [INFO] [stdout] 41 | / py_class!(pub class Token |py| { [INFO] [stdout] 42 | | data _kind: PyString; [INFO] [stdout] 43 | | data _text: PyString; [INFO] [stdout] 44 | | data _value: PyObject; [INFO] [stdout] ... | [INFO] [stdout] 85 | | }); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | `Token` is not local [INFO] [stdout] | |__`PythonObjectWithTypeObject` is not local [INFO] [stdout] | move the `impl` block outside of this associated function `create_instance` [INFO] [stdout] | [INFO] [stdout] = note: the macro `$crate::py_class_impl` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the macro `$crate::py_class_impl` may come from an old version of the `cpython` crate, try updating your dependency with `cargo update -p cpython` [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: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the macro `$crate::py_class_impl` which comes from the expansion of the macro `py_class` (in Nightly builds, run with -Z macro-backtrace for more info) [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] --> edb/edgeql-rust/src/tokenizer.rs:41:1 [INFO] [stdout] | [INFO] [stdout] 41 | / py_class!(pub class Token |py| { [INFO] [stdout] 42 | | data _kind: PyString; [INFO] [stdout] 43 | | data _text: PyString; [INFO] [stdout] 44 | | data _value: PyObject; [INFO] [stdout] ... | [INFO] [stdout] 85 | | }); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | `Token` is not local [INFO] [stdout] | |__`PythonObjectFromPyClassMacro` is not local [INFO] [stdout] | move the `impl` block outside of this associated function `create_instance` [INFO] [stdout] | [INFO] [stdout] = note: the macro `$crate::py_class_impl` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the macro `$crate::py_class_impl` may come from an old version of the `cpython` crate, try updating your dependency with `cargo update -p cpython` [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: this warning originates in the macro `$crate::py_class_impl` which comes from the expansion of the macro `py_class` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> edb/edgeql-rust/src/tokenizer.rs:234:27 [INFO] [stdout] | [INFO] [stdout] 234 | let tokens = unsafe { TOKENS.as_ref().expect("module initialized") }; [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> edb/edgeql-rust/src/tokenizer.rs:651:27 [INFO] [stdout] | [INFO] [stdout] 651 | let tokens = unsafe { TOKENS.as_ref().expect("module initialized") }; [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [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] --> edb/edgeql-rust/src/pynormalize.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | / py_class!(pub class Entry |py| { [INFO] [stdout] 19 | | data _key: PyBytes; [INFO] [stdout] 20 | | data _processed_source: String; [INFO] [stdout] 21 | | data _tokens: PyList; [INFO] [stdout] ... | [INFO] [stdout] 80 | | }); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | `Entry` is not local [INFO] [stdout] | |__`PythonObjectWithTypeObject` is not local [INFO] [stdout] | move the `impl` block outside of this associated function `create_instance` [INFO] [stdout] | [INFO] [stdout] = note: the macro `$crate::py_class_impl` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the macro `$crate::py_class_impl` may come from an old version of the `cpython` crate, try updating your dependency with `cargo update -p cpython` [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: this warning originates in the macro `$crate::py_class_impl` which comes from the expansion of the macro `py_class` (in Nightly builds, run with -Z macro-backtrace for more info) [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] --> edb/edgeql-rust/src/pynormalize.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | / py_class!(pub class Entry |py| { [INFO] [stdout] 19 | | data _key: PyBytes; [INFO] [stdout] 20 | | data _processed_source: String; [INFO] [stdout] 21 | | data _tokens: PyList; [INFO] [stdout] ... | [INFO] [stdout] 80 | | }); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | `Entry` is not local [INFO] [stdout] | |__`PythonObjectFromPyClassMacro` is not local [INFO] [stdout] | move the `impl` block outside of this associated function `create_instance` [INFO] [stdout] | [INFO] [stdout] = note: the macro `$crate::py_class_impl` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the macro `$crate::py_class_impl` may come from an old version of the `cpython` crate, try updating your dependency with `cargo update -p cpython` [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: this warning originates in the macro `$crate::py_class_impl` which comes from the expansion of the macro `py_class` (in Nightly builds, run with -Z macro-backtrace for more info) [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] --> edb/edgeql-rust/src/hash.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | / py_class!(pub class Hasher |py| { [INFO] [stdout] 13 | | data _hasher: RefCell>; [INFO] [stdout] 14 | | @staticmethod [INFO] [stdout] 15 | | def start_migration(parent_id: &PyString) -> PyResult { [INFO] [stdout] ... | [INFO] [stdout] 42 | | }); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | `Hasher` is not local [INFO] [stdout] | |__`PythonObjectWithTypeObject` is not local [INFO] [stdout] | move the `impl` block outside of this associated function `create_instance` [INFO] [stdout] | [INFO] [stdout] = note: the macro `$crate::py_class_impl` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the macro `$crate::py_class_impl` may come from an old version of the `cpython` crate, try updating your dependency with `cargo update -p cpython` [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: this warning originates in the macro `$crate::py_class_impl` which comes from the expansion of the macro `py_class` (in Nightly builds, run with -Z macro-backtrace for more info) [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] --> edb/edgeql-rust/src/hash.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | / py_class!(pub class Hasher |py| { [INFO] [stdout] 13 | | data _hasher: RefCell>; [INFO] [stdout] 14 | | @staticmethod [INFO] [stdout] 15 | | def start_migration(parent_id: &PyString) -> PyResult { [INFO] [stdout] ... | [INFO] [stdout] 42 | | }); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | `Hasher` is not local [INFO] [stdout] | |__`PythonObjectFromPyClassMacro` is not local [INFO] [stdout] | move the `impl` block outside of this associated function `create_instance` [INFO] [stdout] | [INFO] [stdout] = note: the macro `$crate::py_class_impl` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the macro `$crate::py_class_impl` may come from an old version of the `cpython` crate, try updating your dependency with `cargo update -p cpython` [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: this warning originates in the macro `$crate::py_class_impl` which comes from the expansion of the macro `py_class` (in Nightly builds, run with -Z macro-backtrace for more info) [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] --> edb/edgeql-rust/src/position.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | / py_class!(pub class SourcePoint |py| { [INFO] [stdout] 9 | | data _position: InflatedPos; [INFO] [stdout] 10 | | @classmethod def from_offsets(_cls, data: PyBytes, offsets: PyObject) [INFO] [stdout] 11 | | -> PyResult [INFO] [stdout] ... | [INFO] [stdout] 41 | | }); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | `SourcePoint` is not local [INFO] [stdout] | |__`PythonObjectWithTypeObject` is not local [INFO] [stdout] | move the `impl` block outside of this associated function `create_instance` [INFO] [stdout] | [INFO] [stdout] = note: the macro `$crate::py_class_impl` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the macro `$crate::py_class_impl` may come from an old version of the `cpython` crate, try updating your dependency with `cargo update -p cpython` [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: this warning originates in the macro `$crate::py_class_impl` which comes from the expansion of the macro `py_class` (in Nightly builds, run with -Z macro-backtrace for more info) [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] --> edb/edgeql-rust/src/position.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | / py_class!(pub class SourcePoint |py| { [INFO] [stdout] 9 | | data _position: InflatedPos; [INFO] [stdout] 10 | | @classmethod def from_offsets(_cls, data: PyBytes, offsets: PyObject) [INFO] [stdout] 11 | | -> PyResult [INFO] [stdout] ... | [INFO] [stdout] 41 | | }); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | `SourcePoint` is not local [INFO] [stdout] | |__`PythonObjectFromPyClassMacro` is not local [INFO] [stdout] | move the `impl` block outside of this associated function `create_instance` [INFO] [stdout] | [INFO] [stdout] = note: the macro `$crate::py_class_impl` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the macro `$crate::py_class_impl` may come from an old version of the `cpython` crate, try updating your dependency with `cargo update -p cpython` [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: this warning originates in the macro `$crate::py_class_impl` which comes from the expansion of the macro `py_class` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `edgeql-rust` (lib test) due to 1 previous error; 11 warnings emitted [INFO] running `Command { std: "docker" "inspect" "2475db3fb852e597bb48bad8b0fadc65f8050167d8483820f890d5a7929548c5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2475db3fb852e597bb48bad8b0fadc65f8050167d8483820f890d5a7929548c5", kill_on_drop: false }` [INFO] [stdout] 2475db3fb852e597bb48bad8b0fadc65f8050167d8483820f890d5a7929548c5