[INFO] fetching crate templatia 0.0.4-alpha.1... [INFO] testing templatia-0.0.4-alpha.1 against 1.91.0 for beta-1.92-2 [INFO] extracting crate templatia 0.0.4-alpha.1 into /workspace/builds/worker-4-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-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate templatia 0.0.4-alpha.1 on toolchain 1.91.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.91.0" "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" "+1.91.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [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-automata v0.3.9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+1.91.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a7cd8e3f5fc225bbbb08dbeaa5afb5c4749f4b66b70ea964f2c0ce686fc2ec03 [INFO] running `Command { std: "docker" "start" "-a" "a7cd8e3f5fc225bbbb08dbeaa5afb5c4749f4b66b70ea964f2c0ce686fc2ec03", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a7cd8e3f5fc225bbbb08dbeaa5afb5c4749f4b66b70ea964f2c0ce686fc2ec03", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a7cd8e3f5fc225bbbb08dbeaa5afb5c4749f4b66b70ea964f2c0ce686fc2ec03", kill_on_drop: false }` [INFO] [stdout] a7cd8e3f5fc225bbbb08dbeaa5afb5c4749f4b66b70ea964f2c0ce686fc2ec03 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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" "+1.91.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 46340112b8e4921ad94de4a0bc36f4a870e5d5241927c1d3b5cf69b58b961b9e [INFO] running `Command { std: "docker" "start" "-a" "46340112b8e4921ad94de4a0bc36f4a870e5d5241927c1d3b5cf69b58b961b9e", 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.95s [INFO] running `Command { std: "docker" "inspect" "46340112b8e4921ad94de4a0bc36f4a870e5d5241927c1d3b5cf69b58b961b9e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "46340112b8e4921ad94de4a0bc36f4a870e5d5241927c1d3b5cf69b58b961b9e", kill_on_drop: false }` [INFO] [stdout] 46340112b8e4921ad94de4a0bc36f4a870e5d5241927c1d3b5cf69b58b961b9e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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" "+1.91.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 27b13fc6d9c2076c3020ee47288a0d3d8e49e2116ca5782f339a0e9efa0a85d6 [INFO] running `Command { std: "docker" "start" "-a" "27b13fc6d9c2076c3020ee47288a0d3d8e49e2116ca5782f339a0e9efa0a85d6", 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.47s [INFO] running `Command { std: "docker" "inspect" "27b13fc6d9c2076c3020ee47288a0d3d8e49e2116ca5782f339a0e9efa0a85d6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "27b13fc6d9c2076c3020ee47288a0d3d8e49e2116ca5782f339a0e9efa0a85d6", kill_on_drop: false }` [INFO] [stdout] 27b13fc6d9c2076c3020ee47288a0d3d8e49e2116ca5782f339a0e9efa0a85d6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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" "+1.91.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] d58aa4e15e018f32c9cda1fc04460cd9928ce9aa7e902a6955ca21568f52017d [INFO] running `Command { std: "docker" "start" "-a" "d58aa4e15e018f32c9cda1fc04460cd9928ce9aa7e902a6955ca21568f52017d", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/templatia-48ad7b8b67b902b6) [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-6b848ca64310ad69) [INFO] [stdout] [INFO] [stdout] running 14 tests [INFO] [stdout] test manual_implementation_edge_cases::complex_nested_implementation ... ok [INFO] [stdout] test manual_implementation_edge_cases::complex_nested_parse_errors ... ok [INFO] [stdout] test manual_implementation_edge_cases::unit_struct_implementation ... ok [INFO] [stdout] test manual_implementation_edge_cases::empty_template_implementation ... ok [INFO] [stdout] test manual_implementation_tests::custom_error_type ... ok [INFO] [stdout] test manual_implementation_tests::generic_key_value_boolean ... ok [INFO] [stdout] test manual_implementation_tests::generic_key_value_numeric ... 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] [stderr] Doc-tests templatia [INFO] [stdout] test manual_implementation_tests::server_config_manual_implementation ... ok [INFO] [stdout] test manual_implementation_tests::point_tuple_struct_roundtrip ... ok [INFO] [stdout] test manual_implementation_tests::server_config_parse_errors ... ok [INFO] [stdout] test manual_implementation_tests::generic_key_value_parse_errors ... ok [INFO] [stdout] test manual_implementation_tests::generic_key_value_string ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 14 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 13 tests [INFO] [stdout] test src/lib.rs - (line 146) ... 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 264) ... FAILED [INFO] [stdout] test src/lib.rs - (line 131) ... FAILED [INFO] [stdout] test src/lib.rs - Template::render_string (line 463) ... FAILED [INFO] [stdout] test src/lib.rs - (line 162) ... FAILED [INFO] [stdout] test src/lib.rs - (line 62) ... 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 399) ... ok [INFO] [stdout] test src/lib.rs - (line 184) ... ok [INFO] [stdout] test src/lib.rs - Template (line 353) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [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] 7 | #[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] 5 | 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] 8 | #[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] 3 | 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] 9 | struct OptionalValue { [INFO] [stdout] | -------------------- function or associated item `from_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 13 | 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] 13 - let parsed = OptionalValue::from_str("value=").unwrap(); [INFO] [stdout] 13 + 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 110) stdout ---- [INFO] [stdout] error: cannot find derive macro `Template` in this scope [INFO] [stdout] --> src/lib.rs:114:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[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] 5 | 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] 8 | #[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] 3 | 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] 9 | struct ServerConfig { [INFO] [stdout] | ------------------- function or associated item `from_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 16 | 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] 16 - let config = ServerConfig::from_str("host=localhost:8080").unwrap(); [INFO] [stdout] 16 + 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] 7 | #[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] 5 | 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] 8 | struct DatabaseConfig { [INFO] [stdout] | --------------------- method `render_string` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 21 | 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] 8 | struct DatabaseConfig { [INFO] [stdout] | --------------------- function or associated item `from_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 25 | 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] 25 - let parsed = DatabaseConfig::from_str(&template).unwrap(); [INFO] [stdout] 25 + 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 - (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] 7 | #[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] 5 | 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] 8 | #[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] 3 | 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] 18 | #[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] 5 | 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] 19 | #[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] 3 | 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] 9 | struct Config { port: u16 } [INFO] [stdout] | ------------- function or associated item `from_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 12 | 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] 12 - match Config::from_str("port=not_a_number") { [INFO] [stdout] 12 + 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] 20 | struct BackupConfig { id: String } [INFO] [stdout] | ------------------- function or associated item `from_str` not found for this struct [INFO] [stdout] 21 | [INFO] [stdout] 22 | 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] 22 - match BackupConfig::from_str("id=prod-backup-dev") { [INFO] [stdout] 22 + 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] 7 | #[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] 5 | 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] 8 | #[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] 3 | 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] 9 | struct OptionalValue { [INFO] [stdout] | -------------------- function or associated item `from_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 13 | 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] 13 - let parsed = OptionalValue::from_str("value=").unwrap(); [INFO] [stdout] 13 + 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 - 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] 7 | #[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] 5 | 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] 8 | struct AppConfig { [INFO] [stdout] | ---------------- method `render_string` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 18 | 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 162) stdout ---- [INFO] [stdout] error: cannot find derive macro `Template` in this scope [INFO] [stdout] --> src/lib.rs:166:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[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] 5 | 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] 8 | #[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] 3 | 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] 9 | struct Config { [INFO] [stdout] | ------------- function or associated item `from_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 15 | 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] 15 - let config = Config::from_str("id=42").unwrap(); [INFO] [stdout] 15 + 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 62) stdout ---- [INFO] [stdout] error: cannot find derive macro `Template` in this scope [INFO] [stdout] --> src/lib.rs:66:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[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] 5 | 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] 8 | #[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] 3 | 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] 9 | struct PostgresUrl { [INFO] [stdout] | ------------------ method `render_string` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 21 | 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] 9 | struct PostgresUrl { [INFO] [stdout] | ------------------ function or associated item `from_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 23 | 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] 23 - let parsed = PostgresUrl::from_str("postgresql://localhost:5432/test").unwrap(); [INFO] [stdout] 23 + 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 90) stdout ---- [INFO] [stdout] error: cannot find derive macro `Template` in this scope [INFO] [stdout] --> src/lib.rs:94:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[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] 5 | 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] 8 | #[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] 3 | 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] 9 | struct Greeting { [INFO] [stdout] | --------------- method `render_string` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 14 | 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] 9 | struct Greeting { [INFO] [stdout] | --------------- function or associated item `from_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 17 | 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] 17 - let result = Greeting::from_str("Welcome Alice! Your name is Bob."); [INFO] [stdout] 17 + 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] 7 | #[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] 5 | 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] 8 | #[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] 3 | 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] 9 | struct Connection { [INFO] [stdout] | ----------------- function or associated item `from_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 15 | 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] 15 - let conn = Connection::from_str("host=localhost:8080").unwrap(); [INFO] [stdout] 15 + 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] 9 | struct Connection { [INFO] [stdout] | ----------------- function or associated item `from_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 20 | 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] 20 - match Connection::from_str("host=localhost:invalid_port") { [INFO] [stdout] 20 + 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.58s [INFO] [stdout] [INFO] [stdout] all doctests ran in 0.90s; merged doctests compilation took 0.32s [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "d58aa4e15e018f32c9cda1fc04460cd9928ce9aa7e902a6955ca21568f52017d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d58aa4e15e018f32c9cda1fc04460cd9928ce9aa7e902a6955ca21568f52017d", kill_on_drop: false }` [INFO] [stdout] d58aa4e15e018f32c9cda1fc04460cd9928ce9aa7e902a6955ca21568f52017d