[INFO] cloning repository https://github.com/LinXueyuanStdio/ripgrep-python [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/LinXueyuanStdio/ripgrep-python" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLinXueyuanStdio%2Fripgrep-python", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLinXueyuanStdio%2Fripgrep-python'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] abc8f9081fd3e9ec9033d0f778bf92684166bcce [INFO] building LinXueyuanStdio/ripgrep-python against try#23647e694de8d0904848ad068b2e0ec2dd098c37+target=wasm32-wasip1 for pr-149868 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLinXueyuanStdio%2Fripgrep-python" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/LinXueyuanStdio/ripgrep-python [INFO] finished tweaking git repo https://github.com/LinXueyuanStdio/ripgrep-python [INFO] tweaked toml for git repo https://github.com/LinXueyuanStdio/ripgrep-python written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/LinXueyuanStdio/ripgrep-python on toolchain 23647e694de8d0904848ad068b2e0ec2dd098c37 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23647e694de8d0904848ad068b2e0ec2dd098c37" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/LinXueyuanStdio/ripgrep-python 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" "+23647e694de8d0904848ad068b2e0ec2dd098c37" "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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+23647e694de8d0904848ad068b2e0ec2dd098c37" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e9747d16aa009db607c2ecd0f4afb810b43507791219e88aabaf44fc12aaed1c [INFO] running `Command { std: "docker" "start" "-a" "e9747d16aa009db607c2ecd0f4afb810b43507791219e88aabaf44fc12aaed1c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e9747d16aa009db607c2ecd0f4afb810b43507791219e88aabaf44fc12aaed1c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e9747d16aa009db607c2ecd0f4afb810b43507791219e88aabaf44fc12aaed1c", kill_on_drop: false }` [INFO] [stdout] e9747d16aa009db607c2ecd0f4afb810b43507791219e88aabaf44fc12aaed1c [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" "-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" "+23647e694de8d0904848ad068b2e0ec2dd098c37" "build" "--frozen" "--message-format=json" "--target" "wasm32-wasip1", kill_on_drop: false }` [INFO] [stdout] 2abb46abcb37a5b86e20031e5339989d24e525af8f175104ea5244526b15763a [INFO] running `Command { std: "docker" "start" "-a" "2abb46abcb37a5b86e20031e5339989d24e525af8f175104ea5244526b15763a", kill_on_drop: false }` [INFO] [stderr] Compiling target-lexicon v0.12.16 [INFO] [stderr] Compiling proc-macro2 v1.0.96 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling portable-atomic v1.11.1 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling grep-matcher v0.1.7 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling unindent v0.2.4 [INFO] [stderr] Compiling indoc v2.0.6 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling memmap2 v0.9.7 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling pyo3-build-config v0.20.3 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling crossbeam-deque v0.8.6 [INFO] [stderr] Compiling encoding_rs_io v0.1.7 [INFO] [stderr] Compiling pyo3-ffi v0.20.3 [INFO] [stderr] Compiling pyo3 v0.20.3 [INFO] [stderr] Compiling bstr v1.12.0 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling globset v0.4.16 [INFO] [stderr] Compiling ignore v0.4.23 [INFO] [stderr] Compiling grep-searcher v0.1.14 [INFO] [stderr] Compiling grep-regex v0.1.13 [INFO] [stderr] Compiling pyo3-macros-backend v0.20.3 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling pyo3-macros v0.20.3 [INFO] [stderr] Compiling ripgrep-python v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `builder` [INFO] [stdout] --> src/lib.rs:380:9 [INFO] [stdout] | [INFO] [stdout] 380 | builder: &mut WalkBuilder, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_builder` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `extensions` [INFO] [stdout] --> src/lib.rs:384:13 [INFO] [stdout] | [INFO] [stdout] 384 | let extensions = match file_type { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_extensions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:484:13 [INFO] [stdout] | [INFO] [stdout] 484 | let mut searcher = Searcher::new(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `searcher` [INFO] [stdout] --> src/lib.rs:484:13 [INFO] [stdout] | [INFO] [stdout] 484 | let mut searcher = Searcher::new(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_searcher` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:623:17 [INFO] [stdout] | [INFO] [stdout] 623 | let mut finalize_range = |start: u64, [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `B` should have a snake case name [INFO] [stdout] --> src/lib.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | B: Option, // -B: lines before match [INFO] [stdout] | ^ help: convert the identifier to snake case: `b` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/lib.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | A: Option, // -A: lines after match [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `C` should have a snake case name [INFO] [stdout] --> src/lib.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | C: Option, // -C: lines before and after match [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `c` [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] --> src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | #[pymethods] [INFO] [stdout] | -^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `PyClassImplCollector` is not local [INFO] [stdout] | `PyClassNewTextSignature` is not local [INFO] [stdout] | move the `impl` block outside of this function `trampoline` and up 4 bodies [INFO] [stdout] 69 | impl Grep { [INFO] [stdout] | ---- [INFO] [stdout] | | [INFO] [stdout] | `Grep` is not local [INFO] [stdout] | `Grep` is not local [INFO] [stdout] | [INFO] [stdout] = note: the attribute macro `pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `pymethods` may come from an old version of the `pyo3_macros` crate, try updating your dependency with `cargo update -p pyo3_macros` [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 attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: linking with `rust-lld` failed: exit status: 1 [INFO] [stdout] | [INFO] [stdout] = note: "rust-lld" "-flavor" "wasm" "--export" "PyInit_pyripgrep" "-z" "stack-size=1048576" "--stack-first" "--no-demangle" "<11 object files omitted>" "/lib/rustlib/wasm32-wasip1/lib/libpanic_abort-*.rlib" "/opt/rustwide/target/wasm32-wasip1/debug/deps/{libgrep_regex-9c920c76e8bb17de,libgrep_searcher-eda074ae82142345,libmemmap2-0a2e1390e2b919e9,libencoding_rs_io-9ffece7e09d5ffa6,libencoding_rs-7ed4760dee008e30,libgrep_matcher-6c734f6441458fec,libignore-993c0d4d5be92437,libwalkdir-9a905762863fc6e6,libsame_file-d90975b76a214118,libcrossbeam_deque-464991a7a94d754e,libcrossbeam_epoch-92dc4d28a60431da,libcrossbeam_utils-4b211d489d2429a1,libglobset-aa0de76725759f94,liblog-96c2588d067795bb,libbstr-6e6fc114ac4aeedf,libregex_automata-c551e5479607fac6,libregex_syntax-b44ef8663a4740f2,libaho_corasick-5a62b6bff848ae2f,libmemchr-3a202389f03e09b9,libpyo3-f677cdf6ff5d445f,libmemoffset-1cb5070c1d17031d,libparking_lot-7391da79d71db563,libparking_lot_core-a1608affde8a217e,libcfg_if-beec54d71ff48acf,libsmallvec-e66260ff59480183,liblock_api-0953171fa34b05de,libscopeguard-8bf53ae5771a3088,libpyo3_ffi-d22541abca35ba20,liblibc-bf5ed93e20f8295a,libunindent-f3ba1184db1bfb23}.rlib" "/lib/rustlib/wasm32-wasip1/lib/{libstd-*,libwasi-*,libcfg_if-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,liblibc-*}.rlib" "-l" "c" "/lib/rustlib/wasm32-wasip1/lib/{librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "-L" "/lib/rustlib/wasm32-wasip1/lib/self-contained" "-o" "/opt/rustwide/target/wasm32-wasip1/debug/deps/pyripgrep.wasm" "--gc-sections" "--no-entry" "-O0" [INFO] [stdout] = note: some arguments are omitted. use `--verbose` to show all linker arguments [INFO] [stdout] = note: rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/pyripgrep.pyripgrep.d093732013170a96-cgu.02.rcgu.o: undefined symbol: PyErr_WriteUnraisable [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/pyripgrep.pyripgrep.d093732013170a96-cgu.02.rcgu.o: undefined symbol: PyType_IsSubtype [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/pyripgrep.pyripgrep.d093732013170a96-cgu.02.rcgu.o: undefined symbol: _Py_NoneStruct [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/pyripgrep.pyripgrep.d093732013170a96-cgu.02.rcgu.o: undefined symbol: PyList_New [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/pyripgrep.pyripgrep.d093732013170a96-cgu.02.rcgu.o: undefined symbol: PyList_SetItem [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/pyripgrep.pyripgrep.d093732013170a96-cgu.03.rcgu.o: undefined symbol: PyObject_GC_UnTrack [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/pyripgrep.pyripgrep.d093732013170a96-cgu.03.rcgu.o: undefined symbol: PyBytes_AsString [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/pyripgrep.pyripgrep.d093732013170a96-cgu.03.rcgu.o: undefined symbol: PyBytes_Size [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/pyripgrep.pyripgrep.d093732013170a96-cgu.04.rcgu.o: undefined symbol: PyBaseObject_Type [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/pyripgrep.pyripgrep.d093732013170a96-cgu.05.rcgu.o: undefined symbol: PyUnicode_AsUTF8String [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/pyripgrep.pyripgrep.d093732013170a96-cgu.05.rcgu.o: undefined symbol: PyType_GetSlot [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/pyripgrep.pyripgrep.d093732013170a96-cgu.06.rcgu.o: undefined symbol: PyBaseObject_Type [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/pyripgrep.pyripgrep.d093732013170a96-cgu.06.rcgu.o: undefined symbol: PyLong_FromUnsignedLongLong [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libpyo3-f677cdf6ff5d445f.rlib(pyo3-f677cdf6ff5d445f.pyo3.e81fc68ea9e8ea3-cgu.00.rcgu.o): undefined symbol: PyExc_AttributeError [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libpyo3-f677cdf6ff5d445f.rlib(pyo3-f677cdf6ff5d445f.pyo3.e81fc68ea9e8ea3-cgu.00.rcgu.o): undefined symbol: PyExc_AttributeError [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libpyo3-f677cdf6ff5d445f.rlib(pyo3-f677cdf6ff5d445f.pyo3.e81fc68ea9e8ea3-cgu.00.rcgu.o): undefined symbol: PyExc_ImportError [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libpyo3-f677cdf6ff5d445f.rlib(pyo3-f677cdf6ff5d445f.pyo3.e81fc68ea9e8ea3-cgu.00.rcgu.o): undefined symbol: PyExc_ImportError [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libpyo3-f677cdf6ff5d445f.rlib(pyo3-f677cdf6ff5d445f.pyo3.e81fc68ea9e8ea3-cgu.00.rcgu.o): undefined symbol: PyExc_OverflowError [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libpyo3-f677cdf6ff5d445f.rlib(pyo3-f677cdf6ff5d445f.pyo3.e81fc68ea9e8ea3-cgu.00.rcgu.o): undefined symbol: PyExc_OverflowError [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libpyo3-f677cdf6ff5d445f.rlib(pyo3-f677cdf6ff5d445f.pyo3.e81fc68ea9e8ea3-cgu.00.rcgu.o): undefined symbol: PyExc_RuntimeError [INFO] [stdout] rust-lld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `ripgrep-python` (lib) due to 1 previous error; 9 warnings emitted [INFO] running `Command { std: "docker" "inspect" "2abb46abcb37a5b86e20031e5339989d24e525af8f175104ea5244526b15763a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2abb46abcb37a5b86e20031e5339989d24e525af8f175104ea5244526b15763a", kill_on_drop: false }` [INFO] [stdout] 2abb46abcb37a5b86e20031e5339989d24e525af8f175104ea5244526b15763a