[INFO] fetching crate templatia 0.0.4-alpha.1... [INFO] testing templatia-0.0.4-alpha.1 against master#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146098-8 [INFO] extracting crate templatia 0.0.4-alpha.1 into /workspace/builds/worker-5-tc1/source [INFO] started tweaking crates.io crate templatia 0.0.4-alpha.1 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate templatia 0.0.4-alpha.1 [INFO] tweaked toml for crates.io crate templatia 0.0.4-alpha.1 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate templatia 0.0.4-alpha.1 on toolchain c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate templatia 0.0.4-alpha.1 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" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded templatia-derive v0.0.4-alpha.1 [INFO] [stderr] Downloaded chumsky v0.11.1 [INFO] [stderr] Downloaded regex-syntax v0.7.5 [INFO] [stderr] Downloaded regex-automata v0.3.9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b65b4935dce9f2c8c44d107b41ffe188473403fbb5c4d14b5338de555ea71e49 [INFO] running `Command { std: "docker" "start" "-a" "b65b4935dce9f2c8c44d107b41ffe188473403fbb5c4d14b5338de555ea71e49", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b65b4935dce9f2c8c44d107b41ffe188473403fbb5c4d14b5338de555ea71e49", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b65b4935dce9f2c8c44d107b41ffe188473403fbb5c4d14b5338de555ea71e49", kill_on_drop: false }` [INFO] [stdout] b65b4935dce9f2c8c44d107b41ffe188473403fbb5c4d14b5338de555ea71e49 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 90ab11e401ca882617c4ad0e4690d653ed8e8931c7de49fd77237ffa8ae8f1d7 [INFO] running `Command { std: "docker" "start" "-a" "90ab11e401ca882617c4ad0e4690d653ed8e8931c7de49fd77237ffa8ae8f1d7", kill_on_drop: false }` [INFO] [stderr] Compiling thiserror v2.0.16 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling thiserror-impl v2.0.16 [INFO] [stderr] Compiling templatia v0.0.4-alpha.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.68s [INFO] running `Command { std: "docker" "inspect" "90ab11e401ca882617c4ad0e4690d653ed8e8931c7de49fd77237ffa8ae8f1d7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "90ab11e401ca882617c4ad0e4690d653ed8e8931c7de49fd77237ffa8ae8f1d7", kill_on_drop: false }` [INFO] [stdout] 90ab11e401ca882617c4ad0e4690d653ed8e8931c7de49fd77237ffa8ae8f1d7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 625c453daf4468ab67a3c872eac3136e44ff94db94a0d689a0169d5e4c7c9d24 [INFO] running `Command { std: "docker" "start" "-a" "625c453daf4468ab67a3c872eac3136e44ff94db94a0d689a0169d5e4c7c9d24", kill_on_drop: false }` [INFO] [stderr] Compiling templatia v0.0.4-alpha.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.72s [INFO] running `Command { std: "docker" "inspect" "625c453daf4468ab67a3c872eac3136e44ff94db94a0d689a0169d5e4c7c9d24", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "625c453daf4468ab67a3c872eac3136e44ff94db94a0d689a0169d5e4c7c9d24", kill_on_drop: false }` [INFO] [stdout] 625c453daf4468ab67a3c872eac3136e44ff94db94a0d689a0169d5e4c7c9d24 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 5c1a4e6efebb27a8e6a2d3313abbec71d810c90f2bd11ed5357d89c5fb74f193 [INFO] running `Command { std: "docker" "start" "-a" "5c1a4e6efebb27a8e6a2d3313abbec71d810c90f2bd11ed5357d89c5fb74f193", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.06s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/templatia-2e7ba9373de67b89) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running tests/manual_implementations.rs (/opt/rustwide/target/debug/deps/manual_implementations-6d24e90e40dd1de2) [INFO] [stdout] [INFO] [stdout] running 14 tests [INFO] [stdout] test manual_implementation_tests::custom_error_type ... ok [INFO] [stdout] test manual_implementation_tests::generic_key_value_parse_errors ... ok [INFO] [stdout] test manual_implementation_edge_cases::empty_template_implementation ... ok [INFO] [stdout] test manual_implementation_edge_cases::unit_struct_implementation ... ok [INFO] [stdout] test manual_implementation_tests::generic_key_value_string ... ok [INFO] [stdout] test manual_implementation_edge_cases::complex_nested_parse_errors ... ok [INFO] [stdout] test manual_implementation_edge_cases::complex_nested_implementation ... ok [INFO] [stdout] test manual_implementation_tests::point_tuple_struct_implementation ... ok [INFO] [stdout] test manual_implementation_tests::point_tuple_struct_parse_errors ... ok [INFO] [stdout] test manual_implementation_tests::point_tuple_struct_roundtrip ... ok [INFO] [stdout] test manual_implementation_tests::generic_key_value_boolean ... ok [INFO] [stderr] Doc-tests templatia [INFO] [stdout] test manual_implementation_tests::generic_key_value_numeric ... ok [INFO] [stdout] test manual_implementation_tests::server_config_manual_implementation ... ok [INFO] [stdout] test manual_implementation_tests::server_config_parse_errors ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 14 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 13 tests [INFO] [stdout] test src/lib.rs - (line 264) ... FAILED [INFO] [stdout] test src/lib.rs - (line 131) ... FAILED [INFO] [stdout] test src/lib.rs - (line 146) ... FAILED [INFO] [stdout] test src/lib.rs - (line 62) ... FAILED [INFO] [stdout] test src/lib.rs - (line 162) ... FAILED [INFO] [stdout] test src/lib.rs - (line 110) ... FAILED [INFO] [stdout] test src/lib.rs - (line 32) ... FAILED [INFO] [stdout] test src/lib.rs - (line 184) ... ok [INFO] [stdout] test src/lib.rs - Template::render_string (line 463) ... FAILED [INFO] [stdout] test src/lib.rs - (line 90) ... FAILED [INFO] [stdout] test src/lib.rs - Template::from_str (line 508) ... FAILED [INFO] [stdout] test src/lib.rs - Template (line 353) ... ok [INFO] [stdout] test src/lib.rs - Template (line 399) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 264) stdout ---- [INFO] [stdout] error: cannot find derive macro `Template` in this scope [INFO] [stdout] --> src/lib.rs:268:10 [INFO] [stdout] | [INFO] [stdout] 268 | #[derive(Template)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Template` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/lib.rs:266:17 [INFO] [stdout] | [INFO] [stdout] 266 | use templatia::{Template, TemplateError}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `templatia` in this scope [INFO] [stdout] --> src/lib.rs:269:3 [INFO] [stdout] | [INFO] [stdout] 269 | #[templatia(template = "port={port}")] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `templatia` is imported here, but it is a crate, not an attribute [INFO] [stdout] --> src/lib.rs:264:1 [INFO] [stdout] | [INFO] [stdout] 264 | extern crate r#templatia; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Template` in this scope [INFO] [stdout] --> src/lib.rs:279:10 [INFO] [stdout] | [INFO] [stdout] 279 | #[derive(Template)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Template` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/lib.rs:266:17 [INFO] [stdout] | [INFO] [stdout] 266 | use templatia::{Template, TemplateError}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `templatia` in this scope [INFO] [stdout] --> src/lib.rs:280:3 [INFO] [stdout] | [INFO] [stdout] 280 | #[templatia(template = "id={id}-backup-{id}")] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `templatia` is imported here, but it is a crate, not an attribute [INFO] [stdout] --> src/lib.rs:264:1 [INFO] [stdout] | [INFO] [stdout] 264 | extern crate r#templatia; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_str` found for struct `Config` in the current scope [INFO] [stdout] --> src/lib.rs:273:15 [INFO] [stdout] | [INFO] [stdout] 270 | struct Config { port: u16 } [INFO] [stdout] | ------------- function or associated item `from_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 273 | match Config::from_str("port=not_a_number") { [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `Config` [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 traits define an item `from_str`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `FromStr` [INFO] [stdout] candidate #2: `Template` [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 273 - match Config::from_str("port=not_a_number") { [INFO] [stdout] 273 + match Config::from("port=not_a_number") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_str` found for struct `BackupConfig` in the current scope [INFO] [stdout] --> src/lib.rs:283:21 [INFO] [stdout] | [INFO] [stdout] 281 | struct BackupConfig { id: String } [INFO] [stdout] | ------------------- function or associated item `from_str` not found for this struct [INFO] [stdout] 282 | [INFO] [stdout] 283 | match BackupConfig::from_str("id=prod-backup-dev") { [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `BackupConfig` [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 traits define an item `from_str`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `FromStr` [INFO] [stdout] candidate #2: `Template` [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 283 - match BackupConfig::from_str("id=prod-backup-dev") { [INFO] [stdout] 283 + match BackupConfig::from("id=prod-backup-dev") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 131) stdout ---- [INFO] [stdout] error: cannot find derive macro `Template` in this scope [INFO] [stdout] --> src/lib.rs:135:10 [INFO] [stdout] | [INFO] [stdout] 135 | #[derive(Template)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Template` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/lib.rs:133:5 [INFO] [stdout] | [INFO] [stdout] 133 | use templatia::Template; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `templatia` in this scope [INFO] [stdout] --> src/lib.rs:136:3 [INFO] [stdout] | [INFO] [stdout] 136 | #[templatia(template = "value={value}")] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `templatia` is imported here, but it is a crate, not an attribute [INFO] [stdout] --> src/lib.rs:131:1 [INFO] [stdout] | [INFO] [stdout] 131 | extern crate r#templatia; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_str` found for struct `OptionalValue` in the current scope [INFO] [stdout] --> src/lib.rs:141:29 [INFO] [stdout] | [INFO] [stdout] 137 | struct OptionalValue { [INFO] [stdout] | -------------------- function or associated item `from_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 141 | let parsed = OptionalValue::from_str("value=").unwrap(); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `OptionalValue` [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 traits define an item `from_str`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `FromStr` [INFO] [stdout] candidate #2: `Template` [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 141 - let parsed = OptionalValue::from_str("value=").unwrap(); [INFO] [stdout] 141 + let parsed = OptionalValue::from("value=").unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 146) stdout ---- [INFO] [stdout] error: cannot find derive macro `Template` in this scope [INFO] [stdout] --> src/lib.rs:150:10 [INFO] [stdout] | [INFO] [stdout] 150 | #[derive(Template)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Template` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/lib.rs:148:5 [INFO] [stdout] | [INFO] [stdout] 148 | use templatia::Template; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `templatia` in this scope [INFO] [stdout] --> src/lib.rs:151:3 [INFO] [stdout] | [INFO] [stdout] 151 | #[templatia(template = "value={value}", empty_str_option_not_none)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `templatia` is imported here, but it is a crate, not an attribute [INFO] [stdout] --> src/lib.rs:146:1 [INFO] [stdout] | [INFO] [stdout] 146 | extern crate r#templatia; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_str` found for struct `OptionalValue` in the current scope [INFO] [stdout] --> src/lib.rs:156:29 [INFO] [stdout] | [INFO] [stdout] 152 | struct OptionalValue { [INFO] [stdout] | -------------------- function or associated item `from_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 156 | let parsed = OptionalValue::from_str("value=").unwrap(); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `OptionalValue` [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 traits define an item `from_str`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `FromStr` [INFO] [stdout] candidate #2: `Template` [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 156 - let parsed = OptionalValue::from_str("value=").unwrap(); [INFO] [stdout] 156 + let parsed = OptionalValue::from("value=").unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 62) stdout ---- [INFO] [stdout] error: cannot find derive macro `Template` in this scope [INFO] [stdout] --> src/lib.rs:66:10 [INFO] [stdout] | [INFO] [stdout] 66 | #[derive(Template)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Template` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/lib.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | use templatia::Template; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `templatia` in this scope [INFO] [stdout] --> src/lib.rs:67:3 [INFO] [stdout] | [INFO] [stdout] 67 | #[templatia(template = "postgresql://{host}:{port}/{database}")] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `templatia` is imported here, but it is a crate, not an attribute [INFO] [stdout] --> src/lib.rs:62:1 [INFO] [stdout] | [INFO] [stdout] 62 | extern crate r#templatia; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `render_string` found for struct `PostgresUrl` in the current scope [INFO] [stdout] --> src/lib.rs:80:16 [INFO] [stdout] | [INFO] [stdout] 68 | struct PostgresUrl { [INFO] [stdout] | ------------------ method `render_string` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 80 | assert_eq!(url.render_string(), "postgresql://db.example.com:5432/production"); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `PostgresUrl` [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 `render_string`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Template` [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_str` found for struct `PostgresUrl` in the current scope [INFO] [stdout] --> src/lib.rs:82:27 [INFO] [stdout] | [INFO] [stdout] 68 | struct PostgresUrl { [INFO] [stdout] | ------------------ function or associated item `from_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 82 | let parsed = PostgresUrl::from_str("postgresql://localhost:5432/test").unwrap(); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `PostgresUrl` [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 traits define an item `from_str`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `FromStr` [INFO] [stdout] candidate #2: `Template` [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 82 - let parsed = PostgresUrl::from_str("postgresql://localhost:5432/test").unwrap(); [INFO] [stdout] 82 + let parsed = PostgresUrl::from("postgresql://localhost:5432/test").unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 162) stdout ---- [INFO] [stdout] error: cannot find derive macro `Template` in this scope [INFO] [stdout] --> src/lib.rs:166:10 [INFO] [stdout] | [INFO] [stdout] 166 | #[derive(Template)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Template` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/lib.rs:164:5 [INFO] [stdout] | [INFO] [stdout] 164 | use templatia::Template; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `templatia` in this scope [INFO] [stdout] --> src/lib.rs:167:3 [INFO] [stdout] | [INFO] [stdout] 167 | #[templatia(template = "id={id}", allow_missing_placeholders)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `templatia` is imported here, but it is a crate, not an attribute [INFO] [stdout] --> src/lib.rs:162:1 [INFO] [stdout] | [INFO] [stdout] 162 | extern crate r#templatia; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_str` found for struct `Config` in the current scope [INFO] [stdout] --> src/lib.rs:174:22 [INFO] [stdout] | [INFO] [stdout] 168 | struct Config { [INFO] [stdout] | ------------- function or associated item `from_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 174 | let config = Config::from_str("id=42").unwrap(); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `Config` [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 traits define an item `from_str`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `FromStr` [INFO] [stdout] candidate #2: `Template` [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 174 - let config = Config::from_str("id=42").unwrap(); [INFO] [stdout] 174 + let config = Config::from("id=42").unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 110) stdout ---- [INFO] [stdout] error: cannot find derive macro `Template` in this scope [INFO] [stdout] --> src/lib.rs:114:10 [INFO] [stdout] | [INFO] [stdout] 114 | #[derive(Template)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Template` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/lib.rs:112:5 [INFO] [stdout] | [INFO] [stdout] 112 | use templatia::Template; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `templatia` in this scope [INFO] [stdout] --> src/lib.rs:115:3 [INFO] [stdout] | [INFO] [stdout] 115 | #[templatia(template = "host={host}:{port}", allow_missing_placeholders)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `templatia` is imported here, but it is a crate, not an attribute [INFO] [stdout] --> src/lib.rs:110:1 [INFO] [stdout] | [INFO] [stdout] 110 | extern crate r#templatia; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_str` found for struct `ServerConfig` in the current scope [INFO] [stdout] --> src/lib.rs:123:28 [INFO] [stdout] | [INFO] [stdout] 116 | struct ServerConfig { [INFO] [stdout] | ------------------- function or associated item `from_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 123 | let config = ServerConfig::from_str("host=localhost:8080").unwrap(); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `ServerConfig` [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 traits define an item `from_str`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `FromStr` [INFO] [stdout] candidate #2: `Template` [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 123 - let config = ServerConfig::from_str("host=localhost:8080").unwrap(); [INFO] [stdout] 123 + let config = ServerConfig::from("host=localhost:8080").unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 32) stdout ---- [INFO] [stdout] error: cannot find derive macro `Template` in this scope [INFO] [stdout] --> src/lib.rs:36:10 [INFO] [stdout] | [INFO] [stdout] 36 | #[derive(Template)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Template` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/lib.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | use templatia::Template; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `render_string` found for struct `DatabaseConfig` in the current scope [INFO] [stdout] --> src/lib.rs:50:23 [INFO] [stdout] | [INFO] [stdout] 37 | struct DatabaseConfig { [INFO] [stdout] | --------------------- method `render_string` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 50 | let template = config.render_string(); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `DatabaseConfig` [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 `render_string`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Template` [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_str` found for struct `DatabaseConfig` in the current scope [INFO] [stdout] --> src/lib.rs:54:30 [INFO] [stdout] | [INFO] [stdout] 37 | struct DatabaseConfig { [INFO] [stdout] | --------------------- function or associated item `from_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 54 | let parsed = DatabaseConfig::from_str(&template).unwrap(); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `DatabaseConfig` [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 traits define an item `from_str`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `FromStr` [INFO] [stdout] candidate #2: `Template` [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 54 - let parsed = DatabaseConfig::from_str(&template).unwrap(); [INFO] [stdout] 54 + let parsed = DatabaseConfig::from(&template).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Template::render_string (line 463) stdout ---- [INFO] [stdout] error: cannot find derive macro `Template` in this scope [INFO] [stdout] --> src/lib.rs:467:10 [INFO] [stdout] | [INFO] [stdout] 467 | #[derive(Template)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Template` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/lib.rs:465:5 [INFO] [stdout] | [INFO] [stdout] 465 | use templatia::Template; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `render_string` found for struct `AppConfig` in the current scope [INFO] [stdout] --> src/lib.rs:478:23 [INFO] [stdout] | [INFO] [stdout] 468 | struct AppConfig { [INFO] [stdout] | ---------------- method `render_string` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 478 | let template = config.render_string(); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `AppConfig` [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 `render_string`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Template` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 90) stdout ---- [INFO] [stdout] error: cannot find derive macro `Template` in this scope [INFO] [stdout] --> src/lib.rs:94:10 [INFO] [stdout] | [INFO] [stdout] 94 | #[derive(Template)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Template` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/lib.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | use templatia::Template; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `templatia` in this scope [INFO] [stdout] --> src/lib.rs:95:3 [INFO] [stdout] | [INFO] [stdout] 95 | #[templatia(template = "Welcome {name}! Your name is {name}.")] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `templatia` is imported here, but it is a crate, not an attribute [INFO] [stdout] --> src/lib.rs:90:1 [INFO] [stdout] | [INFO] [stdout] 90 | extern crate r#templatia; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `render_string` found for struct `Greeting` in the current scope [INFO] [stdout] --> src/lib.rs:101:21 [INFO] [stdout] | [INFO] [stdout] 96 | struct Greeting { [INFO] [stdout] | --------------- method `render_string` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 101 | assert_eq!(greeting.render_string(), "Welcome Alice! Your name is Alice."); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `Greeting` [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 `render_string`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Template` [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_str` found for struct `Greeting` in the current scope [INFO] [stdout] --> src/lib.rs:104:24 [INFO] [stdout] | [INFO] [stdout] 96 | struct Greeting { [INFO] [stdout] | --------------- function or associated item `from_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 104 | let result = Greeting::from_str("Welcome Alice! Your name is Bob."); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `Greeting` [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 traits define an item `from_str`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `FromStr` [INFO] [stdout] candidate #2: `Template` [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 104 - let result = Greeting::from_str("Welcome Alice! Your name is Bob."); [INFO] [stdout] 104 + let result = Greeting::from("Welcome Alice! Your name is Bob."); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Template::from_str (line 508) stdout ---- [INFO] [stdout] error: cannot find derive macro `Template` in this scope [INFO] [stdout] --> src/lib.rs:512:10 [INFO] [stdout] | [INFO] [stdout] 512 | #[derive(Template, PartialEq, Debug)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Template` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/lib.rs:510:17 [INFO] [stdout] | [INFO] [stdout] 510 | use templatia::{Template, TemplateError}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `templatia` in this scope [INFO] [stdout] --> src/lib.rs:513:3 [INFO] [stdout] | [INFO] [stdout] 513 | #[templatia(template = "host={host}:{port}")] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `templatia` is imported here, but it is a crate, not an attribute [INFO] [stdout] --> src/lib.rs:508:1 [INFO] [stdout] | [INFO] [stdout] 508 | extern crate r#templatia; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_str` found for struct `Connection` in the current scope [INFO] [stdout] --> src/lib.rs:520:24 [INFO] [stdout] | [INFO] [stdout] 514 | struct Connection { [INFO] [stdout] | ----------------- function or associated item `from_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 520 | let conn = Connection::from_str("host=localhost:8080").unwrap(); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `Connection` [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 traits define an item `from_str`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `FromStr` [INFO] [stdout] candidate #2: `Template` [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 520 - let conn = Connection::from_str("host=localhost:8080").unwrap(); [INFO] [stdout] 520 + let conn = Connection::from("host=localhost:8080").unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_str` found for struct `Connection` in the current scope [INFO] [stdout] --> src/lib.rs:525:19 [INFO] [stdout] | [INFO] [stdout] 514 | struct Connection { [INFO] [stdout] | ----------------- function or associated item `from_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 525 | match Connection::from_str("host=localhost:invalid_port") { [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `Connection` [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 traits define an item `from_str`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `FromStr` [INFO] [stdout] candidate #2: `Template` [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 525 - match Connection::from_str("host=localhost:invalid_port") { [INFO] [stdout] 525 + match Connection::from("host=localhost:invalid_port") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 110) [INFO] [stdout] src/lib.rs - (line 131) [INFO] [stdout] src/lib.rs - (line 146) [INFO] [stdout] src/lib.rs - (line 162) [INFO] [stdout] src/lib.rs - (line 264) [INFO] [stdout] src/lib.rs - (line 32) [INFO] [stdout] src/lib.rs - (line 62) [INFO] [stdout] src/lib.rs - (line 90) [INFO] [stdout] src/lib.rs - Template::from_str (line 508) [INFO] [stdout] src/lib.rs - Template::render_string (line 463) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 3 passed; 10 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.75s [INFO] [stdout] [INFO] [stdout] all doctests ran in 0.95s; merged doctests compilation took 0.20s [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "5c1a4e6efebb27a8e6a2d3313abbec71d810c90f2bd11ed5357d89c5fb74f193", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5c1a4e6efebb27a8e6a2d3313abbec71d810c90f2bd11ed5357d89c5fb74f193", kill_on_drop: false }` [INFO] [stdout] 5c1a4e6efebb27a8e6a2d3313abbec71d810c90f2bd11ed5357d89c5fb74f193