[INFO] cloning repository https://github.com/vedranvinko/oscar [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/vedranvinko/oscar" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvedranvinko%2Foscar", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvedranvinko%2Foscar'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 580f1c03d30f09afd9a3056db7eae2b13b492d46 [INFO] testing vedranvinko/oscar against try#03a1ea71b075ab964b5278bc6e74cd6c52c36ee0 for pr-74409 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvedranvinko%2Foscar" "/workspace/builds/worker-8/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-8/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/vedranvinko/oscar on toolchain 03a1ea71b075ab964b5278bc6e74cd6c52c36ee0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+03a1ea71b075ab964b5278bc6e74cd6c52c36ee0" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/vedranvinko/oscar [INFO] finished tweaking git repo https://github.com/vedranvinko/oscar [INFO] tweaked toml for git repo https://github.com/vedranvinko/oscar written to /workspace/builds/worker-8/source/Cargo.toml [INFO] crate git repo https://github.com/vedranvinko/oscar already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+03a1ea71b075ab964b5278bc6e74cd6c52c36ee0" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:d9fbb4e2287ab3795bdefaf705efb7541a8875c13bce71e067d6b01dc5ed759b" "/opt/rustwide/cargo-home/bin/cargo" "+03a1ea71b075ab964b5278bc6e74cd6c52c36ee0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0299b98e82af626ab8903b22087bd09c9390b50a296bd2a715936ca2de1ab190 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "0299b98e82af626ab8903b22087bd09c9390b50a296bd2a715936ca2de1ab190", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0299b98e82af626ab8903b22087bd09c9390b50a296bd2a715936ca2de1ab190", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0299b98e82af626ab8903b22087bd09c9390b50a296bd2a715936ca2de1ab190", kill_on_drop: false }` [INFO] [stdout] 0299b98e82af626ab8903b22087bd09c9390b50a296bd2a715936ca2de1ab190 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:d9fbb4e2287ab3795bdefaf705efb7541a8875c13bce71e067d6b01dc5ed759b" "/opt/rustwide/cargo-home/bin/cargo" "+03a1ea71b075ab964b5278bc6e74cd6c52c36ee0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5498f26b888bb231c3958c65fca2ce09b88d323484a872cd4ae2c1ea23566992 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "5498f26b888bb231c3958c65fca2ce09b88d323484a872cd4ae2c1ea23566992", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.18 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.31 [INFO] [stderr] Compiling adler32 v1.1.0 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling rustc-demangle v0.1.16 [INFO] [stderr] Compiling object v0.20.0 [INFO] [stderr] Compiling serde v1.0.112 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling miniz_oxide v0.3.7 [INFO] [stderr] Compiling clap v2.33.1 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling backtrace v0.3.49 [INFO] [stderr] Compiling error-chain v0.10.0 [INFO] [stderr] Compiling serde_derive v1.0.112 [INFO] [stderr] Compiling serde-xml-rs v0.3.1 [INFO] [stderr] Compiling oscar v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `serde_xml_rs::from_reader` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use serde_xml_rs::from_reader; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/main.rs:15:20 [INFO] [stdout] | [INFO] [stdout] 14 | / fn read_file(f: String) -> String { [INFO] [stdout] 15 | | let mut file = File::open(f)?; [INFO] [stdout] | | ^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `std::string::String` [INFO] [stdout] 16 | | let mut content = String::new(); [INFO] [stdout] 17 | | file.read_to_string(&mut content)?; [INFO] [stdout] 18 | | [INFO] [stdout] 19 | | content [INFO] [stdout] 20 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `std::string::String` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/main.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 14 | / fn read_file(f: String) -> String { [INFO] [stdout] 15 | | let mut file = File::open(f)?; [INFO] [stdout] 16 | | let mut content = String::new(); [INFO] [stdout] 17 | | file.read_to_string(&mut content)?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `std::string::String` [INFO] [stdout] 18 | | [INFO] [stdout] 19 | | content [INFO] [stdout] 20 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `std::string::String` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `oscar`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `Command { std: "docker" "inspect" "5498f26b888bb231c3958c65fca2ce09b88d323484a872cd4ae2c1ea23566992", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5498f26b888bb231c3958c65fca2ce09b88d323484a872cd4ae2c1ea23566992", kill_on_drop: false }` [INFO] [stdout] 5498f26b888bb231c3958c65fca2ce09b88d323484a872cd4ae2c1ea23566992