[INFO] fetching crate ast-grep 0.27.3... [INFO] checking ast-grep-0.27.3 against try#7014e13d5becc920d4bea3cd87942c8a13d359bf+rustflags=-Dtail_expr_drop_order for pr-129864 [INFO] extracting crate ast-grep 0.27.3 into /workspace/builds/worker-3-tc2/source [INFO] validating manifest of crates.io crate ast-grep 0.27.3 on toolchain 7014e13d5becc920d4bea3cd87942c8a13d359bf [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7014e13d5becc920d4bea3cd87942c8a13d359bf" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate ast-grep 0.27.3 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate ast-grep 0.27.3 [INFO] tweaked toml for crates.io crate ast-grep 0.27.3 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate crates.io crate ast-grep 0.27.3 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" "+7014e13d5becc920d4bea3cd87942c8a13d359bf" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+7014e13d5becc920d4bea3cd87942c8a13d359bf" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cbfc55c6cdf1c3a20bf91071d71007e20a6219cb76601994e200e95145fe52df [INFO] running `Command { std: "docker" "start" "-a" "cbfc55c6cdf1c3a20bf91071d71007e20a6219cb76601994e200e95145fe52df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cbfc55c6cdf1c3a20bf91071d71007e20a6219cb76601994e200e95145fe52df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cbfc55c6cdf1c3a20bf91071d71007e20a6219cb76601994e200e95145fe52df", kill_on_drop: false }` [INFO] [stdout] cbfc55c6cdf1c3a20bf91071d71007e20a6219cb76601994e200e95145fe52df [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+7014e13d5becc920d4bea3cd87942c8a13d359bf" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 75c0786131fb65c1ddb938342f5b6f3e9ec5748c04bea7a230b3bb5fa40317c0 [INFO] running `Command { std: "docker" "start" "-a" "75c0786131fb65c1ddb938342f5b6f3e9ec5748c04bea7a230b3bb5fa40317c0", kill_on_drop: false }` [INFO] [stderr] Compiling cc v1.0.104 [INFO] [stderr] Checking memchr v2.7.2 [INFO] [stderr] Compiling proc-macro2 v1.0.82 [INFO] [stderr] Checking regex-syntax v0.8.3 [INFO] [stderr] Compiling libc v0.2.154 [INFO] [stderr] Checking log v0.4.21 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.92 [INFO] [stderr] Compiling bumpalo v3.15.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Compiling wasm-bindgen v0.2.92 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Checking bit-vec v0.8.0 [INFO] [stderr] Compiling signal-hook v0.3.17 [INFO] [stderr] Checking anstyle v1.0.8 [INFO] [stderr] Checking unicode-normalization v0.1.23 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Checking utf8parse v0.2.1 [INFO] [stderr] Checking dyn-clone v1.0.17 [INFO] [stderr] Checking bitflags v2.5.0 [INFO] [stderr] Compiling anyhow v1.0.89 [INFO] [stderr] Checking anstyle-parse v0.2.4 [INFO] [stderr] Checking colorchoice v1.0.1 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Checking anstyle-query v1.0.3 [INFO] [stderr] Checking is_terminal_polyfill v1.70.0 [INFO] [stderr] Compiling schemars v0.8.21 [INFO] [stderr] Checking bit-set v0.8.0 [INFO] [stderr] Checking tokio v1.40.0 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Checking linux-raw-sys v0.4.13 [INFO] [stderr] Checking anstream v0.6.14 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking tower-layer v0.3.2 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Checking tower-service v0.3.2 [INFO] [stderr] Checking clap_lex v0.7.0 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking bytes v1.6.0 [INFO] [stderr] Checking unsafe-libyaml v0.2.11 [INFO] [stderr] Checking strsim v0.11.1 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking thread_local v1.1.8 [INFO] [stderr] Checking unicode-segmentation v1.11.0 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Checking unicode-width v0.1.12 [INFO] [stderr] Checking fuzzy-matcher v0.3.7 [INFO] [stderr] Checking clap_builder v4.5.18 [INFO] [stderr] Checking fxhash v0.2.1 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Checking libloading v0.8.5 [INFO] [stderr] Checking termcolor v1.4.1 [INFO] [stderr] Checking newline-converter v0.3.0 [INFO] [stderr] Checking ansi_term v0.12.1 [INFO] [stderr] Checking similar v2.6.0 [INFO] [stderr] Compiling doc-comment v0.3.3 [INFO] [stderr] Checking predicates-core v1.0.6 [INFO] [stderr] Checking codespan-reporting v0.11.1 [INFO] [stderr] Compiling syn v2.0.61 [INFO] [stderr] Checking termtree v0.4.1 [INFO] [stderr] Checking difflib v0.4.0 [INFO] [stderr] Compiling assert_cmd v2.0.16 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking mio v1.0.1 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking normalize-line-endings v0.3.0 [INFO] [stderr] Checking predicates-tree v1.0.9 [INFO] [stderr] Checking wait-timeout v0.2.0 [INFO] [stderr] Checking fastrand v2.1.0 [INFO] [stderr] Checking parking_lot v0.12.2 [INFO] [stderr] Checking dashmap v5.5.3 [INFO] [stderr] Checking dashmap v6.1.0 [INFO] [stderr] Checking float-cmp v0.9.0 [INFO] [stderr] Compiling tree-sitter v0.22.6 [INFO] [stderr] Compiling tree-sitter-sequel v0.3.5 [INFO] [stderr] Compiling tree-sitter-c v0.21.4 [INFO] [stderr] Compiling tree-sitter-elixir v0.2.0 [INFO] [stderr] Compiling tree-sitter-lua v0.1.0 [INFO] [stderr] Compiling tree-sitter-rust v0.21.2 [INFO] [stderr] Compiling tree-sitter-php v0.23.0 [INFO] [stderr] Checking signal-hook-mio v0.2.4 [INFO] [stderr] Compiling tree-sitter-css v0.21.1 [INFO] [stderr] Compiling tree-sitter-kotlin v0.3.8 [INFO] [stderr] Compiling tree-sitter-swift v0.5.0 [INFO] [stderr] Compiling tree-sitter-typescript v0.21.2 [INFO] [stderr] Compiling tree-sitter-ruby v0.21.0 [INFO] [stderr] Compiling tree-sitter-haskell v0.21.0 [INFO] [stderr] Compiling tree-sitter-javascript v0.21.4 [INFO] [stderr] Compiling tree-sitter-java v0.21.0 [INFO] [stderr] Compiling tree-sitter-go v0.21.2 [INFO] [stderr] Compiling tree-sitter-json v0.21.0 [INFO] [stderr] Checking regex-automata v0.4.6 [INFO] [stderr] Compiling tree-sitter-python v0.21.0 [INFO] [stderr] Compiling tree-sitter-bash v0.21.0 [INFO] [stderr] Compiling tree-sitter-c-sharp v0.21.3 [INFO] [stderr] Compiling tree-sitter-cpp v0.22.3 [INFO] [stderr] Compiling tree-sitter-html v0.20.4 [INFO] [stderr] Compiling tree-sitter-yaml v0.6.1 [INFO] [stderr] Compiling tree-sitter-scala v0.22.1 [INFO] [stderr] Compiling tree-sitter-dart v0.0.4 [INFO] [stderr] Checking tokio-util v0.7.11 [INFO] [stderr] Checking crossterm v0.25.0 [INFO] [stderr] Checking crossterm v0.28.1 [INFO] [stderr] Checking tempfile v3.12.0 [INFO] [stderr] Checking inquire v0.7.5 [INFO] [stderr] Checking regex v1.10.6 [INFO] [stderr] Checking bstr v1.9.1 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.92 [INFO] [stderr] Compiling serde_derive_internals v0.29.0 [INFO] [stderr] Checking globset v0.4.15 [INFO] [stderr] Checking ignore v0.4.23 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.92 [INFO] [stderr] Checking predicates v3.1.2 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.92 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling schemars_derive v0.8.21 [INFO] [stderr] Compiling serde_repr v0.1.19 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling tower-lsp-macros v0.9.0 [INFO] [stderr] Compiling clap_derive v4.5.18 [INFO] [stderr] Compiling auto_impl v1.2.0 [INFO] [stderr] Checking tree-sitter-facade-sg v0.22.2 [INFO] [stderr] Compiling async-trait v0.1.80 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking pin-project v1.1.5 [INFO] [stderr] Checking ast-grep-core v0.27.3 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking clap v4.5.18 [INFO] [stderr] Checking clap_complete v4.5.29 [INFO] [stderr] Checking serde v1.0.210 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Checking serde_json v1.0.128 [INFO] [stderr] Checking url v2.5.0 [INFO] [stderr] Checking serde_yaml v0.9.34+deprecated [INFO] [stderr] Checking ast-grep-language v0.27.3 [INFO] [stderr] Checking ast-grep-dynamic v0.27.3 [INFO] [stderr] Checking lsp-types v0.94.1 [INFO] [stderr] Checking ast-grep-config v0.27.3 [INFO] [stderr] Checking tower-lsp v0.20.0 [INFO] [stderr] Checking ast-grep-lsp v0.27.3 [INFO] [stderr] Checking ast-grep v0.27.3 (/opt/rustwide/workdir) [INFO] [stdout] error: this value of type `Vec>` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/print/cloud_print.rs:128:5 [INFO] [stdout] | [INFO] [stdout] 127 | let globals = GlobalRules::default(); [INFO] [stdout] | ------- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] 128 | / from_yaml_string( [INFO] [stdout] 129 | | &format!( [INFO] [stdout] 130 | | r" [INFO] [stdout] 131 | | id: test [INFO] [stdout] ... | [INFO] [stdout] 137 | | ) [INFO] [stdout] 138 | | .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: this value of type `ast_grep_core::AstGrep>` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/print/colored_print/test.rs:92:9 [INFO] [stdout] | [INFO] [stdout] 87 | let globals = GlobalRules::default(); [INFO] [stdout] | ------- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 92 | let grep = SgLang::from(SupportLang::TypeScript).ast_grep(source); [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: this value of type `ast_grep_core::AstGrep>` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/print/colored_print/test.rs:223:9 [INFO] [stdout] | [INFO] [stdout] 218 | let globals = GlobalRules::default(); [INFO] [stdout] | ------- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 223 | let grep = SgLang::from(SupportLang::TypeScript).ast_grep(source); [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: this value of type `Vec>` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/print/interactive_print.rs:256:5 [INFO] [stdout] | [INFO] [stdout] 255 | let globals = GlobalRules::default(); [INFO] [stdout] | ------- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] 256 | / from_yaml_string( [INFO] [stdout] 257 | | &format!( [INFO] [stdout] 258 | | r" [INFO] [stdout] 259 | | id: test [INFO] [stdout] ... | [INFO] [stdout] 266 | | ) [INFO] [stdout] 267 | | .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] [INFO] [stdout] [INFO] [stdout] error: this value of type `Vec>` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/print/json_print.rs:484:5 [INFO] [stdout] | [INFO] [stdout] 483 | let globals = GlobalRules::default(); [INFO] [stdout] | ------- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] 484 | / from_yaml_string( [INFO] [stdout] 485 | | &format!( [INFO] [stdout] 486 | | r#" [INFO] [stdout] 487 | | id: test [INFO] [stdout] ... | [INFO] [stdout] 496 | | ) [INFO] [stdout] 497 | | .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] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/lang/lang_globs.rs:17:17 [INFO] [stdout] | [INFO] [stdout] 17 | debug_assert!(LANG_GLOBS.is_empty()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/lang/lang_globs.rs:17:17 [INFO] [stdout] | [INFO] [stdout] 17 | debug_assert!(LANG_GLOBS.is_empty()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/lang/lang_globs.rs:156:18 [INFO] [stdout] | [INFO] [stdout] 156 | assert_eq!(LANG_GLOBS.len(), 2); [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] error: aborting due to 5 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `ast-grep` (lib test) due to 6 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "75c0786131fb65c1ddb938342f5b6f3e9ec5748c04bea7a230b3bb5fa40317c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "75c0786131fb65c1ddb938342f5b6f3e9ec5748c04bea7a230b3bb5fa40317c0", kill_on_drop: false }` [INFO] [stdout] 75c0786131fb65c1ddb938342f5b6f3e9ec5748c04bea7a230b3bb5fa40317c0