[INFO] fetching crate rustbreak 2.0.0... [INFO] building rustbreak-2.0.0 against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] extracting crate rustbreak 2.0.0 into /workspace/builds/worker-1-tc1/source [INFO] started tweaking crates.io crate rustbreak 2.0.0 [INFO] finished tweaking crates.io crate rustbreak 2.0.0 [INFO] tweaked toml for crates.io crate rustbreak 2.0.0 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate rustbreak 2.0.0 on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate rustbreak 2.0.0 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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded getrandom v0.1.14 [INFO] [stderr] Downloaded serde_yaml v0.8.13 [INFO] [stderr] Downloaded thiserror-impl v1.0.20 [INFO] [stderr] Downloaded ron v0.6.0 [INFO] [stderr] Downloaded tempfile v3.1.0 [INFO] [stderr] Downloaded ppv-lite86 v0.2.8 [INFO] [stderr] Downloaded linked-hash-map v0.5.3 [INFO] [stderr] Downloaded anyhow v1.0.32 [INFO] [stderr] Downloaded bincode v1.3.1 [INFO] [stderr] Downloaded dtoa v0.4.6 [INFO] [stderr] Downloaded serde_derive v1.0.114 [INFO] [stderr] Downloaded thiserror v1.0.20 [INFO] [stderr] Downloaded serde v1.0.114 [INFO] [stderr] Downloaded syn v1.0.36 [INFO] [stderr] Downloaded yaml-rust v0.4.4 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0142d7a7537bf4074e88f03c52f92c217b8beee7205b31cb5b432551c3647afe [INFO] running `Command { std: "docker" "start" "-a" "0142d7a7537bf4074e88f03c52f92c217b8beee7205b31cb5b432551c3647afe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0142d7a7537bf4074e88f03c52f92c217b8beee7205b31cb5b432551c3647afe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0142d7a7537bf4074e88f03c52f92c217b8beee7205b31cb5b432551c3647afe", kill_on_drop: false }` [INFO] [stdout] 0142d7a7537bf4074e88f03c52f92c217b8beee7205b31cb5b432551c3647afe [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] be2846c420b634008af86cd0a563a3d93713be79052ff75cb35c9bac980152c0 [INFO] running `Command { std: "docker" "start" "-a" "be2846c420b634008af86cd0a563a3d93713be79052ff75cb35c9bac980152c0", kill_on_drop: false }` [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Compiling syn v1.0.36 [INFO] [stderr] Compiling ppv-lite86 v0.2.8 [INFO] [stderr] Compiling serde v1.0.114 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling tempfile v3.1.0 [INFO] [stderr] Compiling thiserror-impl v1.0.20 [INFO] [stderr] Compiling thiserror v1.0.20 [INFO] [stderr] Compiling rustbreak v2.0.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.29s [INFO] running `Command { std: "docker" "inspect" "be2846c420b634008af86cd0a563a3d93713be79052ff75cb35c9bac980152c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "be2846c420b634008af86cd0a563a3d93713be79052ff75cb35c9bac980152c0", kill_on_drop: false }` [INFO] [stdout] be2846c420b634008af86cd0a563a3d93713be79052ff75cb35c9bac980152c0 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8f96b5e2021153dda9ee57bc985194f374210542c0f95696feccd942e954af97 [INFO] running `Command { std: "docker" "start" "-a" "8f96b5e2021153dda9ee57bc985194f374210542c0f95696feccd942e954af97", kill_on_drop: false }` [INFO] [stderr] Compiling serde_derive v1.0.114 [INFO] [stderr] Compiling rustbreak v2.0.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved imports `rustbreak::deser::Bincode`, `rustbreak::deser::Ron`, `rustbreak::deser::Yaml` [INFO] [stdout] --> tests/integration_tests.rs:2:24 [INFO] [stdout] | [INFO] [stdout] 2 | use rustbreak::deser::{Bincode, DeSerializer, Ron, Yaml}; [INFO] [stdout] | ^^^^^^^ ^^^ ^^^^ no `Yaml` in `deser` [INFO] [stdout] | | | [INFO] [stdout] | | no `Ron` in `deser` [INFO] [stdout] | no `Bincode` in `deser` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/src/deser.rs:17:24 [INFO] [stdout] | [INFO] [stdout] 16 | #[cfg(feature = "bin_enc")] [INFO] [stdout] | ------------------- the item is gated behind the `bin_enc` feature [INFO] [stdout] 17 | pub use self::bincode::Bincode; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/src/deser.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 10 | #[cfg(feature = "ron_enc")] [INFO] [stdout] | ------------------- the item is gated behind the `ron_enc` feature [INFO] [stdout] 11 | pub use self::ron::Ron; [INFO] [stdout] | ^^^ [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/src/deser.rs:14:21 [INFO] [stdout] | [INFO] [stdout] 13 | #[cfg(feature = "yaml_enc")] [INFO] [stdout] | -------------------- the item is gated behind the `yaml_enc` feature [INFO] [stdout] 14 | pub use self::yaml::Yaml; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rustbreak::MmapDatabase` [INFO] [stdout] --> tests/integration_tests.rs:3:57 [INFO] [stdout] | [INFO] [stdout] 3 | use rustbreak::{Database, FileDatabase, MemoryDatabase, MmapDatabase, PathDatabase}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | no `MmapDatabase` in the root [INFO] [stdout] | help: a similar name exists in the module: `FileDatabase` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:926:10 [INFO] [stdout] | [INFO] [stdout] 925 | #[cfg(feature = "mmap")] [INFO] [stdout] | ---------------- the item is gated behind the `mmap` feature [INFO] [stdout] 926 | pub type MmapDatabase = Database; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `Deserialize` in `serde` [INFO] [stdout] --> src/lib.rs:1027:46 [INFO] [stdout] | [INFO] [stdout] 1027 | #[derive(Clone, Debug, Serialize, serde::Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ could not find `Deserialize` in `serde` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rustbreak::deser::Ron` [INFO] [stdout] --> examples/full.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rustbreak::deser::Ron; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ no `Ron` in `deser` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/src/deser.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 10 | #[cfg(feature = "ron_enc")] [INFO] [stdout] | ------------------- the item is gated behind the `ron_enc` feature [INFO] [stdout] 11 | pub use self::ron::Ron; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Serialize` in this scope [INFO] [stdout] --> src/lib.rs:1027:28 [INFO] [stdout] | [INFO] [stdout] 1027 | #[derive(Clone, Debug, Serialize, serde::Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Serialize` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/lib.rs:1011:9 [INFO] [stdout] | [INFO] [stdout] 1011 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 1011 + use serde_derive::Serialize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `ron` [INFO] [stdout] --> src/lib.rs:1275:13 [INFO] [stdout] | [INFO] [stdout] 1275 | ron::de::from_reader(&backend.get_data().expect("could not get data from backend")[..]) [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `ron` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `ron`, use `cargo add ron` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Ron` in module `crate::deser` [INFO] [stdout] --> src/lib.rs:1016:58 [INFO] [stdout] | [INFO] [stdout] 1016 | type TestDb = Database; [INFO] [stdout] | ^^^ not found in `crate::deser` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/deser.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 10 | #[cfg(feature = "ron_enc")] [INFO] [stdout] | ------------------- the item is gated behind the `ron_enc` feature [INFO] [stdout] 11 | pub use self::ron::Ron; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Ron` in module `crate::deser` [INFO] [stdout] --> src/lib.rs:1293:54 [INFO] [stdout] | [INFO] [stdout] 1293 | MemoryDatabase::, crate::deser::Ron>::memory(vec![]).expect("To be created"); [INFO] [stdout] | ^^^ not found in `crate::deser` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/deser.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 10 | #[cfg(feature = "ron_enc")] [INFO] [stdout] | ------------------- the item is gated behind the `ron_enc` feature [INFO] [stdout] 11 | pub use self::ron::Ron; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Ron` in module `crate::deser` [INFO] [stdout] --> src/lib.rs:1341:69 [INFO] [stdout] | [INFO] [stdout] 1341 | let _ = Database::::load_from_path_or_default( [INFO] [stdout] | ^^^ not found in `crate::deser` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/deser.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 10 | #[cfg(feature = "ron_enc")] [INFO] [stdout] | ------------------- the item is gated behind the `ron_enc` feature [INFO] [stdout] 11 | pub use self::ron::Ron; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Ron` in module `crate::deser` [INFO] [stdout] --> src/lib.rs:1352:69 [INFO] [stdout] | [INFO] [stdout] 1352 | let _ = Database::::load_from_path_or_default( [INFO] [stdout] | ^^^ not found in `crate::deser` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/deser.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 10 | #[cfg(feature = "ron_enc")] [INFO] [stdout] | ------------------- the item is gated behind the `ron_enc` feature [INFO] [stdout] 11 | pub use self::ron::Ron; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> examples/full.rs:25:15 [INFO] [stdout] | [INFO] [stdout] 25 | db.write(|db| { [INFO] [stdout] | ^^ [INFO] [stdout] 26 | db.insert( [INFO] [stdout] | ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 25 | db.write(|db: /* Type */| { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `rustbreak::deser::Ron`, `rustbreak::deser::Yaml` [INFO] [stdout] --> examples/switching.rs:4:24 [INFO] [stdout] | [INFO] [stdout] 4 | use rustbreak::deser::{Ron, Yaml}; [INFO] [stdout] | ^^^ ^^^^ no `Yaml` in `deser` [INFO] [stdout] | | [INFO] [stdout] | no `Ron` in `deser` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/src/deser.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 10 | #[cfg(feature = "ron_enc")] [INFO] [stdout] | ------------------- the item is gated behind the `ron_enc` feature [INFO] [stdout] 11 | pub use self::ron::Ron; [INFO] [stdout] | ^^^ [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/src/deser.rs:14:21 [INFO] [stdout] | [INFO] [stdout] 13 | #[cfg(feature = "yaml_enc")] [INFO] [stdout] | -------------------- the item is gated behind the `yaml_enc` feature [INFO] [stdout] 14 | pub use self::yaml::Yaml; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rustbreak::deser::Ron` [INFO] [stdout] --> examples/config.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use rustbreak::deser::Ron; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ no `Ron` in `deser` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/src/deser.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 10 | #[cfg(feature = "ron_enc")] [INFO] [stdout] | ------------------- the item is gated behind the `ron_enc` feature [INFO] [stdout] 11 | pub use self::ron::Ron; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0432. [INFO] [stdout] [INFO] [stderr] error: could not compile `rustbreak` (example "full") due to 2 previous errors [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `rustbreak` (test "integration_tests") due to 2 previous errors [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> examples/switching.rs:25:15 [INFO] [stdout] | [INFO] [stdout] 25 | db.write(|db| { [INFO] [stdout] | ^^ [INFO] [stdout] 26 | db.insert( [INFO] [stdout] | ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 25 | db.write(|db: /* Type */| { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read` found for struct `CONFIG` in the current scope [INFO] [stdout] --> examples/config.rs:50:10 [INFO] [stdout] | [INFO] [stdout] 24 | / lazy_static! { [INFO] [stdout] 25 | | static ref CONFIG: DB = { [INFO] [stdout] 26 | | let db = FileDatabase::load_from_path_or_default("/tmp/config.ron") [INFO] [stdout] 27 | | .expect("Create database from path"); [INFO] [stdout] ... | [INFO] [stdout] 30 | | }; [INFO] [stdout] 31 | | } [INFO] [stdout] | |_- method `read` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 49 | let _conf: Config = CONFIG [INFO] [stdout] | _________________________- [INFO] [stdout] 50 | | .read(|conf| conf.clone()) [INFO] [stdout] | | -^^^^ method not found in `CONFIG` [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `read`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `std::io::Read` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> examples/config.rs:50:16 [INFO] [stdout] | [INFO] [stdout] 50 | .read(|conf| conf.clone()) [INFO] [stdout] | ^^^^ ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 50 | .read(|conf: /* Type */| conf.clone()) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read` found for struct `CONFIG` in the current scope [INFO] [stdout] --> examples/config.rs:54:10 [INFO] [stdout] | [INFO] [stdout] 24 | / lazy_static! { [INFO] [stdout] 25 | | static ref CONFIG: DB = { [INFO] [stdout] 26 | | let db = FileDatabase::load_from_path_or_default("/tmp/config.ron") [INFO] [stdout] 27 | | .expect("Create database from path"); [INFO] [stdout] ... | [INFO] [stdout] 30 | | }; [INFO] [stdout] 31 | | } [INFO] [stdout] | |_- method `read` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 53 | let (user_path, allow_overwrite) = CONFIG [INFO] [stdout] | ________________________________________- [INFO] [stdout] 54 | | .read(|conf| (conf.user_path.clone(), conf.allow_overwrite.clone())) [INFO] [stdout] | | -^^^^ method not found in `CONFIG` [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `read`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `std::io::Read` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rustbreak` (example "switching") due to 2 previous errors [INFO] [stdout] Some errors have detailed explanations: E0282, E0432, E0599. [INFO] [stdout] [INFO] [stderr] error: could not compile `rustbreak` (example "config") due to 4 previous errors [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:1040:22 [INFO] [stdout] | [INFO] [stdout] 1040 | db.read(|d| d.get(&1).cloned()) [INFO] [stdout] | ^ --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 1040 | db.read(|d: /* Type */| d.get(&1).cloned()) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:1046:22 [INFO] [stdout] | [INFO] [stdout] 1046 | db.read(|d| d.get(&100).cloned()) [INFO] [stdout] | ^ --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 1046 | db.read(|d: /* Type */| d.get(&100).cloned()) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:1055:19 [INFO] [stdout] | [INFO] [stdout] 1055 | db.write(|d| d.insert(3, "Write to db".to_string())) [INFO] [stdout] | ^ ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 1055 | db.write(|d: /* Type */| d.insert(3, "Write to db".to_string())) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:1057:19 [INFO] [stdout] | [INFO] [stdout] 1057 | db.write(|d| d.insert(3, "Second write".to_string())) [INFO] [stdout] | ^ ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 1057 | db.write(|d: /* Type */| d.insert(3, "Second write".to_string())) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:1061:22 [INFO] [stdout] | [INFO] [stdout] 1061 | db.read(|d| d.get(&1).cloned()) [INFO] [stdout] | ^ --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 1061 | db.read(|d: /* Type */| d.get(&1).cloned()) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:1067:22 [INFO] [stdout] | [INFO] [stdout] 1067 | db.read(|d| d.get(&100).cloned()) [INFO] [stdout] | ^ --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 1067 | db.read(|d: /* Type */| d.get(&100).cloned()) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:1073:22 [INFO] [stdout] | [INFO] [stdout] 1073 | db.read(|d| d.get(&3).cloned()) [INFO] [stdout] | ^ --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 1073 | db.read(|d: /* Type */| d.get(&3).cloned()) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:1083:19 [INFO] [stdout] | [INFO] [stdout] 1083 | db.write(|d| d.clear()).expect("Rustbreak write error"); [INFO] [stdout] | ^ ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 1083 | db.write(|d: /* Type */| d.clear()).expect("Rustbreak write error"); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:1087:22 [INFO] [stdout] | [INFO] [stdout] 1087 | db.read(|d| d.get(&1).cloned()) [INFO] [stdout] | ^ --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 1087 | db.read(|d: /* Type */| d.get(&1).cloned()) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:1093:22 [INFO] [stdout] | [INFO] [stdout] 1093 | db.read(|d| d.get(&100).cloned()) [INFO] [stdout] | ^ --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 1093 | db.read(|d: /* Type */| d.get(&100).cloned()) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:1102:24 [INFO] [stdout] | [INFO] [stdout] 1102 | db.write_safe(|d| { [INFO] [stdout] | ^ [INFO] [stdout] 1103 | d.insert(3, "Write to db".to_string()); [INFO] [stdout] | ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 1102 | db.write_safe(|d: /* Type */| { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:1106:24 [INFO] [stdout] | [INFO] [stdout] 1106 | db.write_safe(|d| { [INFO] [stdout] | ^ [INFO] [stdout] 1107 | d.insert(3, "Second write".to_string()); [INFO] [stdout] | ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 1106 | db.write_safe(|d: /* Type */| { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:1112:22 [INFO] [stdout] | [INFO] [stdout] 1112 | db.read(|d| d.get(&1).cloned()) [INFO] [stdout] | ^ --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 1112 | db.read(|d: /* Type */| d.get(&1).cloned()) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:1118:22 [INFO] [stdout] | [INFO] [stdout] 1118 | db.read(|d| d.get(&100).cloned()) [INFO] [stdout] | ^ --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 1118 | db.read(|d: /* Type */| d.get(&100).cloned()) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:1124:22 [INFO] [stdout] | [INFO] [stdout] 1124 | db.read(|d| d.get(&3).cloned()) [INFO] [stdout] | ^ --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 1124 | db.read(|d: /* Type */| d.get(&3).cloned()) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:1134:26 [INFO] [stdout] | [INFO] [stdout] 1134 | .write_safe(|d| { [INFO] [stdout] | ^ [INFO] [stdout] 1135 | d.clear(); [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 1134 | .write_safe(|d: /* Type */| { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:1143:22 [INFO] [stdout] | [INFO] [stdout] 1143 | db.read(|d| d.get(&1).cloned()) [INFO] [stdout] | ^ --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 1143 | db.read(|d: /* Type */| d.get(&1).cloned()) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:1149:22 [INFO] [stdout] | [INFO] [stdout] 1149 | db.read(|d| d.get(&100).cloned()) [INFO] [stdout] | ^ --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 1149 | db.read(|d: /* Type */| d.get(&100).cloned()) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:1191:22 [INFO] [stdout] | [INFO] [stdout] 1191 | db.read(|d| d.get(&1).cloned()) [INFO] [stdout] | ^ --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 1191 | db.read(|d: /* Type */| d.get(&1).cloned()) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:1197:22 [INFO] [stdout] | [INFO] [stdout] 1197 | db.read(|d| d.get(&100).cloned()) [INFO] [stdout] | ^ --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 1197 | db.read(|d: /* Type */| d.get(&100).cloned()) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:1203:22 [INFO] [stdout] | [INFO] [stdout] 1203 | db.read(|d| d.get(&3).cloned()) [INFO] [stdout] | ^ --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 1203 | db.read(|d: /* Type */| d.get(&3).cloned()) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:1220:19 [INFO] [stdout] | [INFO] [stdout] 1220 | db.write(|d| d.clear()).expect("Rustbreak write error"); [INFO] [stdout] | ^ ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 1220 | db.write(|d: /* Type */| d.clear()).expect("Rustbreak write error"); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:1231:22 [INFO] [stdout] | [INFO] [stdout] 1231 | db.read(|d| d.get(&1).cloned()) [INFO] [stdout] | ^ --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 1231 | db.read(|d: /* Type */| d.get(&1).cloned()) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:1237:22 [INFO] [stdout] | [INFO] [stdout] 1237 | db.read(|d| d.get(&100).cloned()) [INFO] [stdout] | ^ --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 1237 | db.read(|d: /* Type */| d.get(&100).cloned()) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:1252:22 [INFO] [stdout] | [INFO] [stdout] 1252 | db.read(|d| d.get(&1).cloned()) [INFO] [stdout] | ^ --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 1252 | db.read(|d: /* Type */| d.get(&1).cloned()) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:1258:22 [INFO] [stdout] | [INFO] [stdout] 1258 | db.read(|d| d.get(&100).cloned()) [INFO] [stdout] | ^ --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 1258 | db.read(|d: /* Type */| d.get(&100).cloned()) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:1275:43 [INFO] [stdout] | [INFO] [stdout] 1275 | ron::de::from_reader(&backend.get_data().expect("could not get data from backend")[..]) [INFO] [stdout] | ^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0412, E0433. [INFO] [stdout] [INFO] [stderr] error: could not compile `rustbreak` (lib test) due to 34 previous errors [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "8f96b5e2021153dda9ee57bc985194f374210542c0f95696feccd942e954af97", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8f96b5e2021153dda9ee57bc985194f374210542c0f95696feccd942e954af97", kill_on_drop: false }` [INFO] [stdout] 8f96b5e2021153dda9ee57bc985194f374210542c0f95696feccd942e954af97