[INFO] cloning repository https://github.com/atwupack/editor [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/atwupack/editor" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fatwupack%2Feditor", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fatwupack%2Feditor'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f0c7b16df87b50037ecd693d1f619dcb40c6edd4 [INFO] checking atwupack/editor/f0c7b16df87b50037ecd693d1f619dcb40c6edd4 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fatwupack%2Feditor" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/atwupack/editor on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/atwupack/editor [INFO] finished tweaking git repo https://github.com/atwupack/editor [INFO] tweaked toml for git repo https://github.com/atwupack/editor written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/atwupack/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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded intl_pluralrules v1.0.2 [INFO] [stderr] Downloaded dunce v0.1.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 336a2a1525af1bb6c5e0c04cf37705da24959774c45b39e9732f6f119566547f [INFO] running `Command { std: "docker" "start" "-a" "336a2a1525af1bb6c5e0c04cf37705da24959774c45b39e9732f6f119566547f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "336a2a1525af1bb6c5e0c04cf37705da24959774c45b39e9732f6f119566547f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "336a2a1525af1bb6c5e0c04cf37705da24959774c45b39e9732f6f119566547f", kill_on_drop: false }` [INFO] [stdout] 336a2a1525af1bb6c5e0c04cf37705da24959774c45b39e9732f6f119566547f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8f14412b52aa64f5e18b7b9e539a6d204af6d7c1147f282e4bf039c6471d3e36 [INFO] running `Command { std: "docker" "start" "-a" "8f14412b52aa64f5e18b7b9e539a6d204af6d7c1147f282e4bf039c6471d3e36", kill_on_drop: false }` [INFO] [stderr] Compiling pkg-config v0.3.14 [INFO] [stderr] Compiling libc v0.2.48 [INFO] [stderr] Checking bitflags v1.0.4 [INFO] [stderr] Checking lazy_static v1.2.0 [INFO] [stderr] Compiling proc-macro2 v0.4.27 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling cc v1.0.29 [INFO] [stderr] Compiling gio v0.5.1 [INFO] [stderr] Compiling autocfg v0.1.2 [INFO] [stderr] Checking fragile v0.3.0 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Compiling gdk-pixbuf v0.5.0 [INFO] [stderr] Compiling failure_derive v0.1.5 [INFO] [stderr] Compiling cairo-rs v0.5.0 [INFO] [stderr] Checking siphasher v0.2.3 [INFO] [stderr] Compiling backtrace v0.3.13 [INFO] [stderr] Checking unicode-width v0.1.5 [INFO] [stderr] Checking rustc-demangle v0.1.13 [INFO] [stderr] Checking phf_shared v0.7.24 [INFO] [stderr] Compiling gdk v0.9.0 [INFO] [stderr] Compiling glib-sys v0.7.0 [INFO] [stderr] Compiling gobject-sys v0.7.0 [INFO] [stderr] Compiling gio-sys v0.7.0 [INFO] [stderr] Compiling cairo-sys-rs v0.7.0 [INFO] [stderr] Compiling gdk-pixbuf-sys v0.7.0 [INFO] [stderr] Compiling pango-sys v0.7.0 [INFO] [stderr] Compiling gdk-sys v0.7.0 [INFO] [stderr] Compiling atk-sys v0.7.0 [INFO] [stderr] Compiling quote v0.6.11 [INFO] [stderr] Compiling syn v0.15.26 [INFO] [stderr] Compiling gtk-sys v0.7.0 [INFO] [stderr] Checking cfg-if v0.1.6 [INFO] [stderr] Checking atty v0.2.11 [INFO] [stderr] Checking phf v0.7.24 [INFO] [stderr] Checking textwrap v0.10.0 [INFO] [stderr] Checking annotate-snippets v0.1.0 [INFO] [stderr] Checking vec_map v0.8.1 [INFO] [stderr] Compiling backtrace-sys v0.1.28 [INFO] [stderr] Checking strsim v0.7.0 [INFO] [stderr] Compiling gtk v0.5.0 [INFO] [stderr] Checking matches v0.1.8 [INFO] [stderr] Checking fluent-locale v0.4.1 [INFO] [stderr] Checking clap v2.32.0 [INFO] [stderr] Checking intl_pluralrules v1.0.2 [INFO] [stderr] Checking dunce v0.1.1 [INFO] [stderr] Checking fluent-syntax v0.1.1 [INFO] [stderr] Checking glib v0.6.1 [INFO] [stderr] Checking downcast-rs v1.0.3 [INFO] [stderr] Compiling synstructure v0.10.1 [INFO] [stderr] Checking pango v0.5.0 [INFO] [stderr] Checking failure v0.1.5 [INFO] [stderr] Checking fluent v0.4.3 [INFO] [stderr] Checking editor v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `App` [INFO] [stdout] --> src/service/mod.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::app::{App, AppContext}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `App` [INFO] [stdout] --> src/service/mod.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::app::{App, AppContext}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefMut` [INFO] [stdout] --> src/service/mod.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | use std::cell::RefMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/service/message.rs:10:40 [INFO] [stdout] | [INFO] [stdout] 10 | listeners: HashMap>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 10 | listeners: HashMap>>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/service/message.rs:11:54 [INFO] [stdout] | [INFO] [stdout] 11 | connections: HashMap Box>>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 11 | connections: HashMap Box>>>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/service/message.rs:10:40 [INFO] [stdout] | [INFO] [stdout] 10 | listeners: HashMap>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 10 | listeners: HashMap>>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/service/message.rs:11:54 [INFO] [stdout] | [INFO] [stdout] 11 | connections: HashMap Box>>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 11 | connections: HashMap Box>>>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `self.service_factory` as mutable more than once at a time [INFO] [stdout] --> src/app.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | self.service_factory.get_service(self) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^-----------^----^ [INFO] [stdout] | | | | [INFO] [stdout] | | | first mutable borrow occurs here [INFO] [stdout] | | first borrow later used by call [INFO] [stdout] | second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/app.rs:33:42 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn get_service(&mut self) -> &mut S { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 33 | self.service_factory.get_service(self) [INFO] [stdout] | ---------------------------------^^^^- [INFO] [stdout] | | | [INFO] [stdout] | | second mutable borrow occurs here [INFO] [stdout] | first mutable borrow occurs here [INFO] [stdout] | returning this value requires that `self.service_factory` is borrowed for `'1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/service/file.rs:125:39 [INFO] [stdout] | [INFO] [stdout] 125 | let mut fs = FileService::new(&app); [INFO] [stdout] | ---------------- ^^^^ types differ in mutability [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut AppContext` [INFO] [stdout] found reference `&App` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/service/mod.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | fn new(ctx: &mut AppContext) -> Self [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/service/file.rs:137:39 [INFO] [stdout] | [INFO] [stdout] 137 | let mut fs = FileService::new(&app); [INFO] [stdout] | ---------------- ^^^^ types differ in mutability [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut AppContext` [INFO] [stdout] found reference `&App` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/service/mod.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | fn new(ctx: &mut AppContext) -> Self [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0499`. [INFO] [stdout] [INFO] [stderr] error: could not compile `editor` (bin "editor") due to 3 previous errors; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/service/mod.rs:61:52 [INFO] [stdout] | [INFO] [stdout] 61 | let _ms = sr.get_service::(&app); [INFO] [stdout] | ----------------------------- ^^^^ types differ in mutability [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut AppContext` [INFO] [stdout] found reference `&App` [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/service/mod.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn get_service(&mut self, ctx: &mut AppContext) -> &mut S { [INFO] [stdout] | ^^^^^^^^^^^ -------------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/service/mod.rs:68:49 [INFO] [stdout] | [INFO] [stdout] 68 | let _ts = sr.get_service::(&app); [INFO] [stdout] | -------------------------- ^^^^ types differ in mutability [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut AppContext` [INFO] [stdout] found reference `&App` [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/service/mod.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn get_service(&mut self, ctx: &mut AppContext) -> &mut S { [INFO] [stdout] | ^^^^^^^^^^^ -------------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `self.service_factory` as mutable more than once at a time [INFO] [stdout] --> src/app.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | self.service_factory.get_service(self) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^-----------^----^ [INFO] [stdout] | | | | [INFO] [stdout] | | | first mutable borrow occurs here [INFO] [stdout] | | first borrow later used by call [INFO] [stdout] | second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/app.rs:33:42 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn get_service(&mut self) -> &mut S { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 33 | self.service_factory.get_service(self) [INFO] [stdout] | ---------------------------------^^^^- [INFO] [stdout] | | | [INFO] [stdout] | | second mutable borrow occurs here [INFO] [stdout] | first mutable borrow occurs here [INFO] [stdout] | returning this value requires that `self.service_factory` is borrowed for `'1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0499. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `editor` (bin "editor" test) due to 7 previous errors; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "8f14412b52aa64f5e18b7b9e539a6d204af6d7c1147f282e4bf039c6471d3e36", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8f14412b52aa64f5e18b7b9e539a6d204af6d7c1147f282e4bf039c6471d3e36", kill_on_drop: false }` [INFO] [stdout] 8f14412b52aa64f5e18b7b9e539a6d204af6d7c1147f282e4bf039c6471d3e36