[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] testing orgTestCodacy11KRepos110MB/repo-3084-edgedb against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2ForgTestCodacy11KRepos110MB%2Frepo-3084-edgedb" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/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-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/orgTestCodacy11KRepos110MB/repo-3084-edgedb on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "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] Updating git repository `https://github.com/edgedb/edgedb-rust` [INFO] [stderr] Updating git repository `https://github.com/edgedb/graphql-parser` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded python3-sys v0.7.0 [INFO] [stderr] Downloaded cpython v0.7.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 72313f4f830770614617c3606da436308029fa1a6ccc4b24f9b717757952e19f [INFO] running `Command { std: "docker" "start" "-a" "72313f4f830770614617c3606da436308029fa1a6ccc4b24f9b717757952e19f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "72313f4f830770614617c3606da436308029fa1a6ccc4b24f9b717757952e19f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "72313f4f830770614617c3606da436308029fa1a6ccc4b24f9b717757952e19f", kill_on_drop: false }` [INFO] [stdout] 72313f4f830770614617c3606da436308029fa1a6ccc4b24f9b717757952e19f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 565189e7e192e5a62f9f67f3de1400b19121d0c61f6ae11f6c9aaa3baa670b1e [INFO] running `Command { std: "docker" "start" "-a" "565189e7e192e5a62f9f67f3de1400b19121d0c61f6ae11f6c9aaa3baa670b1e", 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 proc-macro2 v1.0.36 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling syn v1.0.90 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Compiling libc v0.2.121 [INFO] [stderr] Compiling doc-comment v0.3.3 [INFO] [stderr] Compiling unicode-segmentation v1.9.0 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling cpython v0.7.0 [INFO] [stderr] Compiling unreachable v1.0.0 [INFO] [stderr] Compiling paste v1.0.7 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling cpufeatures v0.2.2 [INFO] [stderr] Compiling unchecked-index v0.2.2 [INFO] [stderr] Compiling ascii v0.9.3 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling unicode-width v0.1.9 [INFO] [stderr] Compiling base32 v0.4.0 [INFO] [stderr] Compiling edgedb-errors v0.1.0 (https://github.com/edgedb/edgedb-rust#dfdeb7f2) [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling combine v3.8.1 [INFO] [stderr] Compiling twoway v0.2.2 [INFO] [stderr] Compiling combine v4.6.3 [INFO] [stderr] Compiling quote v1.0.17 [INFO] [stderr] Compiling regex v1.5.5 [INFO] [stderr] Compiling crypto-common v0.1.3 [INFO] [stderr] Compiling block-buffer v0.10.2 [INFO] [stderr] Compiling digest v0.10.3 [INFO] [stderr] Compiling sha2 v0.10.2 [INFO] [stderr] Compiling blake2 v0.10.4 [INFO] [stderr] Compiling 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] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling edb-graphql-parser v0.3.0 (https://github.com/edgedb/graphql-parser#49f0e014) [INFO] [stderr] Compiling snafu v0.7.0 [INFO] [stderr] Compiling edgedb-protocol v0.2.0 (https://github.com/edgedb/edgedb-rust#dfdeb7f2) [INFO] [stderr] Compiling edgeql-parser v0.1.0 (/opt/rustwide/workdir/edb/edgeql-parser) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> edb/edgeql-parser/src/tokenizer.rs:150:19 [INFO] [stdout] | [INFO] [stdout] 150 | pub fn new(s: &str) -> TokenStream { [INFO] [stdout] | ^^^^ ^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 150 | pub fn new(s: &str) -> TokenStream<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> edb/edgeql-parser/src/tokenizer.rs:168:22 [INFO] [stdout] | [INFO] [stdout] 168 | pub fn new_at(s: &str, position: Pos) -> TokenStream { [INFO] [stdout] | ^^^^ ^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 168 | pub fn new_at(s: &str, position: Pos) -> TokenStream<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> edb/edgeql-parser/src/helpers.rs:23:22 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn quote_name(s: &str) -> Cow { [INFO] [stdout] | ^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 23 | pub fn quote_name(s: &str) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling graphql-rewrite v0.1.0 (/opt/rustwide/workdir/edb/graphql-rewrite) [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> edb/graphql-rewrite/src/pyentry.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | / py_class!(pub class Entry |py| { [INFO] [stdout] 16 | | data _key: PyString; [INFO] [stdout] 17 | | data _key_vars: PyList; [INFO] [stdout] 18 | | data _variables: PyDict; [INFO] [stdout] ... | [INFO] [stdout] 146 | | }); [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: `#[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/graphql-rewrite/src/pyentry.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | / py_class!(pub class Entry |py| { [INFO] [stdout] 16 | | data _key: PyString; [INFO] [stdout] 17 | | data _key_vars: PyList; [INFO] [stdout] 18 | | data _variables: PyDict; [INFO] [stdout] ... | [INFO] [stdout] 146 | | }); [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: hiding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> edb/graphql-rewrite/src/token_vec.rs:12:54 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new(tokens: &'a Vec<(Token<'a>, Pos)>) -> TokenVec { [INFO] [stdout] | -- -- ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the lifetime is named here [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new(tokens: &'a Vec<(Token<'a>, Pos)>) -> TokenVec<'a> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding or eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> edb/graphql-rewrite/src/token_vec.rs:19:31 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn drain<'x>(&'x mut self, n: usize) [INFO] [stdout] | -- the lifetime is named here [INFO] [stdout] 19 | -> impl Iterator + 'x [INFO] [stdout] | ^^^^^^^^^^^^^ -- the same lifetime is named here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is hidden here [INFO] [stdout] | the same lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'x` [INFO] [stdout] | [INFO] [stdout] 19 | -> impl Iterator, Pos)> + 'x [INFO] [stdout] | ++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding or eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> edb/graphql-rewrite/src/token_vec.rs:27:31 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn drain_to<'x>(&'x mut self, end: usize) [INFO] [stdout] | -- the lifetime is named here [INFO] [stdout] 27 | -> impl Iterator + 'x [INFO] [stdout] | ^^^^^^^^^^^^^ -- the same lifetime is named here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is hidden here [INFO] [stdout] | the same lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'x` [INFO] [stdout] | [INFO] [stdout] 27 | -> impl Iterator, Pos)> + 'x [INFO] [stdout] | ++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling 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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> 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 [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)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [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] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.16s [INFO] running `Command { std: "docker" "inspect" "565189e7e192e5a62f9f67f3de1400b19121d0c61f6ae11f6c9aaa3baa670b1e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "565189e7e192e5a62f9f67f3de1400b19121d0c61f6ae11f6c9aaa3baa670b1e", kill_on_drop: false }` [INFO] [stdout] 565189e7e192e5a62f9f67f3de1400b19121d0c61f6ae11f6c9aaa3baa670b1e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 56e41c450e58bad8229c39cd175439549349f535fd9aa51878d9f624980be711 [INFO] running `Command { std: "docker" "start" "-a" "56e41c450e58bad8229c39cd175439549349f535fd9aa51878d9f624980be711", 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 ansi_term v0.12.1 [INFO] [stderr] Compiling diff v0.1.12 [INFO] [stderr] Compiling edgeql-parser v0.1.0 (/opt/rustwide/workdir/edb/edgeql-parser) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> edb/edgeql-parser/src/tokenizer.rs:150:19 [INFO] [stdout] | [INFO] [stdout] 150 | pub fn new(s: &str) -> TokenStream { [INFO] [stdout] | ^^^^ ^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 150 | pub fn new(s: &str) -> TokenStream<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> edb/edgeql-parser/src/tokenizer.rs:168:22 [INFO] [stdout] | [INFO] [stdout] 168 | pub fn new_at(s: &str, position: Pos) -> TokenStream { [INFO] [stdout] | ^^^^ ^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 168 | pub fn new_at(s: &str, position: Pos) -> TokenStream<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> edb/edgeql-parser/src/helpers.rs:23:22 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn quote_name(s: &str) -> Cow { [INFO] [stdout] | ^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 23 | pub fn quote_name(s: &str) -> Cow<'_, str> { [INFO] [stdout] | +++ [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/graphql-rewrite/src/pyentry.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | / py_class!(pub class Entry |py| { [INFO] [stdout] 16 | | data _key: PyString; [INFO] [stdout] 17 | | data _key_vars: PyList; [INFO] [stdout] 18 | | data _variables: PyDict; [INFO] [stdout] ... | [INFO] [stdout] 146 | | }); [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: `#[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/graphql-rewrite/src/pyentry.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | / py_class!(pub class Entry |py| { [INFO] [stdout] 16 | | data _key: PyString; [INFO] [stdout] 17 | | data _key_vars: PyList; [INFO] [stdout] 18 | | data _variables: PyDict; [INFO] [stdout] ... | [INFO] [stdout] 146 | | }); [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: hiding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> edb/graphql-rewrite/src/token_vec.rs:12:54 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new(tokens: &'a Vec<(Token<'a>, Pos)>) -> TokenVec { [INFO] [stdout] | -- -- ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the lifetime is named here [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new(tokens: &'a Vec<(Token<'a>, Pos)>) -> TokenVec<'a> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding or eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> edb/graphql-rewrite/src/token_vec.rs:19:31 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn drain<'x>(&'x mut self, n: usize) [INFO] [stdout] | -- the lifetime is named here [INFO] [stdout] 19 | -> impl Iterator + 'x [INFO] [stdout] | ^^^^^^^^^^^^^ -- the same lifetime is named here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is hidden here [INFO] [stdout] | the same lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'x` [INFO] [stdout] | [INFO] [stdout] 19 | -> impl Iterator, Pos)> + 'x [INFO] [stdout] | ++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding or eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> edb/graphql-rewrite/src/token_vec.rs:27:31 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn drain_to<'x>(&'x mut self, end: usize) [INFO] [stdout] | -- the lifetime is named here [INFO] [stdout] 27 | -> impl Iterator + 'x [INFO] [stdout] | ^^^^^^^^^^^^^ -- the same lifetime is named here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is hidden here [INFO] [stdout] | the same lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'x` [INFO] [stdout] | [INFO] [stdout] 27 | -> impl Iterator, Pos)> + 'x [INFO] [stdout] | ++ ++++ [INFO] [stdout] [INFO] [stdout] [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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> 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 [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)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [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] Compiling edgeql-rust v0.1.0 (/opt/rustwide/workdir/edb/edgeql-rust) [INFO] [stderr] Compiling pretty_assertions v1.2.0 [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> edb/edgeql-parser/src/tokenizer.rs:150:19 [INFO] [stdout] | [INFO] [stdout] 150 | pub fn new(s: &str) -> TokenStream { [INFO] [stdout] | ^^^^ ^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 150 | pub fn new(s: &str) -> TokenStream<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> edb/edgeql-parser/src/tokenizer.rs:168:22 [INFO] [stdout] | [INFO] [stdout] 168 | pub fn new_at(s: &str, position: Pos) -> TokenStream { [INFO] [stdout] | ^^^^ ^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 168 | pub fn new_at(s: &str, position: Pos) -> TokenStream<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> edb/edgeql-parser/src/helpers.rs:23:22 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn quote_name(s: &str) -> Cow { [INFO] [stdout] | ^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 23 | pub fn quote_name(s: &str) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling graphql-rewrite v0.1.0 (/opt/rustwide/workdir/edb/graphql-rewrite) [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> edb/graphql-rewrite/src/pyentry.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | / py_class!(pub class Entry |py| { [INFO] [stdout] 16 | | data _key: PyString; [INFO] [stdout] 17 | | data _key_vars: PyList; [INFO] [stdout] 18 | | data _variables: PyDict; [INFO] [stdout] ... | [INFO] [stdout] 146 | | }); [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: `#[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/graphql-rewrite/src/pyentry.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | / py_class!(pub class Entry |py| { [INFO] [stdout] 16 | | data _key: PyString; [INFO] [stdout] 17 | | data _key_vars: PyList; [INFO] [stdout] 18 | | data _variables: PyDict; [INFO] [stdout] ... | [INFO] [stdout] 146 | | }); [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: hiding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> edb/graphql-rewrite/src/token_vec.rs:12:54 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new(tokens: &'a Vec<(Token<'a>, Pos)>) -> TokenVec { [INFO] [stdout] | -- -- ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the lifetime is named here [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new(tokens: &'a Vec<(Token<'a>, Pos)>) -> TokenVec<'a> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding or eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> edb/graphql-rewrite/src/token_vec.rs:19:31 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn drain<'x>(&'x mut self, n: usize) [INFO] [stdout] | -- the lifetime is named here [INFO] [stdout] 19 | -> impl Iterator + 'x [INFO] [stdout] | ^^^^^^^^^^^^^ -- the same lifetime is named here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is hidden here [INFO] [stdout] | the same lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'x` [INFO] [stdout] | [INFO] [stdout] 19 | -> impl Iterator, Pos)> + 'x [INFO] [stdout] | ++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding or eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> edb/graphql-rewrite/src/token_vec.rs:27:31 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn drain_to<'x>(&'x mut self, end: usize) [INFO] [stdout] | -- the lifetime is named here [INFO] [stdout] 27 | -> impl Iterator + 'x [INFO] [stdout] | ^^^^^^^^^^^^^ -- the same lifetime is named here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is hidden here [INFO] [stdout] | the same lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'x` [INFO] [stdout] | [INFO] [stdout] 27 | -> impl Iterator, Pos)> + 'x [INFO] [stdout] | ++ ++++ [INFO] [stdout] [INFO] [stdout] [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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> 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 [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)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [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] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.69s [INFO] running `Command { std: "docker" "inspect" "56e41c450e58bad8229c39cd175439549349f535fd9aa51878d9f624980be711", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "56e41c450e58bad8229c39cd175439549349f535fd9aa51878d9f624980be711", kill_on_drop: false }` [INFO] [stdout] 56e41c450e58bad8229c39cd175439549349f535fd9aa51878d9f624980be711 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] d0826adf23083b6bff00f2913142172c9cb3f71cde7a5f02ee3e9b44470f136a [INFO] running `Command { std: "docker" "start" "-a" "d0826adf23083b6bff00f2913142172c9cb3f71cde7a5f02ee3e9b44470f136a", 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] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> edb/edgeql-parser/src/tokenizer.rs:150:19 [INFO] [stderr] | [INFO] [stderr] 150 | pub fn new(s: &str) -> TokenStream { [INFO] [stderr] | ^^^^ ^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 150 | pub fn new(s: &str) -> TokenStream<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> edb/edgeql-parser/src/tokenizer.rs:168:22 [INFO] [stderr] | [INFO] [stderr] 168 | pub fn new_at(s: &str, position: Pos) -> TokenStream { [INFO] [stderr] | ^^^^ ^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 168 | pub fn new_at(s: &str, position: Pos) -> TokenStream<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> edb/edgeql-parser/src/helpers.rs:23:22 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn quote_name(s: &str) -> Cow { [INFO] [stderr] | ^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 23 | pub fn quote_name(s: &str) -> Cow<'_, str> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> edb/graphql-rewrite/src/pyentry.rs:15:1 [INFO] [stderr] | [INFO] [stderr] 15 | / py_class!(pub class Entry |py| { [INFO] [stderr] 16 | | data _key: PyString; [INFO] [stderr] 17 | | data _key_vars: PyList; [INFO] [stderr] 18 | | data _variables: PyDict; [INFO] [stderr] ... | [INFO] [stderr] 146 | | }); [INFO] [stderr] | | ^ [INFO] [stderr] | | | [INFO] [stderr] | | `Entry` is not local [INFO] [stderr] | |__`PythonObjectWithTypeObject` is not local [INFO] [stderr] | move the `impl` block outside of this associated function `create_instance` [INFO] [stderr] | [INFO] [stderr] = note: the macro `$crate::py_class_impl` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = 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] [stderr] = 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] [stderr] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> edb/graphql-rewrite/src/pyentry.rs:15:1 [INFO] [stderr] | [INFO] [stderr] 15 | / py_class!(pub class Entry |py| { [INFO] [stderr] 16 | | data _key: PyString; [INFO] [stderr] 17 | | data _key_vars: PyList; [INFO] [stderr] 18 | | data _variables: PyDict; [INFO] [stderr] ... | [INFO] [stderr] 146 | | }); [INFO] [stderr] | | ^ [INFO] [stderr] | | | [INFO] [stderr] | | `Entry` is not local [INFO] [stderr] | |__`PythonObjectFromPyClassMacro` is not local [INFO] [stderr] | move the `impl` block outside of this associated function `create_instance` [INFO] [stderr] | [INFO] [stderr] = note: the macro `$crate::py_class_impl` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = 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] [stderr] = 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] [stderr] = 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] [stderr] [INFO] [stderr] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stderr] --> edb/graphql-rewrite/src/token_vec.rs:12:54 [INFO] [stderr] | [INFO] [stderr] 12 | pub fn new(tokens: &'a Vec<(Token<'a>, Pos)>) -> TokenVec { [INFO] [stderr] | -- -- ^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | | [INFO] [stderr] | | the lifetime is named here [INFO] [stderr] | the lifetime is named here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: consistently use `'a` [INFO] [stderr] | [INFO] [stderr] 12 | pub fn new(tokens: &'a Vec<(Token<'a>, Pos)>) -> TokenVec<'a> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding or eliding a lifetime that's named elsewhere is confusing [INFO] [stderr] --> edb/graphql-rewrite/src/token_vec.rs:19:31 [INFO] [stderr] | [INFO] [stderr] 18 | pub fn drain<'x>(&'x mut self, n: usize) [INFO] [stderr] | -- the lifetime is named here [INFO] [stderr] 19 | -> impl Iterator + 'x [INFO] [stderr] | ^^^^^^^^^^^^^ -- the same lifetime is named here [INFO] [stderr] | | | [INFO] [stderr] | | the same lifetime is hidden here [INFO] [stderr] | the same lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: consistently use `'x` [INFO] [stderr] | [INFO] [stderr] 19 | -> impl Iterator, Pos)> + 'x [INFO] [stderr] | ++ ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding or eliding a lifetime that's named elsewhere is confusing [INFO] [stderr] --> edb/graphql-rewrite/src/token_vec.rs:27:31 [INFO] [stderr] | [INFO] [stderr] 26 | pub fn drain_to<'x>(&'x mut self, end: usize) [INFO] [stderr] | -- the lifetime is named here [INFO] [stderr] 27 | -> impl Iterator + 'x [INFO] [stderr] | ^^^^^^^^^^^^^ -- the same lifetime is named here [INFO] [stderr] | | | [INFO] [stderr] | | the same lifetime is hidden here [INFO] [stderr] | the same lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: consistently use `'x` [INFO] [stderr] | [INFO] [stderr] 27 | -> impl Iterator, Pos)> + 'x [INFO] [stderr] | ++ ++++ [INFO] [stderr] [INFO] [stderr] warning: `edgeql-parser` (lib) generated 3 warnings (run `cargo fix --lib -p edgeql-parser` to apply 3 suggestions) [INFO] [stderr] warning: `graphql-rewrite` (lib) generated 5 warnings (run `cargo fix --lib -p graphql-rewrite` to apply 3 suggestions) [INFO] [stderr] warning: `edgeql-parser` (lib test) generated 3 warnings (3 duplicates) [INFO] [stderr] warning: `graphql-rewrite` (lib test) generated 5 warnings (5 duplicates) [INFO] [stderr] warning: field `value` is never read [INFO] [stderr] --> edb/edgeql-rust/src/tokenizer.rs:170:9 [INFO] [stderr] | [INFO] [stderr] 167 | pub struct TokenInfo { [INFO] [stderr] | --------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 170 | pub value: Option, [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> edb/edgeql-rust/src/tokenizer.rs:41:1 [INFO] [stderr] | [INFO] [stderr] 41 | / py_class!(pub class Token |py| { [INFO] [stderr] 42 | | data _kind: PyString; [INFO] [stderr] 43 | | data _text: PyString; [INFO] [stderr] 44 | | data _value: PyObject; [INFO] [stderr] ... | [INFO] [stderr] 85 | | }); [INFO] [stderr] | | ^ [INFO] [stderr] | | | [INFO] [stderr] | | `Token` is not local [INFO] [stderr] | |__`PythonObjectWithTypeObject` is not local [INFO] [stderr] | move the `impl` block outside of this associated function `create_instance` [INFO] [stderr] | [INFO] [stderr] = note: the macro `$crate::py_class_impl` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = 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] [stderr] = 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] [stderr] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> edb/edgeql-rust/src/tokenizer.rs:41:1 [INFO] [stderr] | [INFO] [stderr] 41 | / py_class!(pub class Token |py| { [INFO] [stderr] 42 | | data _kind: PyString; [INFO] [stderr] 43 | | data _text: PyString; [INFO] [stderr] 44 | | data _value: PyObject; [INFO] [stderr] ... | [INFO] [stderr] 85 | | }); [INFO] [stderr] | | ^ [INFO] [stderr] | | | [INFO] [stderr] | | `Token` is not local [INFO] [stderr] | |__`PythonObjectFromPyClassMacro` is not local [INFO] [stderr] | move the `impl` block outside of this associated function `create_instance` [INFO] [stderr] | [INFO] [stderr] = note: the macro `$crate::py_class_impl` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = 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] [stderr] = 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] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> edb/edgeql-rust/src/tokenizer.rs:234:27 [INFO] [stderr] | [INFO] [stderr] 234 | let tokens = unsafe { TOKENS.as_ref().expect("module initialized") }; [INFO] [stderr] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> edb/edgeql-rust/src/tokenizer.rs:651:27 [INFO] [stderr] | [INFO] [stderr] 651 | let tokens = unsafe { TOKENS.as_ref().expect("module initialized") }; [INFO] [stderr] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> edb/edgeql-rust/src/pynormalize.rs:18:1 [INFO] [stderr] | [INFO] [stderr] 18 | / py_class!(pub class Entry |py| { [INFO] [stderr] 19 | | data _key: PyBytes; [INFO] [stderr] 20 | | data _processed_source: String; [INFO] [stderr] 21 | | data _tokens: PyList; [INFO] [stderr] ... | [INFO] [stderr] 80 | | }); [INFO] [stderr] | | ^ [INFO] [stderr] | | | [INFO] [stderr] | | `Entry` is not local [INFO] [stderr] | |__`PythonObjectWithTypeObject` is not local [INFO] [stderr] | move the `impl` block outside of this associated function `create_instance` [INFO] [stderr] | [INFO] [stderr] = note: the macro `$crate::py_class_impl` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = 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] [stderr] = 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] [stderr] = 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] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> edb/edgeql-rust/src/pynormalize.rs:18:1 [INFO] [stderr] | [INFO] [stderr] 18 | / py_class!(pub class Entry |py| { [INFO] [stderr] 19 | | data _key: PyBytes; [INFO] [stderr] 20 | | data _processed_source: String; [INFO] [stderr] 21 | | data _tokens: PyList; [INFO] [stderr] ... | [INFO] [stderr] 80 | | }); [INFO] [stderr] | | ^ [INFO] [stderr] | | | [INFO] [stderr] | | `Entry` is not local [INFO] [stderr] | |__`PythonObjectFromPyClassMacro` is not local [INFO] [stderr] | move the `impl` block outside of this associated function `create_instance` [INFO] [stderr] | [INFO] [stderr] = note: the macro `$crate::py_class_impl` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = 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] [stderr] = 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] [stderr] = 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] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> edb/edgeql-rust/src/hash.rs:12:1 [INFO] [stderr] | [INFO] [stderr] 12 | / py_class!(pub class Hasher |py| { [INFO] [stderr] 13 | | data _hasher: RefCell>; [INFO] [stderr] 14 | | @staticmethod [INFO] [stderr] 15 | | def start_migration(parent_id: &PyString) -> PyResult { [INFO] [stderr] ... | [INFO] [stderr] 42 | | }); [INFO] [stderr] | | ^ [INFO] [stderr] | | | [INFO] [stderr] | | `Hasher` is not local [INFO] [stderr] | |__`PythonObjectWithTypeObject` is not local [INFO] [stderr] | move the `impl` block outside of this associated function `create_instance` [INFO] [stderr] | [INFO] [stderr] = note: the macro `$crate::py_class_impl` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = 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] [stderr] = 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] [stderr] = 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] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> edb/edgeql-rust/src/hash.rs:12:1 [INFO] [stderr] | [INFO] [stderr] 12 | / py_class!(pub class Hasher |py| { [INFO] [stderr] 13 | | data _hasher: RefCell>; [INFO] [stderr] 14 | | @staticmethod [INFO] [stderr] 15 | | def start_migration(parent_id: &PyString) -> PyResult { [INFO] [stderr] ... | [INFO] [stderr] 42 | | }); [INFO] [stderr] | | ^ [INFO] [stderr] | | | [INFO] [stderr] | | `Hasher` is not local [INFO] [stderr] | |__`PythonObjectFromPyClassMacro` is not local [INFO] [stderr] | move the `impl` block outside of this associated function `create_instance` [INFO] [stderr] | [INFO] [stderr] = note: the macro `$crate::py_class_impl` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = 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] [stderr] = 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] [stderr] = 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] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> edb/edgeql-rust/src/position.rs:8:1 [INFO] [stderr] | [INFO] [stderr] 8 | / py_class!(pub class SourcePoint |py| { [INFO] [stderr] 9 | | data _position: InflatedPos; [INFO] [stderr] 10 | | @classmethod def from_offsets(_cls, data: PyBytes, offsets: PyObject) [INFO] [stderr] 11 | | -> PyResult [INFO] [stderr] ... | [INFO] [stderr] 41 | | }); [INFO] [stderr] | | ^ [INFO] [stderr] | | | [INFO] [stderr] | | `SourcePoint` is not local [INFO] [stderr] | |__`PythonObjectWithTypeObject` is not local [INFO] [stderr] | move the `impl` block outside of this associated function `create_instance` [INFO] [stderr] | [INFO] [stderr] = note: the macro `$crate::py_class_impl` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = 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] [stderr] = 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] [stderr] = 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] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> edb/edgeql-rust/src/position.rs:8:1 [INFO] [stderr] | [INFO] [stderr] 8 | / py_class!(pub class SourcePoint |py| { [INFO] [stderr] 9 | | data _position: InflatedPos; [INFO] [stderr] 10 | | @classmethod def from_offsets(_cls, data: PyBytes, offsets: PyObject) [INFO] [stderr] 11 | | -> PyResult [INFO] [stderr] ... | [INFO] [stderr] 41 | | }); [INFO] [stderr] | | ^ [INFO] [stderr] | | | [INFO] [stderr] | | `SourcePoint` is not local [INFO] [stderr] | |__`PythonObjectFromPyClassMacro` is not local [INFO] [stderr] | move the `impl` block outside of this associated function `create_instance` [INFO] [stderr] | [INFO] [stderr] = note: the macro `$crate::py_class_impl` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = 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] [stderr] = 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] [stderr] = 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] [stderr] [INFO] [stderr] warning: `edgeql-rust` (lib) generated 11 warnings [INFO] [stderr] warning: `edgeql-rust` (lib test) generated 11 warnings (11 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.05s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/edgeql_parser-59d148ea92889c74) [INFO] [stdout] [INFO] [stdout] running 14 tests [INFO] [stdout] test hash::test::empty ... ok [INFO] [stdout] test hash::test::hash_parent ... ok [INFO] [stdout] test hash::test::hash_1 ... ok [INFO] [stdout] test hash::test::tokens_arent_normalized ... ok [INFO] [stdout] test helpers::complex_strings ... ok [INFO] [stdout] test helpers::newline_escaping_str ... ok [INFO] [stdout] test helpers::unquote_unicode_string ... ok [INFO] [stdout] test position::test::ascii_multi_line ... ok [INFO] [stdout] test position::test::char_offsets ... ok [INFO] [stdout] test position::test::ascii_line ... ok [INFO] [stdout] test position::test::line_endings ... ok [INFO] [stdout] test schema_file::test::test_normal ... ok [INFO] [stdout] test schema_file::test::test_braces ... ok [INFO] [stdout] test schema_file::test::test_str ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 14 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running tests/expr.rs (/opt/rustwide/target/debug/deps/expr-b0e4bad24067f1cd) [INFO] [stdout] [INFO] [stdout] running 7 tests [INFO] [stdout] test bad_token ... ok [INFO] [stdout] test extra_brackets ... ok [INFO] [stdout] test delimiter ... ok [INFO] [stdout] test bracket_mismatch ... ok [INFO] [stdout] test test_empty ... ok [INFO] [stdout] test missing_brackets ... ok [INFO] [stdout] test test_valid ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running tests/preparser.rs (/opt/rustwide/target/debug/deps/preparser-8e382229eb33b24f) [INFO] [stdout] [INFO] [stdout] running 20 tests [INFO] [stdout] test empty ... ok [INFO] [stdout] test test_backtick_quoted_continuation ... ok [INFO] [stdout] test test_after_variable ... ok [INFO] [stdout] test test_backtick_quoted_semicolon ... ok [INFO] [stdout] test test_commented_semicolon ... ok [INFO] [stdout] test test_continuation ... ok [INFO] [stdout] test test_dollar_var ... ok [INFO] [stdout] test test_dollar_continuation ... ok [INFO] [stdout] test test_dollar_semicolon ... ok [INFO] [stdout] test test_function ... ok [INFO] [stdout] test test_quoted_continuation ... ok [INFO] [stdout] test test_nested_dollar ... ok [INFO] [stdout] test test_quotes ... ok [INFO] [stdout] test test_quoted_semicolon ... ok [INFO] [stdout] test test_raw_byte_string ... ok [INFO] [stdout] test test_raw_string ... ok [INFO] [stdout] test test_simple ... ok [INFO] [stdout] test test_single_quoted_semicolon ... ok [INFO] [stdout] test test_single_quoted_continuation ... ok [INFO] [stdout] test test_schema ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 20 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] [stderr] Running tests/tokenizer.rs (/opt/rustwide/target/debug/deps/tokenizer-e363e47b940005da) [INFO] [stdout] [INFO] [stdout] running 26 tests [INFO] [stdout] test bigint ... ok [INFO] [stdout] test colon_tokens ... ok [INFO] [stdout] test dash_tokens ... ok [INFO] [stdout] test decimal ... ok [INFO] [stdout] test div_tokens ... ok [INFO] [stdout] test dot_tokens ... ok [INFO] [stdout] test greater_tokens ... ok [INFO] [stdout] test float ... ok [INFO] [stdout] test idents ... ok [INFO] [stdout] test integer ... ok [INFO] [stdout] test invalid_suffix ... ok [INFO] [stdout] test keywords ... ok [INFO] [stdout] test less_tokens ... ok [INFO] [stdout] test not_equals_tokens ... ok [INFO] [stdout] test num_errors ... ok [INFO] [stdout] test question_tokens ... ok [INFO] [stdout] test plus_tokens ... ok [INFO] [stdout] test numbers_from_py ... ok [INFO] [stdout] test single_char_tokens ... ok [INFO] [stdout] test string_prohibited_chars ... ok [INFO] [stdout] test tuple_dot_vs_float ... ok [INFO] [stdout] test strings ... ok [INFO] [stdout] test test_dollar ... ok [INFO] [stdout] test test_substitution ... ok [INFO] [stdout] test tuple_paths ... ok [INFO] [stdout] test whitespace_and_comments ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 26 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/edgeql_rust-b56de8d143d7245c) [INFO] [stdout] [INFO] [stdout] running 8 tests [INFO] [stdout] test normalize::test::mixed ... ok [INFO] [stdout] test normalize::test::numeric ... ok [INFO] [stdout] test normalize::test::none ... ok [INFO] [stdout] test normalize::test::named ... ok [INFO] [stdout] test position::line_offsets ... ok [INFO] [stdout] test tokenizer::complex_bytes ... ok [INFO] [stdout] test tokenizer::simple_bytes ... ok [INFO] [stdout] test tokenizer::newline_escaping_bytes ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running tests/normalize.rs (/opt/rustwide/target/debug/deps/normalize-31ba9830a8745d7f) [INFO] [stdout] [INFO] [stdout] running 14 tests [INFO] [stdout] test test_configure ... ok [INFO] [stdout] test test_float ... ok [INFO] [stdout] test test_int ... ok [INFO] [stdout] test test_named ... ok [INFO] [stdout] test test_limit_1 ... ok [INFO] [stdout] test test_positional ... ok [INFO] [stdout] test test_script_with_args ... ok [INFO] [stdout] test test_script ... ok [INFO] [stdout] test test_str ... ok [INFO] [stdout] test test_verbatim ... ok [INFO] [stdout] test test_tuple_access ... ok [INFO] [stdout] test test_decimal ... ok [INFO] [stdout] test test_bigint ... ok [INFO] [stdout] test test_bigint_exponent ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 14 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s [INFO] [stdout] [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/graphql_rewrite-0f33fd456a177eac) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running tests/rewrite.rs (/opt/rustwide/target/debug/deps/rewrite-a5d7b5058a95fc0f) [INFO] [stdout] [INFO] [stdout] running 18 tests [INFO] [stdout] test test_default_name ... ok [INFO] [stdout] test test_bigint ... ok [INFO] [stdout] test test_defaults_bool ... ok [INFO] [stdout] test test_defaults ... ok [INFO] [stdout] test test_defaults_float ... ok [INFO] [stdout] test test_first_1 ... ok [INFO] [stdout] test test_defaults_int ... ok [INFO] [stdout] test test_float ... ok [INFO] [stdout] test test_first_2 ... ok [INFO] [stdout] test test_int32 ... ok [INFO] [stdout] test test_int64 ... ok [INFO] [stdout] test test_include_skip ... ok [INFO] [stdout] test test_name ... ok [INFO] [stdout] test test_no_args ... ok [INFO] [stdout] test test_name_args ... ok [INFO] [stdout] test test_no_query ... ok [INFO] [stdout] test test_no_name ... ok [INFO] [stdout] test test_other ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 18 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests edgeql_parser [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test edb/edgeql-parser/src/helpers.rs - helpers::quote_name (line 17) ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.10s [INFO] [stdout] [INFO] [stderr] Doc-tests edgeql_rust [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests graphql_rewrite [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "d0826adf23083b6bff00f2913142172c9cb3f71cde7a5f02ee3e9b44470f136a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d0826adf23083b6bff00f2913142172c9cb3f71cde7a5f02ee3e9b44470f136a", kill_on_drop: false }` [INFO] [stdout] d0826adf23083b6bff00f2913142172c9cb3f71cde7a5f02ee3e9b44470f136a