[INFO] cloning repository https://github.com/RafaelBM91/rust-crud [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/RafaelBM91/rust-crud" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRafaelBM91%2Frust-crud", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRafaelBM91%2Frust-crud'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 373716fc3fcd5c5e206099aa46bd3f0f1f2ca69b [INFO] checking RafaelBM91/rust-crud/373716fc3fcd5c5e206099aa46bd3f0f1f2ca69b against try#4d98531622e1718ae0bc3c7a1ab9cd8938428452+rustflags=-Dtail_expr_drop_order for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRafaelBM91%2Frust-crud" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/RafaelBM91/rust-crud on toolchain 4d98531622e1718ae0bc3c7a1ab9cd8938428452 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/RafaelBM91/rust-crud [INFO] finished tweaking git repo https://github.com/RafaelBM91/rust-crud [INFO] tweaked toml for git repo https://github.com/RafaelBM91/rust-crud written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/RafaelBM91/rust-crud 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" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 343933e92411b0d25459a6d94a1a3a7f1807941a2233c9b4a06bded6decb2c57 [INFO] running `Command { std: "docker" "start" "-a" "343933e92411b0d25459a6d94a1a3a7f1807941a2233c9b4a06bded6decb2c57", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "343933e92411b0d25459a6d94a1a3a7f1807941a2233c9b4a06bded6decb2c57", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "343933e92411b0d25459a6d94a1a3a7f1807941a2233c9b4a06bded6decb2c57", kill_on_drop: false }` [INFO] [stdout] 343933e92411b0d25459a6d94a1a3a7f1807941a2233c9b4a06bded6decb2c57 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail_expr_drop_order" "-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7dda199afa73ca328f1d099b36d2f9a0728bdece3ab880e17e7663842e3bebc1 [INFO] running `Command { std: "docker" "start" "-a" "7dda199afa73ca328f1d099b36d2f9a0728bdece3ab880e17e7663842e3bebc1", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.54 [INFO] [stderr] Compiling autocfg v0.1.2 [INFO] [stderr] Compiling rand_core v0.4.0 [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Compiling byteorder v1.3.1 [INFO] [stderr] Compiling siphasher v0.2.3 [INFO] [stderr] Checking smallvec v0.6.9 [INFO] [stderr] Checking cfg-if v0.1.7 [INFO] [stderr] Checking matches v0.1.8 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling unicase v1.4.2 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling rand_xorshift v0.1.1 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Compiling rand_jitter v0.1.4 [INFO] [stderr] Compiling memchr v2.2.0 [INFO] [stderr] Compiling phf_shared v0.7.24 [INFO] [stderr] Checking unicode-bidi v0.3.4 [INFO] [stderr] Checking log v0.4.6 [INFO] [stderr] Checking unicode-normalization v0.1.8 [INFO] [stderr] Checking safemem v0.3.0 [INFO] [stderr] Checking traitobject v0.1.0 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Checking time v0.1.42 [INFO] [stderr] Compiling typenum v1.10.0 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling serde v1.0.91 [INFO] [stderr] Checking log v0.3.9 [INFO] [stderr] Checking base64 v0.9.3 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling httparse v1.3.3 [INFO] [stderr] Checking percent-encoding v1.0.1 [INFO] [stderr] Checking mime v0.2.6 [INFO] [stderr] Checking unsafe-any v0.4.2 [INFO] [stderr] Compiling num-traits v0.2.6 [INFO] [stderr] Checking typemap v0.3.3 [INFO] [stderr] Compiling quote v0.6.12 [INFO] [stderr] Checking phf v0.7.24 [INFO] [stderr] Checking num_cpus v1.10.0 [INFO] [stderr] Checking typeable v0.1.2 [INFO] [stderr] Compiling num-integer v0.1.39 [INFO] [stderr] Compiling phf_generator v0.7.24 [INFO] [stderr] Compiling ryu v0.2.8 [INFO] [stderr] Checking language-tags v0.2.2 [INFO] [stderr] Compiling phf_codegen v0.7.24 [INFO] [stderr] Checking idna v0.1.5 [INFO] [stderr] Checking generic-array v0.9.0 [INFO] [stderr] Checking plugin v0.2.6 [INFO] [stderr] Compiling syn v0.15.34 [INFO] [stderr] Compiling mime_guess v1.8.7 [INFO] [stderr] Checking modifier v0.1.0 [INFO] [stderr] Checking digest v0.7.6 [INFO] [stderr] Checking itoa v0.4.4 [INFO] [stderr] Checking arrayref v0.3.5 [INFO] [stderr] Checking byte-tools v0.2.0 [INFO] [stderr] Compiling regex v1.1.6 [INFO] [stderr] Checking block-buffer v0.3.3 [INFO] [stderr] Checking url v1.7.2 [INFO] [stderr] Compiling ucd-util v0.1.3 [INFO] [stderr] Compiling lazy_static v1.3.0 [INFO] [stderr] Compiling thread_local v0.3.6 [INFO] [stderr] Compiling regex-syntax v0.6.6 [INFO] [stderr] Compiling aho-corasick v0.7.3 [INFO] [stderr] Checking hyper v0.10.16 [INFO] [stderr] Checking chrono v0.4.6 [INFO] [stderr] Checking constant_time_eq v0.1.3 [INFO] [stderr] Checking fake-simd v0.1.2 [INFO] [stderr] Compiling utf8-ranges v1.0.2 [INFO] [stderr] Compiling regex v0.2.11 [INFO] [stderr] Checking crypto-mac v0.6.2 [INFO] [stderr] Checking regex-syntax v0.5.6 [INFO] [stderr] Checking aho-corasick v0.6.10 [INFO] [stderr] Compiling syn v0.14.9 [INFO] [stderr] Checking rand v0.5.6 [INFO] [stderr] Checking iron v0.6.0 [INFO] [stderr] Checking persistent v0.4.0 [INFO] [stderr] Checking hmac v0.6.3 [INFO] [stderr] Checking indexmap v1.0.2 [INFO] [stderr] Checking sha2 v0.7.1 [INFO] [stderr] Checking hostname v0.1.5 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking serde_json v1.0.39 [INFO] [stderr] Checking base64 v0.10.1 [INFO] [stderr] Checking bodyparser v0.8.0 [INFO] [stderr] Checking semver-parser v0.7.0 [INFO] [stderr] Compiling serde_derive v1.0.91 [INFO] [stderr] Checking md5 v0.3.8 [INFO] [stderr] Checking try_from v0.2.2 [INFO] [stderr] Checking fnv v1.0.6 [INFO] [stderr] Checking hex v0.3.2 [INFO] [stderr] Checking linked-hash-map v0.5.2 [INFO] [stderr] Checking uuid v0.7.4 [INFO] [stderr] Checking semver v0.8.0 [INFO] [stderr] Checking urlencoded v0.6.0 [INFO] [stderr] Checking rand v0.3.23 [INFO] [stderr] Checking pbkdf2 v0.2.3 [INFO] [stderr] Checking sha-1 v0.7.0 [INFO] [stderr] Checking md-5 v0.7.0 [INFO] [stderr] Checking separator v0.3.1 [INFO] [stderr] Checking bitflags v1.0.4 [INFO] [stderr] Checking sequence_trie v0.3.6 [INFO] [stderr] Checking bufstream v0.1.4 [INFO] [stderr] Checking data-encoding v2.1.2 [INFO] [stderr] Checking logger v0.4.0 [INFO] [stderr] Checking mount v0.4.0 [INFO] [stderr] Checking bson v0.13.0 [INFO] [stderr] Checking scan_fmt v0.1.3 [INFO] [stderr] Checking textnonce v0.6.5 [INFO] [stderr] Compiling juniper_codegen v0.11.1 [INFO] [stderr] Checking mongodb v0.3.12 [INFO] [stderr] Checking juniper v0.11.1 [INFO] [stderr] Checking juniper_iron v0.3.0 [INFO] [stderr] Checking rust-test v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/mongo.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | (value.as_null() == None) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 30 - (value.as_null() == None) [INFO] [stdout] 30 + value.as_null() == None [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/mongo.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | (value.as_null() == None) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 30 - (value.as_null() == None) [INFO] [stdout] 30 + value.as_null() == None [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/server.rs:16:20 [INFO] [stdout] | [INFO] [stdout] 16 | fn context_factory(req: &mut Request) -> IronResult<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/server.rs:16:20 [INFO] [stdout] | [INFO] [stdout] 16 | fn context_factory(req: &mut Request) -> IronResult<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `insert_doc_operation` is never used [INFO] [stdout] --> src/mongo.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Mongo { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn insert_doc_operation (mut document: OrderedDocument) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `insert_doc_operation` is never used [INFO] [stdout] --> src/mongo.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Mongo { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn insert_doc_operation (mut document: OrderedDocument) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/mongo.rs:60:24 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn resolve_query_one (document: OrderedDocument, collection: Collection) -> Bson { [INFO] [stdout] | ------------------------- ---------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 55 | let response_query = collection.find_one(Some(document), None); [INFO] [stdout] | -------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 56 | let checking_query = match response_query { [INFO] [stdout] | -------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 57 | Ok(obj) => obj.or(Some( OrderedDocument::new() )), [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 58 | _error => Some( OrderedDocument::new() ), [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 59 | }; [INFO] [stdout] 60 | Bson::Document(checking_query.unwrap()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/mongo.rs:63:45 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn insert_doc_operation (mut document: OrderedDocument) -> Option { [INFO] [stdout] | ----------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 63 | document.insert_bson("".to_owned(), Bson::Document(doc! {})) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/mongo.rs:60:24 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn resolve_query_one (document: OrderedDocument, collection: Collection) -> Bson { [INFO] [stdout] | ------------------------- ---------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 55 | let response_query = collection.find_one(Some(document), None); [INFO] [stdout] | -------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 56 | let checking_query = match response_query { [INFO] [stdout] | -------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 57 | Ok(obj) => obj.or(Some( OrderedDocument::new() )), [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 58 | _error => Some( OrderedDocument::new() ), [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 59 | }; [INFO] [stdout] 60 | Bson::Document(checking_query.unwrap()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/mongo.rs:63:45 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn insert_doc_operation (mut document: OrderedDocument) -> Option { [INFO] [stdout] | ----------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 63 | document.insert_bson("".to_owned(), Bson::Document(doc! {})) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-test` (bin "rust-test") due to 3 previous errors; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `rust-test` (bin "rust-test" test) due to 3 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "7dda199afa73ca328f1d099b36d2f9a0728bdece3ab880e17e7663842e3bebc1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7dda199afa73ca328f1d099b36d2f9a0728bdece3ab880e17e7663842e3bebc1", kill_on_drop: false }` [INFO] [stdout] 7dda199afa73ca328f1d099b36d2f9a0728bdece3ab880e17e7663842e3bebc1