[INFO] cloning repository https://github.com/valentindimov/windows-service-runner [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/valentindimov/windows-service-runner" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvalentindimov%2Fwindows-service-runner", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvalentindimov%2Fwindows-service-runner'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d5fa714c04e2a333407ba839bc5a06487d1d93cd [INFO] testing valentindimov/windows-service-runner against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvalentindimov%2Fwindows-service-runner" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-2-tc1/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/valentindimov/windows-service-runner [INFO] removed 0 missing examples [INFO] finished tweaking git repo https://github.com/valentindimov/windows-service-runner [INFO] tweaked toml for git repo https://github.com/valentindimov/windows-service-runner written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/valentindimov/windows-service-runner on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/valentindimov/windows-service-runner already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded windows-service v0.7.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 72daa144629631012507518a5c844acb7c2eae3711d96890756a33920251ebdd [INFO] running `Command { std: "docker" "start" "-a" "72daa144629631012507518a5c844acb7c2eae3711d96890756a33920251ebdd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "72daa144629631012507518a5c844acb7c2eae3711d96890756a33920251ebdd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "72daa144629631012507518a5c844acb7c2eae3711d96890756a33920251ebdd", kill_on_drop: false }` [INFO] [stdout] 72daa144629631012507518a5c844acb7c2eae3711d96890756a33920251ebdd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c1f205111121333fdc1d3fe3d53a4161a9f3e75cf4778ad927e840f9a450e033 [INFO] running `Command { std: "docker" "start" "-a" "c1f205111121333fdc1d3fe3d53a4161a9f3e75cf4778ad927e840f9a450e033", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.81 [INFO] [stderr] Compiling windows_x86_64_gnu v0.52.5 [INFO] [stderr] Compiling serde v1.0.198 [INFO] [stderr] Compiling serde_json v1.0.116 [INFO] [stderr] Compiling windows-service v0.7.0 [INFO] [stderr] Compiling windows-targets v0.52.5 [INFO] [stderr] Compiling windows-result v0.1.1 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling syn v2.0.60 [INFO] [stderr] Compiling windows-implement v0.56.0 [INFO] [stderr] Compiling serde_derive v1.0.198 [INFO] [stderr] Compiling windows-interface v0.56.0 [INFO] [stderr] Compiling windows-core v0.56.0 [INFO] [stderr] Compiling windows v0.56.0 [INFO] [stderr] Compiling run-service v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> src/service_main.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | use std::os::windows::io::AsRawHandle; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/std/src/os/mod.rs:56:5 [INFO] [stdout] | [INFO] [stdout] = note: the item is gated here [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/std/src/os/mod.rs:120:10 [INFO] [stdout] | [INFO] [stdout] = note: the item is gated here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `windows_service::service` [INFO] [stdout] --> src/service_main.rs:12:22 [INFO] [stdout] | [INFO] [stdout] 12 | use windows_service::service::{ [INFO] [stdout] | ^^^^^^^ could not find `service` in `windows_service` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `windows_service::service_control_handler`, `windows_service::service_control_handler` [INFO] [stdout] --> src/service_main.rs:15:22 [INFO] [stdout] | [INFO] [stdout] 15 | use windows_service::service_control_handler::{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ could not find `service_control_handler` in `windows_service` [INFO] [stdout] 16 | self, ServiceControlHandlerResult, ServiceStatusHandle, [INFO] [stdout] | ^^^^ no `service_control_handler` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `windows_service::define_windows_service`, `windows_service::service_dispatcher` [INFO] [stdout] --> src/main.rs:7:23 [INFO] [stdout] | [INFO] [stdout] 7 | use windows_service::{define_windows_service, service_dispatcher}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ no `service_dispatcher` in the root [INFO] [stdout] | | [INFO] [stdout] | no `define_windows_service` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in crate `windows_service` [INFO] [stdout] --> src/service_main.rs:33:35 [INFO] [stdout] | [INFO] [stdout] 33 | RegisterService(windows_service::Error), [INFO] [stdout] | ^^^^^ not found in `windows_service` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use std::error::Error; [INFO] [stdout] | [INFO] [stdout] 1 + use std::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Error; [INFO] [stdout] | [INFO] [stdout] 1 + use core::error::Error; [INFO] [stdout] | [INFO] [stdout] = and 5 other candidates [INFO] [stdout] help: if you import `Error`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 33 - RegisterService(windows_service::Error), [INFO] [stdout] 33 + RegisterService(Error), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in crate `windows_service` [INFO] [stdout] --> src/service_main.rs:34:41 [INFO] [stdout] | [INFO] [stdout] 34 | ReportServiceStarting(windows_service::Error), [INFO] [stdout] | ^^^^^ not found in `windows_service` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use std::error::Error; [INFO] [stdout] | [INFO] [stdout] 1 + use std::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Error; [INFO] [stdout] | [INFO] [stdout] 1 + use core::error::Error; [INFO] [stdout] | [INFO] [stdout] = and 5 other candidates [INFO] [stdout] help: if you import `Error`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 34 - ReportServiceStarting(windows_service::Error), [INFO] [stdout] 34 + ReportServiceStarting(Error), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in crate `windows_service` [INFO] [stdout] --> src/service_main.rs:35:40 [INFO] [stdout] | [INFO] [stdout] 35 | ReportServiceStarted(windows_service::Error), [INFO] [stdout] | ^^^^^ not found in `windows_service` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use std::error::Error; [INFO] [stdout] | [INFO] [stdout] 1 + use std::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Error; [INFO] [stdout] | [INFO] [stdout] 1 + use core::error::Error; [INFO] [stdout] | [INFO] [stdout] = and 5 other candidates [INFO] [stdout] help: if you import `Error`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 35 - ReportServiceStarted(windows_service::Error), [INFO] [stdout] 35 + ReportServiceStarted(Error), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in crate `windows_service` [INFO] [stdout] --> src/service_main.rs:36:41 [INFO] [stdout] | [INFO] [stdout] 36 | ReportServiceStopping(windows_service::Error), [INFO] [stdout] | ^^^^^ not found in `windows_service` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use std::error::Error; [INFO] [stdout] | [INFO] [stdout] 1 + use std::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Error; [INFO] [stdout] | [INFO] [stdout] 1 + use core::error::Error; [INFO] [stdout] | [INFO] [stdout] = and 5 other candidates [INFO] [stdout] help: if you import `Error`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 36 - ReportServiceStopping(windows_service::Error), [INFO] [stdout] 36 + ReportServiceStopping(Error), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in crate `windows_service` [INFO] [stdout] --> src/service_main.rs:37:40 [INFO] [stdout] | [INFO] [stdout] 37 | ReportServiceStopped(windows_service::Error), [INFO] [stdout] | ^^^^^ not found in `windows_service` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use std::error::Error; [INFO] [stdout] | [INFO] [stdout] 1 + use std::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Error; [INFO] [stdout] | [INFO] [stdout] 1 + use core::error::Error; [INFO] [stdout] | [INFO] [stdout] = and 5 other candidates [INFO] [stdout] help: if you import `Error`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 37 - ReportServiceStopped(windows_service::Error), [INFO] [stdout] 37 + ReportServiceStopped(Error), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in crate `windows_service` [INFO] [stdout] --> src/service_main.rs:69:34 [INFO] [stdout] | [INFO] [stdout] 69 | ) -> Result<(), windows_service::Error> { [INFO] [stdout] | ^^^^^ not found in `windows_service` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use std::error::Error; [INFO] [stdout] | [INFO] [stdout] 1 + use std::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Error; [INFO] [stdout] | [INFO] [stdout] 1 + use core::error::Error; [INFO] [stdout] | [INFO] [stdout] = and 5 other candidates [INFO] [stdout] help: if you import `Error`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 69 - ) -> Result<(), windows_service::Error> { [INFO] [stdout] 69 + ) -> Result<(), Error> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in crate `windows_service` [INFO] [stdout] --> src/main.rs:19:43 [INFO] [stdout] | [INFO] [stdout] 19 | ServiceDispatchError(windows_service::Error), [INFO] [stdout] | ^^^^^ not found in `windows_service` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 4 + use std::error::Error; [INFO] [stdout] | [INFO] [stdout] 4 + use std::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 4 + use std::io::Error; [INFO] [stdout] | [INFO] [stdout] 4 + use core::error::Error; [INFO] [stdout] | [INFO] [stdout] = and 5 other candidates [INFO] [stdout] help: if you import `Error`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 19 - ServiceDispatchError(windows_service::Error), [INFO] [stdout] 19 + ServiceDispatchError(Error), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ffi_service_main` in this scope [INFO] [stdout] --> src/main.rs:36:35 [INFO] [stdout] | [INFO] [stdout] 36 | service_dispatcher::start("", ffi_service_main) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `service_main` [INFO] [stdout] | [INFO] [stdout] ::: src/service_main.rs:297:1 [INFO] [stdout] | [INFO] [stdout] 297 | pub fn service_main(arguments: Vec) { [INFO] [stdout] | --------------------------------------------- similarly named function `service_main` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::service_main::service_main` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::service_main::service_main; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_raw_handle` found for struct `Child` in the current scope [INFO] [stdout] --> src/service_main.rs:156:41 [INFO] [stdout] | [INFO] [stdout] 156 | let subproc_handle = HANDLE(subproc.as_raw_handle() as isize); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `Child` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `run-service` (bin "run-service") due to 13 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "c1f205111121333fdc1d3fe3d53a4161a9f3e75cf4778ad927e840f9a450e033", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c1f205111121333fdc1d3fe3d53a4161a9f3e75cf4778ad927e840f9a450e033", kill_on_drop: false }` [INFO] [stdout] c1f205111121333fdc1d3fe3d53a4161a9f3e75cf4778ad927e840f9a450e033