[INFO] cloning repository https://github.com/theruslanusmanov/rust-text-editor [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/theruslanusmanov/rust-text-editor" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftheruslanusmanov%2Frust-text-editor", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftheruslanusmanov%2Frust-text-editor'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] aec76293cac82984e96d087e88c05379dbb92cf3 [INFO] checking theruslanusmanov/rust-text-editor against try#1bd50d4315eb15970d395b6be5823f9384707693 for pr-140151 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftheruslanusmanov%2Frust-text-editor" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/theruslanusmanov/rust-text-editor on toolchain 1bd50d4315eb15970d395b6be5823f9384707693 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1bd50d4315eb15970d395b6be5823f9384707693" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/theruslanusmanov/rust-text-editor [INFO] finished tweaking git repo https://github.com/theruslanusmanov/rust-text-editor [INFO] tweaked toml for git repo https://github.com/theruslanusmanov/rust-text-editor written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/theruslanusmanov/rust-text-editor 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" "+1bd50d4315eb15970d395b6be5823f9384707693" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+1bd50d4315eb15970d395b6be5823f9384707693" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4fbbdfda50375ccfddcbb30b48ba09ded885a0a49663e0051395bd3c85dc2db2 [INFO] running `Command { std: "docker" "start" "-a" "4fbbdfda50375ccfddcbb30b48ba09ded885a0a49663e0051395bd3c85dc2db2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4fbbdfda50375ccfddcbb30b48ba09ded885a0a49663e0051395bd3c85dc2db2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4fbbdfda50375ccfddcbb30b48ba09ded885a0a49663e0051395bd3c85dc2db2", kill_on_drop: false }` [INFO] [stdout] 4fbbdfda50375ccfddcbb30b48ba09ded885a0a49663e0051395bd3c85dc2db2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+1bd50d4315eb15970d395b6be5823f9384707693" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0190eadba46fdc10f6b2d199bc97f4cf1cb705350c168e99da75246612c356d7 [INFO] running `Command { std: "docker" "start" "-a" "0190eadba46fdc10f6b2d199bc97f4cf1cb705350c168e99da75246612c356d7", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.37 [INFO] [stderr] Compiling libc v0.2.123 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling syn v1.0.91 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling rustversion v1.0.6 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking smallvec v1.8.0 [INFO] [stderr] Checking unicode-width v0.1.9 [INFO] [stderr] Checking remove_dir_all v0.5.3 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking fastrand v1.7.0 [INFO] [stderr] Checking instant v0.1.12 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Checking tempfile v3.3.0 [INFO] [stderr] Checking rust-text-editor v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: environment variable `RUST_TEXT_EDITOR_VERSION` not defined at compile time [INFO] [stdout] --> src/editor.rs:513:72 [INFO] [stdout] | [INFO] [stdout] 513 | let welcome_message = concat!("Rust Text Editor ", env!("RUST_TEXT_EDITOR_VERSION")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: use `std::env::var("RUST_TEXT_EDITOR_VERSION")` to read the variable at run time [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::row` [INFO] [stdout] --> src/editor.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::row::{HlState, Row}; [INFO] [stdout] | ^^^ could not find `row` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `crate::ansi_escape`, `crate::sys` [INFO] [stdout] --> src/editor.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::{ansi_escape::*, syntax::Conf as SyntaxConf, sys, terminal, Config, Error}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^ no `sys` in the root [INFO] [stdout] | | [INFO] [stdout] | could not find `ansi_escape` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::sys` [INFO] [stdout] --> src/syntax.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::{sys, Error}; [INFO] [stdout] | ^^^ no `sys` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `winapi` [INFO] [stdout] --> src/windows.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use winapi::um::wincon::*; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `winapi` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `winapi`, use `cargo add winapi` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `crate::ansi_escape`, `crate::ansi_escape`, `crate::sys` [INFO] [stdout] --> src/terminal.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{ansi_escape::DEVICE_STATUS_REPORT, ansi_escape::REPOSITION_CURSOR_END, sys, Error}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^ ^^^ no `sys` in the root [INFO] [stdout] | | | [INFO] [stdout] | | could not find `ansi_escape` in the crate root [INFO] [stdout] | could not find `ansi_escape` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi_util` [INFO] [stdout] --> src/windows.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use winapi_util::{console as cons, HandleRef}; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `winapi_util` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `winapi_util`, use `cargo add winapi_util` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `format` [INFO] [stdout] --> src/config.rs:5:25 [INFO] [stdout] | [INFO] [stdout] 5 | use std::fmt::{Display, format}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> src/config.rs:7:35 [INFO] [stdout] | [INFO] [stdout] 7 | use std::io::{BufRead, BufReader, Read}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::xdg::*` [INFO] [stdout] --> src/unix.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub use crate::xdg::*; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::xdg::*` [INFO] [stdout] --> src/wasi.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub use crate::xdg::*; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Path: From<_>` is not satisfied [INFO] [stdout] --> src/config.rs:52:22 [INFO] [stdout] | [INFO] [stdout] 52 | .map(|d| Path::from(d).join("config.ini")) [INFO] [stdout] | ^^^^ the trait `From<_>` is not implemented for `Path` [INFO] [stdout] | [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 52 | .map(|d| &Path::from(d).join("config.ini")) [INFO] [stdout] | + [INFO] [stdout] 52 | .map(|d| &mut Path::from(d).join("config.ini")) [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> src/config.rs:52:22 [INFO] [stdout] | [INFO] [stdout] 52 | .map(|d| Path::from(d).join("config.ini")) [INFO] [stdout] | ^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: within `Path`, the trait `Sized` is not implemented for `[u8]` [INFO] [stdout] note: required because it appears within the type `Path` [INFO] [stdout] --> /rustc/1bd50d4315eb15970d395b6be5823f9384707693/library/std/src/path.rs:2129:12 [INFO] [stdout] note: required by a bound in `from` [INFO] [stdout] --> /rustc/1bd50d4315eb15970d395b6be5823f9384707693/library/core/src/convert/mod.rs:587:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> src/config.rs:52:22 [INFO] [stdout] | [INFO] [stdout] 52 | .map(|d| Path::from(d).join("config.ini")) [INFO] [stdout] | ^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: within `Path`, the trait `Sized` is not implemented for `[u8]` [INFO] [stdout] note: required because it appears within the type `Path` [INFO] [stdout] --> /rustc/1bd50d4315eb15970d395b6be5823f9384707693/library/std/src/path.rs:2129:12 [INFO] [stdout] = note: the return type of a function must have a statically known size [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `File` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/config.rs:86:67 [INFO] [stdout] | [INFO] [stdout] 86 | let file = File::open(path).map(|e| ConfErr(path.into(), 0, e.to_string()))?; [INFO] [stdout] | ^^^^^^^^^ `File` cannot be formatted with the default formatter [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `File: std::fmt::Display` [INFO] [stdout] which is required by `File: ToString` [INFO] [stdout] = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stdout] error[E0277]: the trait bound `error::Error: std::io::Read` is not satisfied [INFO] [stdout] --> src/config.rs:87:37 [INFO] [stdout] | [INFO] [stdout] 87 | for (i, line) in BufReader::new(file).lines().enumerate() { [INFO] [stdout] | -------------- ^^^^ the trait `std::io::Read` is not implemented for `error::Error` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `BufReader::::new` [INFO] [stdout] --> /rustc/1bd50d4315eb15970d395b6be5823f9384707693/library/std/src/io/buffered/bufreader.rs:73:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `lines` exists for struct `BufReader`, but its trait bounds were not satisfied [INFO] [stdout] --> src/config.rs:87:43 [INFO] [stdout] | [INFO] [stdout] 87 | for (i, line) in BufReader::new(file).lines().enumerate() { [INFO] [stdout] | ^^^^^ method cannot be called on `BufReader` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum Error { [INFO] [stdout] | -------------- doesn't satisfy `error::Error: std::io::Read` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `error::Error: std::io::Read` [INFO] [stdout] which is required by `BufReader: BufRead` [INFO] [stdout] `BufReader: BufRead` [INFO] [stdout] which is required by `&mut BufReader: BufRead` [INFO] [stdout] note: the trait `std::io::Read` must be implemented [INFO] [stdout] --> /rustc/1bd50d4315eb15970d395b6be5823f9384707693/library/std/src/io/mod.rs:732:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0593]: closure is expected to take 1 argument, but it takes 0 arguments [INFO] [stdout] --> src/editor.rs:286:64 [INFO] [stdout] | [INFO] [stdout] 286 | successors(Some(self.rows.len()), |u| Some(u / 10).filter(|| u | *u > 0)).count(); [INFO] [stdout] | ^^^^^^ -- takes 0 arguments [INFO] [stdout] | | [INFO] [stdout] | expected closure that takes 1 argument [INFO] [stdout] | [INFO] [stdout] help: consider changing the closure to take and ignore the expected argument [INFO] [stdout] | [INFO] [stdout] 286 | successors(Some(self.rows.len()), |u| Some(u / 10).filter(|_| u | *u > 0)).count(); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `curor` on type `&mut Editor` [INFO] [stdout] --> src/editor.rs:369:35 [INFO] [stdout] | [INFO] [stdout] 369 | row.chars.splice(self.curor.x - n_bytes_to_remove..self.cursor.x, iter::empty()); [INFO] [stdout] | ^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: a field with a similar name exists [INFO] [stdout] | [INFO] [stdout] 369 | row.chars.splice(self.cursor.x - n_bytes_to_remove..self.cursor.x, iter::empty()); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `fi` on type `&mut Editor` [INFO] [stdout] --> src/editor.rs:372:52 [INFO] [stdout] | [INFO] [stdout] 372 | self.dirty = if self.is_empty() { self.fi.e_name.is_some() } else { true }; [INFO] [stdout] | ^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `prompt_mode`, `cursor`, `ln_pad`, `window_width`, `screen_rows` ... and 10 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `dirsty` on type `&mut Editor` [INFO] [stdout] --> src/editor.rs:407:18 [INFO] [stdout] | [INFO] [stdout] 407 | self.dirsty = true; [INFO] [stdout] | ^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: a field with a similar name exists [INFO] [stdout] | [INFO] [stdout] 407 - self.dirsty = true; [INFO] [stdout] 407 + self.dirty = true; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `connfig` on type `&Editor` [INFO] [stdout] --> src/editor.rs:541:33 [INFO] [stdout] | [INFO] [stdout] 541 | let msg_duration = self.connfig.message_dur; [INFO] [stdout] | ^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: a field with a similar name exists [INFO] [stdout] | [INFO] [stdout] 541 - let msg_duration = self.connfig.message_dur; [INFO] [stdout] 541 + let msg_duration = self.config.message_dur; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/editor.rs:671:50 [INFO] [stdout] | [INFO] [stdout] 671 | Some(prompt_mode) => prompt_mode.process_keypress(selfm & key)? [INFO] [stdout] | ^^^^^^^^^^^^^^^^------------- argument #2 of type `&Key` is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/editor.rs:714:8 [INFO] [stdout] | [INFO] [stdout] 714 | fn process_keypress(self, ed: &mut Editor, key: &Key) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ --------- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 671 | Some(prompt_mode) => prompt_mode.process_keypress(selfm & key, /* &Key */)? [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0277, E0432, E0433, E0593, E0599, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-text-editor` (lib) due to 19 previous errors; 4 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "0190eadba46fdc10f6b2d199bc97f4cf1cb705350c168e99da75246612c356d7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0190eadba46fdc10f6b2d199bc97f4cf1cb705350c168e99da75246612c356d7", kill_on_drop: false }` [INFO] [stdout] 0190eadba46fdc10f6b2d199bc97f4cf1cb705350c168e99da75246612c356d7