[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] building orgTestCodacy11KRepos110MB/repo-3084-edgedb against master#f5209000832c9d3bc29c91f4daef4ca9f28dc797+target=wasm32-wasip1 for pr-149868 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2ForgTestCodacy11KRepos110MB%2Frepo-3084-edgedb" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-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-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/orgTestCodacy11KRepos110MB/repo-3084-edgedb on toolchain f5209000832c9d3bc29c91f4daef4ca9f28dc797 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "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" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "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] | [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 crates.io index [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 bigdecimal v0.3.0 [INFO] [stderr] Downloaded snafu-derive v0.7.0 [INFO] [stderr] Downloaded python3-sys v0.7.0 [INFO] [stderr] Downloaded blake2 v0.10.4 [INFO] [stderr] Downloaded snafu v0.7.0 [INFO] [stderr] Downloaded pretty_assertions v1.2.0 [INFO] [stderr] Downloaded cpython v0.7.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] de0d0f2083fd2817f498fb1b02bb67c44865d9903f74d8714fc753eff38cb3ca [INFO] running `Command { std: "docker" "start" "-a" "de0d0f2083fd2817f498fb1b02bb67c44865d9903f74d8714fc753eff38cb3ca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "de0d0f2083fd2817f498fb1b02bb67c44865d9903f74d8714fc753eff38cb3ca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "de0d0f2083fd2817f498fb1b02bb67c44865d9903f74d8714fc753eff38cb3ca", kill_on_drop: false }` [INFO] [stdout] de0d0f2083fd2817f498fb1b02bb67c44865d9903f74d8714fc753eff38cb3ca [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "build" "--frozen" "--message-format=json" "--target" "wasm32-wasip1", kill_on_drop: false }` [INFO] [stdout] 2461f1071d19ede111d425b75867ded7c97c67ce7db1f7803d4bf8d8e724deaf [INFO] running `Command { std: "docker" "start" "-a" "2461f1071d19ede111d425b75867ded7c97c67ce7db1f7803d4bf8d8e724deaf", 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] | [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 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 unicode-segmentation v1.9.0 [INFO] [stderr] Compiling libc v0.2.121 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Compiling doc-comment v0.3.3 [INFO] [stderr] Compiling cpython v0.7.0 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling unchecked-index v0.2.2 [INFO] [stderr] Compiling ascii v0.9.3 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling base32 v0.4.0 [INFO] [stderr] Compiling unicode-width v0.1.9 [INFO] [stderr] Compiling twoway v0.2.2 [INFO] [stderr] Compiling combine v4.6.3 [INFO] [stderr] Compiling edgedb-errors v0.1.0 (https://github.com/edgedb/edgedb-rust#dfdeb7f2) [INFO] [stderr] Compiling combine v3.8.1 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Compiling quote v1.0.17 [INFO] [stderr] Compiling aho-corasick v0.7.18 [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 regex v1.5.5 [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 42.99s [INFO] running `Command { std: "docker" "inspect" "2461f1071d19ede111d425b75867ded7c97c67ce7db1f7803d4bf8d8e724deaf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2461f1071d19ede111d425b75867ded7c97c67ce7db1f7803d4bf8d8e724deaf", kill_on_drop: false }` [INFO] [stdout] 2461f1071d19ede111d425b75867ded7c97c67ce7db1f7803d4bf8d8e724deaf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "test" "--frozen" "--no-run" "--message-format=json" "--target" "wasm32-wasip1", kill_on_drop: false }` [INFO] [stdout] a4b595cb088a74168e398c5db770fab759b371fc809937299848d922df8f0d4e [INFO] running `Command { std: "docker" "start" "-a" "a4b595cb088a74168e398c5db770fab759b371fc809937299848d922df8f0d4e", 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] | [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 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] [stderr] Compiling graphql-rewrite v0.1.0 (/opt/rustwide/workdir/edb/graphql-rewrite) [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] Finished `test` profile [unoptimized + debuginfo] target(s) in 5.14s [INFO] running `Command { std: "docker" "inspect" "a4b595cb088a74168e398c5db770fab759b371fc809937299848d922df8f0d4e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a4b595cb088a74168e398c5db770fab759b371fc809937299848d922df8f0d4e", kill_on_drop: false }` [INFO] [stdout] a4b595cb088a74168e398c5db770fab759b371fc809937299848d922df8f0d4e