[INFO] cloning repository https://github.com/fengdotdev/centolla_get_post_lib [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/fengdotdev/centolla_get_post_lib" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffengdotdev%2Fcentolla_get_post_lib", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffengdotdev%2Fcentolla_get_post_lib'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e26028cd55db9c49b64f6c975cd597256b94857d [INFO] checking fengdotdev/centolla_get_post_lib against try#f45c1ab62d4de6b63f69b4daa9d1f0b90c38a208 for pr-139419 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffengdotdev%2Fcentolla_get_post_lib" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/fengdotdev/centolla_get_post_lib on toolchain f45c1ab62d4de6b63f69b4daa9d1f0b90c38a208 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f45c1ab62d4de6b63f69b4daa9d1f0b90c38a208" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/fengdotdev/centolla_get_post_lib [INFO] finished tweaking git repo https://github.com/fengdotdev/centolla_get_post_lib [INFO] tweaked toml for git repo https://github.com/fengdotdev/centolla_get_post_lib written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/fengdotdev/centolla_get_post_lib 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" "+f45c1ab62d4de6b63f69b4daa9d1f0b90c38a208" "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-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+f45c1ab62d4de6b63f69b4daa9d1f0b90c38a208" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] eb4bee555f339de35cf34f248b460c3db0725114c7dfb143287af071a46c3795 [INFO] running `Command { std: "docker" "start" "-a" "eb4bee555f339de35cf34f248b460c3db0725114c7dfb143287af071a46c3795", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "eb4bee555f339de35cf34f248b460c3db0725114c7dfb143287af071a46c3795", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eb4bee555f339de35cf34f248b460c3db0725114c7dfb143287af071a46c3795", kill_on_drop: false }` [INFO] [stdout] eb4bee555f339de35cf34f248b460c3db0725114c7dfb143287af071a46c3795 [INFO] checking fengdotdev/centolla_get_post_lib against try#f45c1ab62d4de6b63f69b4daa9d1f0b90c38a208 for pr-139419 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffengdotdev%2Fcentolla_get_post_lib" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/fengdotdev/centolla_get_post_lib on toolchain f45c1ab62d4de6b63f69b4daa9d1f0b90c38a208 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f45c1ab62d4de6b63f69b4daa9d1f0b90c38a208" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/fengdotdev/centolla_get_post_lib [INFO] finished tweaking git repo https://github.com/fengdotdev/centolla_get_post_lib [INFO] tweaked toml for git repo https://github.com/fengdotdev/centolla_get_post_lib written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/fengdotdev/centolla_get_post_lib 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" "+f45c1ab62d4de6b63f69b4daa9d1f0b90c38a208" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+f45c1ab62d4de6b63f69b4daa9d1f0b90c38a208" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7f1b8260df87771d69a866c57ac8fcd40c82713d6b944c209db8f793eb1fa384 [INFO] running `Command { std: "docker" "start" "-a" "7f1b8260df87771d69a866c57ac8fcd40c82713d6b944c209db8f793eb1fa384", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7f1b8260df87771d69a866c57ac8fcd40c82713d6b944c209db8f793eb1fa384", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7f1b8260df87771d69a866c57ac8fcd40c82713d6b944c209db8f793eb1fa384", kill_on_drop: false }` [INFO] [stdout] 7f1b8260df87771d69a866c57ac8fcd40c82713d6b944c209db8f793eb1fa384 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+f45c1ab62d4de6b63f69b4daa9d1f0b90c38a208" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fb6689e7703d15035029f890effad6fd1d01e4684ecd8f089e2397fe60434193 [INFO] running `Command { std: "docker" "start" "-a" "fb6689e7703d15035029f890effad6fd1d01e4684ecd8f089e2397fe60434193", kill_on_drop: false }` [INFO] [stderr] Checking centolla_get_post_lib v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `super::r_obj::R_ObjInterface` [INFO] [stdout] --> src/models/c_obj.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use super::r_obj::R_ObjInterface; [INFO] [stdout] | ^^^^^^^^^^^^^^-------------- [INFO] [stdout] | | | [INFO] [stdout] | | help: a similar name exists in the module: `RObjInterface` [INFO] [stdout] | no `R_ObjInterface` in `models::r_obj` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `super::r_obj::R_ObjInterface` [INFO] [stdout] --> src/models/c_obj.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use super::r_obj::R_ObjInterface; [INFO] [stdout] | ^^^^^^^^^^^^^^-------------- [INFO] [stdout] | | | [INFO] [stdout] | | help: a similar name exists in the module: `RObjInterface` [INFO] [stdout] | no `R_ObjInterface` in `models::r_obj` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `C_ObjInterface` should have an upper camel case name [INFO] [stdout] --> src/models/c_obj.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait C_ObjInterface { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `CObjInterface` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `C_Obj` should have an upper camel case name [INFO] [stdout] --> src/models/c_obj.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct C_Obj { [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `CObj` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::r_obj::RObjInterface` [INFO] [stdout] --> src/models/mock_r_obj.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::r_obj::RObjInterface; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr` [INFO] [stdout] --> src/lib.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::ptr; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `C_ObjInterface` should have an upper camel case name [INFO] [stdout] --> src/models/c_obj.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait C_ObjInterface { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `CObjInterface` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `C_Obj` should have an upper camel case name [INFO] [stdout] --> src/models/c_obj.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct C_Obj { [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `CObj` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::r_obj::RObjInterface` [INFO] [stdout] --> src/models/mock_r_obj.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::r_obj::RObjInterface; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr` [INFO] [stdout] --> src/lib.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::ptr; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing field `r_obj` in initializer of `C_Obj` [INFO] [stdout] --> src/models/c_obj.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | C_Obj { [INFO] [stdout] | ^^^^^ missing `r_obj` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing field `r_obj` in initializer of `C_Obj` [INFO] [stdout] --> src/models/c_obj.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | C_Obj { [INFO] [stdout] | ^^^^^ missing `r_obj` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/models/rust_obj.rs:14:22 [INFO] [stdout] | [INFO] [stdout] 14 | content: something, [INFO] [stdout] | ^^^^^^^^^ expected `Box`, found `dyn RObjInterface` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Box<(dyn RObjInterface + 'static)>` [INFO] [stdout] found trait object `(dyn RObjInterface + 'static)` [INFO] [stdout] = note: for more on the distinction between the stack and the heap, read https://doc.rust-lang.org/book/ch15-01-box.html, https://doc.rust-lang.org/rust-by-example/std/box.html, and https://doc.rust-lang.org/std/boxed/index.html [INFO] [stdout] help: store this in the heap by calling `Box::new` [INFO] [stdout] | [INFO] [stdout] 14 | content: Box::new(something), [INFO] [stdout] | +++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `(dyn RObjInterface + 'static)` cannot be known at compilation time [INFO] [stdout] --> src/models/rust_obj.rs:12:27 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new(something: dyn RObjInterface) -> RustObject { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `(dyn RObjInterface + 'static)` [INFO] [stdout] = help: unsized fn params are gated as an unstable feature [INFO] [stdout] help: you can use `impl Trait` as the argument type [INFO] [stdout] | [INFO] [stdout] 12 - pub fn new(something: dyn RObjInterface) -> RustObject { [INFO] [stdout] 12 + pub fn new(something: impl RObjInterface) -> RustObject { [INFO] [stdout] | [INFO] [stdout] help: function arguments must have a statically known size, borrowed types always have a known size [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new(something: &dyn RObjInterface) -> RustObject { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/models/rust_obj.rs:20:22 [INFO] [stdout] | [INFO] [stdout] 20 | content: builder_func(), [INFO] [stdout] | ^^^^^^^^^^^^^^ expected `Box`, found `dyn RObjInterface` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Box<(dyn RObjInterface + 'static)>` [INFO] [stdout] found trait object `(dyn RObjInterface + 'static)` [INFO] [stdout] = note: for more on the distinction between the stack and the heap, read https://doc.rust-lang.org/book/ch15-01-box.html, https://doc.rust-lang.org/rust-by-example/std/box.html, and https://doc.rust-lang.org/std/boxed/index.html [INFO] [stdout] help: store this in the heap by calling `Box::new` [INFO] [stdout] | [INFO] [stdout] 20 | content: Box::new(builder_func()), [INFO] [stdout] | +++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/models/rust_obj.rs:14:22 [INFO] [stdout] | [INFO] [stdout] 14 | content: something, [INFO] [stdout] | ^^^^^^^^^ expected `Box`, found `dyn RObjInterface` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Box<(dyn RObjInterface + 'static)>` [INFO] [stdout] found trait object `(dyn RObjInterface + 'static)` [INFO] [stdout] = note: for more on the distinction between the stack and the heap, read https://doc.rust-lang.org/book/ch15-01-box.html, https://doc.rust-lang.org/rust-by-example/std/box.html, and https://doc.rust-lang.org/std/boxed/index.html [INFO] [stdout] help: store this in the heap by calling `Box::new` [INFO] [stdout] | [INFO] [stdout] 14 | content: Box::new(something), [INFO] [stdout] | +++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `(dyn RObjInterface + 'static)` cannot be known at compilation time [INFO] [stdout] --> src/models/rust_obj.rs:12:27 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new(something: dyn RObjInterface) -> RustObject { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `(dyn RObjInterface + 'static)` [INFO] [stdout] = help: unsized fn params are gated as an unstable feature [INFO] [stdout] help: you can use `impl Trait` as the argument type [INFO] [stdout] | [INFO] [stdout] 12 - pub fn new(something: dyn RObjInterface) -> RustObject { [INFO] [stdout] 12 + pub fn new(something: impl RObjInterface) -> RustObject { [INFO] [stdout] | [INFO] [stdout] help: function arguments must have a statically known size, borrowed types always have a known size [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new(something: &dyn RObjInterface) -> RustObject { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/models/rust_obj.rs:20:22 [INFO] [stdout] | [INFO] [stdout] 20 | content: builder_func(), [INFO] [stdout] | ^^^^^^^^^^^^^^ expected `Box`, found `dyn RObjInterface` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Box<(dyn RObjInterface + 'static)>` [INFO] [stdout] found trait object `(dyn RObjInterface + 'static)` [INFO] [stdout] = note: for more on the distinction between the stack and the heap, read https://doc.rust-lang.org/book/ch15-01-box.html, https://doc.rust-lang.org/rust-by-example/std/box.html, and https://doc.rust-lang.org/std/boxed/index.html [INFO] [stdout] help: store this in the heap by calling `Box::new` [INFO] [stdout] | [INFO] [stdout] 20 | content: Box::new(builder_func()), [INFO] [stdout] | +++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/models/rust_obj.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn get_res(&self, call:String) -> String { [INFO] [stdout] | ------ expected `String` because of return type [INFO] [stdout] 25 | &self.content.get_res(call) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `String`, found `&String` [INFO] [stdout] | [INFO] [stdout] help: consider removing the borrow [INFO] [stdout] | [INFO] [stdout] 25 - &self.content.get_res(call) [INFO] [stdout] 25 + self.content.get_res(call) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/models/rust_obj.rs:29:14 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn post_res(&self, call:String) -> String { [INFO] [stdout] | ------ expected `String` because of return type [INFO] [stdout] 29 | &self.content.post_res(call) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `String`, found `&String` [INFO] [stdout] | [INFO] [stdout] help: consider removing the borrow [INFO] [stdout] | [INFO] [stdout] 29 - &self.content.post_res(call) [INFO] [stdout] 29 + self.content.post_res(call) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/models/rust_obj.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn get_res(&self, call:String) -> String { [INFO] [stdout] | ------ expected `String` because of return type [INFO] [stdout] 25 | &self.content.get_res(call) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `String`, found `&String` [INFO] [stdout] | [INFO] [stdout] help: consider removing the borrow [INFO] [stdout] | [INFO] [stdout] 25 - &self.content.get_res(call) [INFO] [stdout] 25 + self.content.get_res(call) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> src/lib.rs:19:42 [INFO] [stdout] | [INFO] [stdout] 19 | let obj = Box::into_raw(Box::new(RustObject::new())); [INFO] [stdout] | ^^^^^^^^^^^^^^^-- argument #1 of type `(dyn RObjInterface + 'static)` is missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/models/rust_obj.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new(something: dyn RObjInterface) -> RustObject { [INFO] [stdout] | ^^^ ---------------------------- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 19 | let obj = Box::into_raw(Box::new(RustObject::new(/* (dyn RObjInterface + 'static) */))); [INFO] [stdout] | +++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `(dyn RObjInterface + 'static)` cannot be known at compilation time [INFO] [stdout] --> src/lib.rs:19:42 [INFO] [stdout] | [INFO] [stdout] 19 | let obj = Box::into_raw(Box::new(RustObject::new())); [INFO] [stdout] | ^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `(dyn RObjInterface + 'static)` [INFO] [stdout] = note: all function arguments must have a statically known size [INFO] [stdout] = help: unsized fn params are gated as an unstable feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/models/rust_obj.rs:29:14 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn post_res(&self, call:String) -> String { [INFO] [stdout] | ------ expected `String` because of return type [INFO] [stdout] 29 | &self.content.post_res(call) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `String`, found `&String` [INFO] [stdout] | [INFO] [stdout] help: consider removing the borrow [INFO] [stdout] | [INFO] [stdout] 29 - &self.content.post_res(call) [INFO] [stdout] 29 + self.content.post_res(call) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> src/lib.rs:19:42 [INFO] [stdout] | [INFO] [stdout] 19 | let obj = Box::into_raw(Box::new(RustObject::new())); [INFO] [stdout] | ^^^^^^^^^^^^^^^-- argument #1 of type `(dyn RObjInterface + 'static)` is missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/models/rust_obj.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new(something: dyn RObjInterface) -> RustObject { [INFO] [stdout] | ^^^ ---------------------------- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 19 | let obj = Box::into_raw(Box::new(RustObject::new(/* (dyn RObjInterface + 'static) */))); [INFO] [stdout] | +++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `(dyn RObjInterface + 'static)` cannot be known at compilation time [INFO] [stdout] --> src/lib.rs:19:42 [INFO] [stdout] | [INFO] [stdout] 19 | let obj = Box::into_raw(Box::new(RustObject::new())); [INFO] [stdout] | ^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `(dyn RObjInterface + 'static)` [INFO] [stdout] = note: all function arguments must have a statically known size [INFO] [stdout] = help: unsized fn params are gated as an unstable feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `call` [INFO] [stdout] --> src/models/c_obj.rs:35:23 [INFO] [stdout] | [INFO] [stdout] 35 | fn get_res(&self, call:String) -> String { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_call` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `call` [INFO] [stdout] --> src/models/c_obj.rs:35:23 [INFO] [stdout] | [INFO] [stdout] 35 | fn get_res(&self, call:String) -> String { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_call` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `call` [INFO] [stdout] --> src/models/c_obj.rs:39:24 [INFO] [stdout] | [INFO] [stdout] 39 | fn post_res(&self, call:String) -> String { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_call` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `call` [INFO] [stdout] --> src/models/c_obj.rs:39:24 [INFO] [stdout] | [INFO] [stdout] 39 | fn post_res(&self, call:String) -> String { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_call` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0063, E0277, E0308, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0063, E0277, E0308, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `centolla_get_post_lib` (lib test) due to 9 previous errors; 6 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `centolla_get_post_lib` (lib) due to 9 previous errors; 6 warnings emitted [INFO] running `Command { std: "docker" "inspect" "fb6689e7703d15035029f890effad6fd1d01e4684ecd8f089e2397fe60434193", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fb6689e7703d15035029f890effad6fd1d01e4684ecd8f089e2397fe60434193", kill_on_drop: false }` [INFO] [stdout] fb6689e7703d15035029f890effad6fd1d01e4684ecd8f089e2397fe60434193