[INFO] cloning repository https://github.com/jdmichaud/rs-observable [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jdmichaud/rs-observable" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjdmichaud%2Frs-observable", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjdmichaud%2Frs-observable'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 33168d99c5c8eaa49a3f4b8b664a42e4594f6c4d [INFO] testing jdmichaud/rs-observable against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjdmichaud%2Frs-observable" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/jdmichaud/rs-observable [INFO] finished tweaking git repo https://github.com/jdmichaud/rs-observable [INFO] tweaked toml for git repo https://github.com/jdmichaud/rs-observable written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/jdmichaud/rs-observable on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/jdmichaud/rs-observable 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" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c54daead0c3e7edd219229c5942dec666f56ac745acc91608dad5fc758e94d3e [INFO] running `Command { std: "docker" "start" "-a" "c54daead0c3e7edd219229c5942dec666f56ac745acc91608dad5fc758e94d3e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c54daead0c3e7edd219229c5942dec666f56ac745acc91608dad5fc758e94d3e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c54daead0c3e7edd219229c5942dec666f56ac745acc91608dad5fc758e94d3e", kill_on_drop: false }` [INFO] [stdout] c54daead0c3e7edd219229c5942dec666f56ac745acc91608dad5fc758e94d3e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 43bdff514363bc6de2b2cce0ceae0a56a92dba2e20362e8e10a174911a25d2ce [INFO] running `Command { std: "docker" "start" "-a" "43bdff514363bc6de2b2cce0ceae0a56a92dba2e20362e8e10a174911a25d2ce", kill_on_drop: false }` [INFO] [stderr] Compiling observable v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0053]: method `start` has an incompatible type for trait [INFO] [stdout] --> src/main.rs:41:33 [INFO] [stdout] | [INFO] [stdout] 41 | fn start(&self, subscription: &mut DefaultSubscription>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `dyn Subscription`, found `&mut DefaultSubscription<...>` [INFO] [stdout] | [INFO] [stdout] note: type in trait [INFO] [stdout] --> src/main.rs:7:33 [INFO] [stdout] | [INFO] [stdout] 7 | fn start(&self, subscription: dyn Subscription); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: expected signature `fn(&SimpleObserver<_, _>, (dyn Subscription + 'static))` [INFO] [stdout] found signature `fn(&SimpleObserver<_, _>, &mut DefaultSubscription>)` [INFO] [stdout] help: change the parameter type to match the trait [INFO] [stdout] | [INFO] [stdout] 41 - fn start(&self, subscription: &mut DefaultSubscription>) { [INFO] [stdout] 41 + fn start(&self, subscription: (dyn Subscription + 'static)) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `subscribe` found for struct `DefaultObservable` in the current scope [INFO] [stdout] --> src/main.rs:118:35 [INFO] [stdout] | [INFO] [stdout] 23 | fn subscribe(self: Rc, observer: Self::Observer) -> Self::SubscriptionType; [INFO] [stdout] | --------- -------- the method might not be found because of this arbitrary self type [INFO] [stdout] | | [INFO] [stdout] | the method is available for `Rc>` here [INFO] [stdout] ... [INFO] [stdout] 85 | struct DefaultObservable { [INFO] [stdout] | -------------------------------------------- method `subscribe` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 118 | let _subscription1 = observable.subscribe(SimpleObserver:: { [INFO] [stdout] | -----------^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider wrapping the receiver expression with the appropriate type [INFO] [stdout] | [INFO] [stdout] 118 | let _subscription1 = Rc::new(observable).subscribe(SimpleObserver:: { [INFO] [stdout] | ++++++++ + [INFO] [stdout] help: there is a method `unsubscribe` with a similar name [INFO] [stdout] | [INFO] [stdout] 118 | let _subscription1 = observable.unsubscribe(SimpleObserver:: { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `subscribe` found for struct `DefaultObservable` in the current scope [INFO] [stdout] --> src/main.rs:125:35 [INFO] [stdout] | [INFO] [stdout] 23 | fn subscribe(self: Rc, observer: Self::Observer) -> Self::SubscriptionType; [INFO] [stdout] | --------- -------- the method might not be found because of this arbitrary self type [INFO] [stdout] | | [INFO] [stdout] | the method is available for `Rc>` here [INFO] [stdout] ... [INFO] [stdout] 85 | struct DefaultObservable { [INFO] [stdout] | -------------------------------------------- method `subscribe` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 125 | let _subscription2 = observable.subscribe(SimpleObserver:: { [INFO] [stdout] | -----------^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider wrapping the receiver expression with the appropriate type [INFO] [stdout] | [INFO] [stdout] 125 | let _subscription2 = Rc::new(observable).subscribe(SimpleObserver:: { [INFO] [stdout] | ++++++++ + [INFO] [stdout] help: there is a method `unsubscribe` with a similar name [INFO] [stdout] | [INFO] [stdout] 125 | let _subscription2 = observable.unsubscribe(SimpleObserver:: { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow data in an `Rc` as mutable [INFO] [stdout] --> src/main.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 75 | self.observable.unsubscribe(self.observer); [INFO] [stdout] | ^^^^^^^^^^^^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] = help: trait `DerefMut` is required to modify through a dereference, but it is not implemented for `Rc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.observer` which is behind a mutable reference [INFO] [stdout] --> src/main.rs:75:33 [INFO] [stdout] | [INFO] [stdout] 75 | self.observable.unsubscribe(self.observer); [INFO] [stdout] | ^^^^^^^^^^^^^ move occurs because `self.observer` has type `Rc<::Observer>`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: clone the value to increment its reference count [INFO] [stdout] | [INFO] [stdout] 75 | self.observable.unsubscribe(self.observer.clone()); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0053, E0507, E0596, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0053`. [INFO] [stdout] [INFO] [stderr] error: could not compile `observable` (bin "observable") due to 5 previous errors [INFO] running `Command { std: "docker" "inspect" "43bdff514363bc6de2b2cce0ceae0a56a92dba2e20362e8e10a174911a25d2ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "43bdff514363bc6de2b2cce0ceae0a56a92dba2e20362e8e10a174911a25d2ce", kill_on_drop: false }` [INFO] [stdout] 43bdff514363bc6de2b2cce0ceae0a56a92dba2e20362e8e10a174911a25d2ce