[INFO] fetching crate sailfish-web 0.2.0... [INFO] testing sailfish-web-0.2.0 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate sailfish-web 0.2.0 into /workspace/builds/worker-5-tc1/source [INFO] started tweaking crates.io crate sailfish-web 0.2.0 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate sailfish-web 0.2.0 [INFO] tweaked toml for crates.io crate sailfish-web 0.2.0 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate sailfish-web 0.2.0 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate sailfish-web 0.2.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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded sailfish v0.9.0 [INFO] [stderr] Downloaded sailfish-compiler v0.9.0 [INFO] [stderr] Downloaded sailfish-macros v0.9.0 [INFO] [stderr] Downloaded cc v1.2.12 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a35033becc080e296b824ced60323418b0c744386c96f8847548c6df33729025 [INFO] running `Command { std: "docker" "start" "-a" "a35033becc080e296b824ced60323418b0c744386c96f8847548c6df33729025", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a35033becc080e296b824ced60323418b0c744386c96f8847548c6df33729025", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a35033becc080e296b824ced60323418b0c744386c96f8847548c6df33729025", kill_on_drop: false }` [INFO] [stdout] a35033becc080e296b824ced60323418b0c744386c96f8847548c6df33729025 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bb5ffd7bf7ce394fc73e60e76e0a9da36a1037d5b1cfd0c93140bf95afd33129 [INFO] running `Command { std: "docker" "start" "-a" "bb5ffd7bf7ce394fc73e60e76e0a9da36a1037d5b1cfd0c93140bf95afd33129", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling serde v1.0.217 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Compiling winnow v0.7.1 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling sailfish-compiler v0.9.0 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling sailfish v0.9.0 [INFO] [stderr] Compiling itoap v1.0.1 [INFO] [stderr] Compiling ryu v1.0.19 [INFO] [stderr] Compiling indexmap v2.7.1 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling syn v2.0.98 [INFO] [stderr] Compiling filetime v0.2.25 [INFO] [stderr] Compiling serde_derive v1.0.217 [INFO] [stderr] Compiling serde_spanned v0.6.8 [INFO] [stderr] Compiling toml_datetime v0.6.8 [INFO] [stderr] Compiling toml_edit v0.22.23 [INFO] [stderr] Compiling toml v0.8.20 [INFO] [stderr] Compiling sailfish-macros v0.9.0 [INFO] [stderr] Compiling sailfish-web v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `template` is never read [INFO] [stdout] --> src/web_servers_support/template.rs:5:16 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct TemplateWrapper { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 5 | pub(crate) template: T, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 24.04s [INFO] running `Command { std: "docker" "inspect" "bb5ffd7bf7ce394fc73e60e76e0a9da36a1037d5b1cfd0c93140bf95afd33129", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bb5ffd7bf7ce394fc73e60e76e0a9da36a1037d5b1cfd0c93140bf95afd33129", kill_on_drop: false }` [INFO] [stdout] bb5ffd7bf7ce394fc73e60e76e0a9da36a1037d5b1cfd0c93140bf95afd33129 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 89858137812df398e3190356ea17b7270ed51fca125941fe6f858ef5b2294956 [INFO] running `Command { std: "docker" "start" "-a" "89858137812df398e3190356ea17b7270ed51fca125941fe6f858ef5b2294956", kill_on_drop: false }` [INFO] [stderr] Compiling sailfish-web v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `template` is never read [INFO] [stdout] --> src/web_servers_support/template.rs:5:16 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct TemplateWrapper { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 5 | pub(crate) template: T, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: Template file "test2.stpl" not found [INFO] [stdout] --> examples/res.rs:9:19 [INFO] [stdout] | [INFO] [stdout] 9 | #[template(path = "test2.stpl")] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: Template file "test.stpl" not found [INFO] [stdout] --> examples/rocket.rs:10:19 [INFO] [stdout] | [INFO] [stdout] 10 | #[template(path = "test.stpl")] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rocket` [INFO] [stdout] --> examples/rocket.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use rocket::get; [INFO] [stdout] | ^^^^^^ function `rocket` is not a crate or module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rocket` [INFO] [stdout] --> examples/rocket.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use rocket::launch; [INFO] [stdout] | ^^^^^^ function `rocket` is not a crate or module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: function `rocket` is not a crate or module [INFO] [stdout] --> examples/rocket.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use rocket::response::content::RawHtml; [INFO] [stdout] | ^^^^^^ function `rocket` is not a crate or module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rocket` [INFO] [stdout] --> examples/rocket.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rocket::routes; [INFO] [stdout] | ^^^^^^ function `rocket` is not a crate or module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rocket` [INFO] [stdout] --> examples/rocket.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use rocket::Response; [INFO] [stdout] | ^^^^^^ function `rocket` is not a crate or module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: Template file "test.stpl" not found [INFO] [stdout] --> examples/axum.rs:7:19 [INFO] [stdout] | [INFO] [stdout] 7 | #[template(path = "test.stpl")] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `axum` [INFO] [stdout] --> examples/axum.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use axum::{response::IntoResponse, routing::get, Router}; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `axum` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file examples/axum.rs, use `mod axum` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 1 + mod axum; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> examples/axum.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use tokio::net::TcpListener; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tokio`, use `cargo add tokio` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `axum` [INFO] [stdout] --> examples/axum.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use axum::{response::IntoResponse, routing::get, Router}; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `axum` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file examples/axum.rs, use `mod axum` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 1 + mod axum; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> examples/axum.rs:21:3 [INFO] [stdout] | [INFO] [stdout] 21 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `sailfish_web::option_result` [INFO] [stdout] --> examples/res.rs:6:19 [INFO] [stdout] | [INFO] [stdout] 6 | use sailfish_web::option_result::Res; [INFO] [stdout] | ^^^^^^^^^^^^^ could not find `option_result` in `sailfish_web` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 2 | #[cfg(feature = "option_result")] [INFO] [stdout] | ------------------------- the item is gated behind the `option_result` feature [INFO] [stdout] 3 | pub mod option_result; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: Template file "test2.stpl" not found [INFO] [stdout] --> examples/opt.rs:9:19 [INFO] [stdout] | [INFO] [stdout] 9 | #[template(path = "test2.stpl")] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `sailfish_web::option_result` [INFO] [stdout] --> examples/opt.rs:6:19 [INFO] [stdout] | [INFO] [stdout] 6 | use sailfish_web::option_result::Opt; [INFO] [stdout] | ^^^^^^^^^^^^^ could not find `option_result` in `sailfish_web` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 2 | #[cfg(feature = "option_result")] [INFO] [stdout] | ------------------------- the item is gated behind the `option_result` feature [INFO] [stdout] 3 | pub mod option_result; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: Template file "test.stpl" not found [INFO] [stdout] --> examples/warp.rs:5:19 [INFO] [stdout] | [INFO] [stdout] 5 | #[template(path = "test.stpl")] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `warp` [INFO] [stdout] --> examples/warp.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use warp::Filter; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `warp` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file examples/warp.rs, use `mod warp` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 1 + mod warp; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> examples/warp.rs:10:3 [INFO] [stdout] | [INFO] [stdout] 10 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `warp` [INFO] [stdout] --> examples/warp.rs:12:17 [INFO] [stdout] | [INFO] [stdout] 12 | let hello = warp::path!("hello" / String) [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `warp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `rocket` [INFO] [stdout] --> examples/rocket.rs:23:2 [INFO] [stdout] | [INFO] [stdout] 23 | } [INFO] [stdout] | ^ consider adding a `main` function to `examples/rocket.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: function `rocket` is not a crate or module [INFO] [stdout] --> examples/rocket.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | rocket::build().mount("/", routes![hello]) [INFO] [stdout] | ^^^^^^ function `rocket` is not a crate or module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `axum` [INFO] [stdout] --> examples/axum.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | axum::serve(listener, app.into_make_service()) [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `axum` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file examples/axum.rs, use `mod axum` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 1 + mod axum; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `sailfish-web` (example "axum") due to 6 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `sailfish-web` (example "rocket") due to 12 previous errors [INFO] [stdout] error[E0121]: the placeholder `_` is not allowed within types on item signatures for return types [INFO] [stdout] --> examples/rocket.rs:21:16 [INFO] [stdout] | [INFO] [stdout] 21 | fn rocket() -> _ { [INFO] [stdout] | ^ not allowed in type signatures [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `render_once` found for struct `TestTemplate` in the current scope [INFO] [stdout] --> examples/res.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 10 | struct TestTemplate { [INFO] [stdout] | ------------------- method `render_once` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 17 | / TestTemplate { [INFO] [stdout] 18 | | s: Ok("world".to_string()).into() [INFO] [stdout] 19 | | } [INFO] [stdout] 20 | | .render_once() [INFO] [stdout] | | -^^^^^^^^^^^ method not found in `TestTemplate` [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 traits define an item `render_once`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `TemplateOnce` [INFO] [stdout] candidate #2: `TemplateSimple` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `render_once` found for struct `TestTemplate` in the current scope [INFO] [stdout] --> examples/opt.rs:20:14 [INFO] [stdout] | [INFO] [stdout] 10 | struct TestTemplate { [INFO] [stdout] | ------------------- method `render_once` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 17 | / TestTemplate { [INFO] [stdout] 18 | | s: Some("world".to_string()).into() [INFO] [stdout] 19 | | } [INFO] [stdout] 20 | | .render_once() [INFO] [stdout] | | -^^^^^^^^^^^ method not found in `TestTemplate` [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 traits define an item `render_once`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `TemplateOnce` [INFO] [stdout] candidate #2: `TemplateSimple` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `render_once` found for struct `TestTemplate` in the current scope [INFO] [stdout] --> examples/opt.rs:23:50 [INFO] [stdout] | [INFO] [stdout] 10 | struct TestTemplate { [INFO] [stdout] | ------------------- method `render_once` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 23 | print!("{}", TestTemplate { s: None.into() }.render_once().unwrap()) [INFO] [stdout] | ^^^^^^^^^^^ method not found in `TestTemplate` [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 `render_once`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `TemplateOnce` [INFO] [stdout] candidate #2: `TemplateSimple` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `render_once` found for struct `TestTemplate` in the current scope [INFO] [stdout] --> examples/res.rs:25:45 [INFO] [stdout] | [INFO] [stdout] 10 | struct TestTemplate { [INFO] [stdout] | ------------------- method `render_once` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 25 | TestTemplate { s: Err(123).into() }.render_once().unwrap() [INFO] [stdout] | ^^^^^^^^^^^ method not found in `TestTemplate` [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 `render_once`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `TemplateOnce` [INFO] [stdout] candidate #2: `TemplateSimple` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `TestTemplate<'_>: TemplateSimple` is not satisfied [INFO] [stdout] --> examples/rocket.rs:17:27 [INFO] [stdout] | [INFO] [stdout] 17 | TemplateWrapper::from(TestTemplate { s: "test" }).into() [INFO] [stdout] | --------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] help: the trait `TemplateSimple` is not implemented for `TestTemplate<'_>` [INFO] [stdout] --> examples/rocket.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | struct TestTemplate<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `TemplateWrapper::::from` [INFO] [stdout] --> /opt/rustwide/workdir/src/web_servers_support/template.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | impl TemplateWrapper { [INFO] [stdout] | ^^^^^^^^^^^^^^ required by this bound in `TemplateWrapper::::from` [INFO] [stdout] 19 | /// Create an AxumTemplate from a TemplateSimple struct [INFO] [stdout] 20 | pub fn from(template: T) -> Self { [INFO] [stdout] | ---- required by a bound in this associated function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `TestTemplate<'_>: TemplateSimple` is not satisfied [INFO] [stdout] --> examples/rocket.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | TemplateWrapper::from(TestTemplate { s: "test" }).into() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `TemplateSimple` is not implemented for `TestTemplate<'_>` [INFO] [stdout] --> examples/rocket.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | struct TestTemplate<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `TemplateWrapper` [INFO] [stdout] --> /opt/rustwide/workdir/src/web_servers_support/template.rs:4:31 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct TemplateWrapper { [INFO] [stdout] | ^^^^^^^^^^^^^^ required by this bound in `TemplateWrapper` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `TestTemplate<'_>: TemplateSimple` is not satisfied [INFO] [stdout] --> examples/rocket.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | TemplateWrapper::from(TestTemplate { s: "test" }).into() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `TemplateSimple` is not implemented for `TestTemplate<'_>` [INFO] [stdout] --> examples/rocket.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | struct TestTemplate<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `TemplateWrapper` [INFO] [stdout] --> /opt/rustwide/workdir/src/web_servers_support/template.rs:4:31 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct TemplateWrapper { [INFO] [stdout] | ^^^^^^^^^^^^^^ required by this bound in `TemplateWrapper` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0121, E0277, E0432, E0433, E0601. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0121`. [INFO] [stdout] [INFO] [stdout] warning: field `template` is never read [INFO] [stdout] --> src/web_servers_support/template.rs:5:16 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct TemplateWrapper { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 5 | pub(crate) template: T, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `sailfish-web` (example "res") due to 4 previous errors [INFO] [stderr] error: could not compile `sailfish-web` (example "opt") due to 4 previous errors [INFO] [stdout] error[E0277]: the trait bound `TestTemplate<'_>: TemplateSimple` is not satisfied [INFO] [stdout] --> examples/warp.rs:14:51 [INFO] [stdout] | [INFO] [stdout] 14 | .map(|name: String| TemplateWrapper::from(TestTemplate { s: &name }).into_resp()); [INFO] [stdout] | --------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] help: the trait `TemplateSimple` is not implemented for `TestTemplate<'_>` [INFO] [stdout] --> examples/warp.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | struct TestTemplate<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `TemplateWrapper::::from` [INFO] [stdout] --> /opt/rustwide/workdir/src/web_servers_support/template.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | impl TemplateWrapper { [INFO] [stdout] | ^^^^^^^^^^^^^^ required by this bound in `TemplateWrapper::::from` [INFO] [stdout] 19 | /// Create an AxumTemplate from a TemplateSimple struct [INFO] [stdout] 20 | pub fn from(template: T) -> Self { [INFO] [stdout] | ---- required by a bound in this associated function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_resp` found for struct `TemplateWrapper` in the current scope [INFO] [stdout] --> examples/warp.rs:14:78 [INFO] [stdout] | [INFO] [stdout] 14 | .map(|name: String| TemplateWrapper::from(TestTemplate { s: &name }).into_resp()); [INFO] [stdout] | ^^^^^^^^^ method not found in `TemplateWrapper>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `TestTemplate<'_>: TemplateSimple` is not satisfied [INFO] [stdout] --> examples/warp.rs:14:29 [INFO] [stdout] | [INFO] [stdout] 14 | .map(|name: String| TemplateWrapper::from(TestTemplate { s: &name }).into_resp()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `TemplateSimple` is not implemented for `TestTemplate<'_>` [INFO] [stdout] --> examples/warp.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | struct TestTemplate<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `TemplateWrapper` [INFO] [stdout] --> /opt/rustwide/workdir/src/web_servers_support/template.rs:4:31 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct TemplateWrapper { [INFO] [stdout] | ^^^^^^^^^^^^^^ required by this bound in `TemplateWrapper` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `warp` [INFO] [stdout] --> examples/warp.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | warp::serve(hello).run(([127, 0, 0, 1], 3030)).await; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `warp` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file examples/warp.rs, use `mod warp` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 1 + mod warp; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> examples/warp.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432, E0433, E0599, E0752. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `sailfish-web` (example "warp") due to 9 previous errors [INFO] running `Command { std: "docker" "inspect" "89858137812df398e3190356ea17b7270ed51fca125941fe6f858ef5b2294956", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "89858137812df398e3190356ea17b7270ed51fca125941fe6f858ef5b2294956", kill_on_drop: false }` [INFO] [stdout] 89858137812df398e3190356ea17b7270ed51fca125941fe6f858ef5b2294956