[INFO] cloning repository https://github.com/lyv28/LoadRust_final [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lyv28/LoadRust_final" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flyv28%2FLoadRust_final", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flyv28%2FLoadRust_final'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 13628bcb980199f297602277eca740da20c6315a [INFO] checking lyv28/LoadRust_final against master#899eb03926be23f2e5d2ffcaa1d6f9ac40af7f13 for pr-127827-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flyv28%2FLoadRust_final" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] [stderr] Updating files: 52% (997/1915) Updating files: 53% (1015/1915) Updating files: 54% (1035/1915) Updating files: 55% (1054/1915) Updating files: 55% (1056/1915) Updating files: 56% (1073/1915) Updating files: 57% (1092/1915) Updating files: 58% (1111/1915) Updating files: 59% (1130/1915) Updating files: 60% (1149/1915) Updating files: 60% (1150/1915) Updating files: 61% (1169/1915) Updating files: 62% (1188/1915) Updating files: 63% (1207/1915) Updating files: 64% (1226/1915) Updating files: 65% (1245/1915) Updating files: 66% (1264/1915) Updating files: 67% (1284/1915) Updating files: 68% (1303/1915) Updating files: 69% (1322/1915) Updating files: 70% (1341/1915) Updating files: 71% (1360/1915) Updating files: 72% (1379/1915) Updating files: 73% (1398/1915) Updating files: 74% (1418/1915) Updating files: 75% (1437/1915) Updating files: 76% (1456/1915) Updating files: 77% (1475/1915) Updating files: 78% (1494/1915) Updating files: 79% (1513/1915) Updating files: 80% (1532/1915) Updating files: 81% (1552/1915) Updating files: 82% (1571/1915) Updating files: 83% (1590/1915) Updating files: 84% (1609/1915) Updating files: 84% (1627/1915) Updating files: 85% (1628/1915) Updating files: 86% (1647/1915) Updating files: 87% (1667/1915) Updating files: 88% (1686/1915) Updating files: 89% (1705/1915) Updating files: 90% (1724/1915) Updating files: 91% (1743/1915) Updating files: 92% (1762/1915) Updating files: 93% (1781/1915) Updating files: 94% (1801/1915) Updating files: 95% (1820/1915) Updating files: 96% (1839/1915) Updating files: 97% (1858/1915) Updating files: 98% (1877/1915) Updating files: 99% (1896/1915) Updating files: 100% (1915/1915) Updating files: 100% (1915/1915), done. [INFO] validating manifest of git repo https://github.com/lyv28/LoadRust_final on toolchain 899eb03926be23f2e5d2ffcaa1d6f9ac40af7f13 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+899eb03926be23f2e5d2ffcaa1d6f9ac40af7f13" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/lyv28/LoadRust_final [INFO] finished tweaking git repo https://github.com/lyv28/LoadRust_final [INFO] tweaked toml for git repo https://github.com/lyv28/LoadRust_final written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/lyv28/LoadRust_final 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" "+899eb03926be23f2e5d2ffcaa1d6f9ac40af7f13" "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] Downloading crates ... [INFO] [stderr] Downloaded no-std-compat v0.4.1 [INFO] [stderr] Downloaded quanta v0.9.3 [INFO] [stderr] Downloaded nonzero_ext v0.3.0 [INFO] [stderr] Downloaded crossbeam-utils v0.8.19 [INFO] [stderr] Downloaded raw-cpuid v10.7.0 [INFO] [stderr] Downloaded bumpalo v3.15.4 [INFO] [stderr] Downloaded governor v0.4.2 [INFO] [stderr] Downloaded h2 v0.3.24 [INFO] [stderr] Downloaded syn v2.0.52 [INFO] [stderr] Downloaded indexmap v2.2.5 [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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+899eb03926be23f2e5d2ffcaa1d6f9ac40af7f13" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3cdec477370f64c9921d10588136031d55870f6e790422286d169c6e71964005 [INFO] running `Command { std: "docker" "start" "-a" "3cdec477370f64c9921d10588136031d55870f6e790422286d169c6e71964005", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3cdec477370f64c9921d10588136031d55870f6e790422286d169c6e71964005", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3cdec477370f64c9921d10588136031d55870f6e790422286d169c6e71964005", kill_on_drop: false }` [INFO] [stdout] 3cdec477370f64c9921d10588136031d55870f6e790422286d169c6e71964005 [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=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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+899eb03926be23f2e5d2ffcaa1d6f9ac40af7f13" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0073d05fb5eba4b0d24438c7a2af426c428cf6b64b02e05b1ea8e3174b5339c2 [INFO] running `Command { std: "docker" "start" "-a" "0073d05fb5eba4b0d24438c7a2af426c428cf6b64b02e05b1ea8e3174b5339c2", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.78 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Checking smallvec v1.13.1 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Checking memchr v2.7.1 [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stderr] Checking bytes v1.5.0 [INFO] [stderr] Checking getrandom v0.2.12 [INFO] [stderr] Checking socket2 v0.5.6 [INFO] [stderr] Checking itoa v1.0.10 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Checking indexmap v2.2.5 [INFO] [stderr] Checking raw-cpuid v10.7.0 [INFO] [stderr] Checking dashmap v5.5.3 [INFO] [stderr] Checking no-std-compat v0.4.1 [INFO] [stderr] Checking nonzero_ext v0.3.0 [INFO] [stderr] Checking futures-timer v3.0.3 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling syn v2.0.52 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking quanta v0.9.3 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking tokio v1.36.0 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Checking governor v0.4.2 [INFO] [stderr] Checking tokio-util v0.7.10 [INFO] [stderr] Checking h2 v0.3.24 [INFO] [stderr] Checking hyper v0.14.28 [INFO] [stderr] Checking loadbalancer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/backends2.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | /// Crée un service HTTP qui utilise `handle_request` pour chaque requête. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 15 | / let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] 16 | | Ok::<_, hyper::Error>(service_fn(handle_request)) [INFO] [stdout] 17 | | }); [INFO] [stdout] | |_______- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::Infallible` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::convert::Infallible; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::Infallible` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::convert::Infallible; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/backends2.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | /// Lie le serveur à l'adresse spécifiée et commence à écouter les requêtes. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 20 | let server = Server::bind(&addr).serve(make_svc); [INFO] [stdout] | ------------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/backends2.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | /// Gère les erreurs potentielles du serveur. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 24 | / if let Err(e) = server.await { [INFO] [stdout] 25 | | eprintln!("Erreur serveur: {}", e); [INFO] [stdout] 26 | | } [INFO] [stdout] | |_____- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/backends.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | /// Ensemble global des backends disponibles. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | /// Construit l'URI cible en combinant l'URL du backend avec le chemin de la requête. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | let uri_string = format!("{}{}", backend_url, req.uri().path_and_query().map(|x| x.as_str()).unwrap_or("")); [INFO] [stdout] | ------------------------------------------------------------------------------------------------------------ rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/backends.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | /// Ensemble global des backends disponibles. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StatusCode` [INFO] [stdout] --> src/backends.rs:66:41 [INFO] [stdout] | [INFO] [stdout] 66 | use hyper::{Body, Response, Server, StatusCode}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | /// Effectue la requête vers le backend sélectionné. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 17 | client.request(req).await [INFO] [stdout] | ------------------------- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | /// Construit l'URI cible en combinant l'URL du backend avec le chemin de la requête. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | let uri_string = format!("{}{}", backend_url, req.uri().path_and_query().map(|x| x.as_str()).unwrap_or("")); [INFO] [stdout] | ------------------------------------------------------------------------------------------------------------ rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | /// Retourne une réponse d'erreur si aucun backend n'est disponible. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 20 | Ok(Response::new(Body::from("No backend available"))) [INFO] [stdout] | ----------------------------------------------------- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | /// Lance la boucle de vérification de l'état de santé des backends en arrière-plan. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 28 | tokio::spawn(health_check_loop()); [INFO] [stdout] | --------------------------------- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | /// Effectue la requête vers le backend sélectionné. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 17 | client.request(req).await [INFO] [stdout] | ------------------------- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | /// Configure et démarre le serveur HTTP pour écouter les requêtes entrantes. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 32 | / let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] 33 | | Ok::<_, hyper::Error>(service_fn(forward_request)) [INFO] [stdout] 34 | | }); [INFO] [stdout] | |_______- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | /// Retourne une réponse d'erreur si aucun backend n'est disponible. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 20 | Ok(Response::new(Body::from("No backend available"))) [INFO] [stdout] | ----------------------------------------------------- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | /// Lance la boucle de vérification de l'état de santé des backends en arrière-plan. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 28 | tokio::spawn(health_check_loop()); [INFO] [stdout] | --------------------------------- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | /// Configure et démarre le serveur HTTP pour écouter les requêtes entrantes. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 32 | / let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] 33 | | Ok::<_, hyper::Error>(service_fn(forward_request)) [INFO] [stdout] 34 | | }); [INFO] [stdout] | |_______- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/backends2.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | /// Crée un service HTTP qui utilise `handle_request` pour chaque requête. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 15 | / let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] 16 | | Ok::<_, hyper::Error>(service_fn(handle_request)) [INFO] [stdout] 17 | | }); [INFO] [stdout] | |_______- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/backends2.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | /// Lie le serveur à l'adresse spécifiée et commence à écouter les requêtes. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 20 | let server = Server::bind(&addr).serve(make_svc); [INFO] [stdout] | ------------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/backends2.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | /// Gère les erreurs potentielles du serveur. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 24 | / if let Err(e) = server.await { [INFO] [stdout] 25 | | eprintln!("Erreur serveur: {}", e); [INFO] [stdout] 26 | | } [INFO] [stdout] | |_____- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/backends1.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | /// Crée un service HTTP qui utilise `handle_request` pour chaque requête. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 15 | / let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] 16 | | Ok::<_, hyper::Error>(service_fn(handle_request)) [INFO] [stdout] 17 | | }); [INFO] [stdout] | |_______- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/backends1.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | /// Lie le serveur à l'adresse spécifiée et commence à écouter les requêtes. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 20 | let server = Server::bind(&addr).serve(make_svc); [INFO] [stdout] | ------------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/backends1.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | /// Gère les erreurs potentielles du serveur. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 24 | / if let Err(e) = server.await { [INFO] [stdout] 25 | | eprintln!("Erreur serveur: {}", e); [INFO] [stdout] 26 | | } [INFO] [stdout] | |_____- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/backends1.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | /// Crée un service HTTP qui utilise `handle_request` pour chaque requête. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 15 | / let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] 16 | | Ok::<_, hyper::Error>(service_fn(handle_request)) [INFO] [stdout] 17 | | }); [INFO] [stdout] | |_______- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/backends1.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | /// Lie le serveur à l'adresse spécifiée et commence à écouter les requêtes. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 20 | let server = Server::bind(&addr).serve(make_svc); [INFO] [stdout] | ------------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/backends1.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | /// Gère les erreurs potentielles du serveur. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 24 | / if let Err(e) = server.await { [INFO] [stdout] 25 | | eprintln!("Erreur serveur: {}", e); [INFO] [stdout] 26 | | } [INFO] [stdout] | |_____- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 29.75s [INFO] running `Command { std: "docker" "inspect" "0073d05fb5eba4b0d24438c7a2af426c428cf6b64b02e05b1ea8e3174b5339c2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0073d05fb5eba4b0d24438c7a2af426c428cf6b64b02e05b1ea8e3174b5339c2", kill_on_drop: false }` [INFO] [stdout] 0073d05fb5eba4b0d24438c7a2af426c428cf6b64b02e05b1ea8e3174b5339c2 [INFO] checking lyv28/LoadRust_final against try#71e0d7ccb3d54cfc766c826c50c8d523223fcc5c for pr-127827-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flyv28%2FLoadRust_final" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] [stderr] Updating files: 50% (962/1915) Updating files: 51% (977/1915) Updating files: 52% (996/1915) Updating files: 53% (1015/1915) Updating files: 54% (1035/1915) Updating files: 54% (1052/1915) Updating files: 55% (1054/1915) Updating files: 56% (1073/1915) Updating files: 57% (1092/1915) Updating files: 58% (1111/1915) Updating files: 59% (1130/1915) Updating files: 60% (1149/1915) Updating files: 60% (1150/1915) Updating files: 61% (1169/1915) Updating files: 62% (1188/1915) Updating files: 63% (1207/1915) Updating files: 64% (1226/1915) Updating files: 65% (1245/1915) Updating files: 66% (1264/1915) Updating files: 67% (1284/1915) Updating files: 68% (1303/1915) Updating files: 69% (1322/1915) Updating files: 70% (1341/1915) Updating files: 71% (1360/1915) Updating files: 72% (1379/1915) Updating files: 73% (1398/1915) Updating files: 74% (1418/1915) Updating files: 75% (1437/1915) Updating files: 76% (1456/1915) Updating files: 77% (1475/1915) Updating files: 78% (1494/1915) Updating files: 79% (1513/1915) Updating files: 80% (1532/1915) Updating files: 81% (1552/1915) Updating files: 82% (1571/1915) Updating files: 83% (1590/1915) Updating files: 84% (1609/1915) Updating files: 85% (1628/1915) Updating files: 86% (1647/1915) Updating files: 87% (1667/1915) Updating files: 88% (1686/1915) Updating files: 89% (1705/1915) Updating files: 90% (1724/1915) Updating files: 91% (1743/1915) Updating files: 92% (1762/1915) Updating files: 93% (1781/1915) Updating files: 94% (1801/1915) Updating files: 94% (1819/1915) Updating files: 95% (1820/1915) Updating files: 96% (1839/1915) Updating files: 97% (1858/1915) Updating files: 98% (1877/1915) Updating files: 99% (1896/1915) Updating files: 100% (1915/1915) Updating files: 100% (1915/1915), done. [INFO] validating manifest of git repo https://github.com/lyv28/LoadRust_final on toolchain 71e0d7ccb3d54cfc766c826c50c8d523223fcc5c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+71e0d7ccb3d54cfc766c826c50c8d523223fcc5c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/lyv28/LoadRust_final [INFO] finished tweaking git repo https://github.com/lyv28/LoadRust_final [INFO] tweaked toml for git repo https://github.com/lyv28/LoadRust_final written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/lyv28/LoadRust_final 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" "+71e0d7ccb3d54cfc766c826c50c8d523223fcc5c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+71e0d7ccb3d54cfc766c826c50c8d523223fcc5c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 37041fd9569b13c43bf102b4793812b41d2ef131156cea0423e33ceb3bb5e7c2 [INFO] running `Command { std: "docker" "start" "-a" "37041fd9569b13c43bf102b4793812b41d2ef131156cea0423e33ceb3bb5e7c2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "37041fd9569b13c43bf102b4793812b41d2ef131156cea0423e33ceb3bb5e7c2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "37041fd9569b13c43bf102b4793812b41d2ef131156cea0423e33ceb3bb5e7c2", kill_on_drop: false }` [INFO] [stdout] 37041fd9569b13c43bf102b4793812b41d2ef131156cea0423e33ceb3bb5e7c2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+71e0d7ccb3d54cfc766c826c50c8d523223fcc5c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 947eea2a48aa2fe99dbc1a162dcc45e68ac3308623c26cad29e754b70cf8911f [INFO] running `Command { std: "docker" "start" "-a" "947eea2a48aa2fe99dbc1a162dcc45e68ac3308623c26cad29e754b70cf8911f", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.78 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Checking smallvec v1.13.1 [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Checking memchr v2.7.1 [INFO] [stderr] Checking bytes v1.5.0 [INFO] [stderr] Checking socket2 v0.5.6 [INFO] [stderr] Checking getrandom v0.2.12 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Checking itoa v1.0.10 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking indexmap v2.2.5 [INFO] [stderr] Checking raw-cpuid v10.7.0 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Checking dashmap v5.5.3 [INFO] [stderr] Checking futures-timer v3.0.3 [INFO] [stderr] Checking nonzero_ext v0.3.0 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking no-std-compat v0.4.1 [INFO] [stderr] Compiling syn v2.0.52 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Checking quanta v0.9.3 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Checking tokio v1.36.0 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Checking governor v0.4.2 [INFO] [stderr] Checking tokio-util v0.7.10 [INFO] [stderr] Checking h2 v0.3.24 [INFO] [stderr] Checking hyper v0.14.28 [INFO] [stderr] Checking loadbalancer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/backends1.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | /// Crée un service HTTP qui utilise `handle_request` pour chaque requête. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 15 | / let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] 16 | | Ok::<_, hyper::Error>(service_fn(handle_request)) [INFO] [stdout] 17 | | }); [INFO] [stdout] | |_______- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/backends1.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | /// Lie le serveur à l'adresse spécifiée et commence à écouter les requêtes. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 20 | let server = Server::bind(&addr).serve(make_svc); [INFO] [stdout] | ------------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/backends1.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | /// Gère les erreurs potentielles du serveur. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 24 | / if let Err(e) = server.await { [INFO] [stdout] 25 | | eprintln!("Erreur serveur: {}", e); [INFO] [stdout] 26 | | } [INFO] [stdout] | |_____- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/backends2.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | /// Crée un service HTTP qui utilise `handle_request` pour chaque requête. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 15 | / let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] 16 | | Ok::<_, hyper::Error>(service_fn(handle_request)) [INFO] [stdout] 17 | | }); [INFO] [stdout] | |_______- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/backends2.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | /// Lie le serveur à l'adresse spécifiée et commence à écouter les requêtes. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 20 | let server = Server::bind(&addr).serve(make_svc); [INFO] [stdout] | ------------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/backends2.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | /// Gère les erreurs potentielles du serveur. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 24 | / if let Err(e) = server.await { [INFO] [stdout] 25 | | eprintln!("Erreur serveur: {}", e); [INFO] [stdout] 26 | | } [INFO] [stdout] | |_____- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/backends1.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | /// Crée un service HTTP qui utilise `handle_request` pour chaque requête. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 15 | / let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] 16 | | Ok::<_, hyper::Error>(service_fn(handle_request)) [INFO] [stdout] 17 | | }); [INFO] [stdout] | |_______- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/backends2.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | /// Crée un service HTTP qui utilise `handle_request` pour chaque requête. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 15 | / let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] 16 | | Ok::<_, hyper::Error>(service_fn(handle_request)) [INFO] [stdout] 17 | | }); [INFO] [stdout] | |_______- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/backends2.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | /// Lie le serveur à l'adresse spécifiée et commence à écouter les requêtes. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 20 | let server = Server::bind(&addr).serve(make_svc); [INFO] [stdout] | ------------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/backends2.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | /// Gère les erreurs potentielles du serveur. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 24 | / if let Err(e) = server.await { [INFO] [stdout] 25 | | eprintln!("Erreur serveur: {}", e); [INFO] [stdout] 26 | | } [INFO] [stdout] | |_____- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/backends1.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | /// Lie le serveur à l'adresse spécifiée et commence à écouter les requêtes. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 20 | let server = Server::bind(&addr).serve(make_svc); [INFO] [stdout] | ------------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/backends1.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | /// Gère les erreurs potentielles du serveur. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 24 | / if let Err(e) = server.await { [INFO] [stdout] 25 | | eprintln!("Erreur serveur: {}", e); [INFO] [stdout] 26 | | } [INFO] [stdout] | |_____- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::Infallible` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::convert::Infallible; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/backends.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | /// Ensemble global des backends disponibles. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | /// Construit l'URI cible en combinant l'URL du backend avec le chemin de la requête. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | let uri_string = format!("{}{}", backend_url, req.uri().path_and_query().map(|x| x.as_str()).unwrap_or("")); [INFO] [stdout] | ------------------------------------------------------------------------------------------------------------ rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | /// Effectue la requête vers le backend sélectionné. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 17 | client.request(req).await [INFO] [stdout] | ------------------------- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | /// Retourne une réponse d'erreur si aucun backend n'est disponible. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 20 | Ok(Response::new(Body::from("No backend available"))) [INFO] [stdout] | ----------------------------------------------------- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | /// Lance la boucle de vérification de l'état de santé des backends en arrière-plan. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 28 | tokio::spawn(health_check_loop()); [INFO] [stdout] | --------------------------------- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | /// Configure et démarre le serveur HTTP pour écouter les requêtes entrantes. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 32 | / let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] 33 | | Ok::<_, hyper::Error>(service_fn(forward_request)) [INFO] [stdout] 34 | | }); [INFO] [stdout] | |_______- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::Infallible` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::convert::Infallible; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/backends.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | /// Ensemble global des backends disponibles. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StatusCode` [INFO] [stdout] --> src/backends.rs:66:41 [INFO] [stdout] | [INFO] [stdout] 66 | use hyper::{Body, Response, Server, StatusCode}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | /// Construit l'URI cible en combinant l'URL du backend avec le chemin de la requête. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | let uri_string = format!("{}{}", backend_url, req.uri().path_and_query().map(|x| x.as_str()).unwrap_or("")); [INFO] [stdout] | ------------------------------------------------------------------------------------------------------------ rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | /// Effectue la requête vers le backend sélectionné. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 17 | client.request(req).await [INFO] [stdout] | ------------------------- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | /// Retourne une réponse d'erreur si aucun backend n'est disponible. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 20 | Ok(Response::new(Body::from("No backend available"))) [INFO] [stdout] | ----------------------------------------------------- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | /// Lance la boucle de vérification de l'état de santé des backends en arrière-plan. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 28 | tokio::spawn(health_check_loop()); [INFO] [stdout] | --------------------------------- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | /// Configure et démarre le serveur HTTP pour écouter les requêtes entrantes. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 32 | / let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] 33 | | Ok::<_, hyper::Error>(service_fn(forward_request)) [INFO] [stdout] 34 | | }); [INFO] [stdout] | |_______- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/backends1.rs:15:20 [INFO] [stdout] | [INFO] [stdout] 15 | let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] | ____________________^ [INFO] [stdout] 16 | | Ok::<_, hyper::Error>(service_fn(handle_request)) [INFO] [stdout] 17 | | }); [INFO] [stdout] | |______^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected `async` closure body `{async closure body@src/backends1.rs:15:44: 15:49}` [INFO] [stdout] found `async` closure body `{async closure body@src/backends1.rs:15:44: 15:49}` [INFO] [stdout] = note: no two async blocks, even if identical, have the same type [INFO] [stdout] = help: consider pinning your async block and casting it to a trait object [INFO] [stdout] note: the lifetime requirement is introduced here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/hyper-0.14.28/src/service/make.rs:141:26 [INFO] [stdout] | [INFO] [stdout] 141 | F: FnMut(&Target) -> Ret, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/backends1.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 15 | let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | the expected `async` closure body [INFO] [stdout] | the found `async` closure body [INFO] [stdout] ... [INFO] [stdout] 20 | let server = Server::bind(&addr).serve(make_svc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected `async` closure body `{async closure body@src/backends1.rs:15:44: 15:49}` [INFO] [stdout] found `async` closure body `{async closure body@src/backends1.rs:15:44: 15:49}` [INFO] [stdout] = note: no two async blocks, even if identical, have the same type [INFO] [stdout] = help: consider pinning your async block and casting it to a trait object [INFO] [stdout] note: the lifetime requirement is introduced here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/hyper-0.14.28/src/server/server.rs:567:12 [INFO] [stdout] | [INFO] [stdout] 567 | S: MakeServiceRef, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/backends1.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 15 | let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | the expected `async` closure body [INFO] [stdout] | the found `async` closure body [INFO] [stdout] ... [INFO] [stdout] 20 | let server = Server::bind(&addr).serve(make_svc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected `async` closure body `{async closure body@src/backends1.rs:15:44: 15:49}` [INFO] [stdout] found `async` closure body `{async closure body@src/backends1.rs:15:44: 15:49}` [INFO] [stdout] = note: no two async blocks, even if identical, have the same type [INFO] [stdout] = help: consider pinning your async block and casting it to a trait object [INFO] [stdout] note: the lifetime requirement is introduced here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/hyper-0.14.28/src/server/server.rs:567:42 [INFO] [stdout] | [INFO] [stdout] 567 | S: MakeServiceRef, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/backends1.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 15 | let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | the expected `async` closure body [INFO] [stdout] | the found `async` closure body [INFO] [stdout] ... [INFO] [stdout] 20 | let server = Server::bind(&addr).serve(make_svc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected `async` closure body `{async closure body@src/backends1.rs:15:44: 15:49}` [INFO] [stdout] found `async` closure body `{async closure body@src/backends1.rs:15:44: 15:49}` [INFO] [stdout] = note: no two async blocks, even if identical, have the same type [INFO] [stdout] = help: consider pinning your async block and casting it to a trait object [INFO] [stdout] note: the lifetime requirement is introduced here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/hyper-0.14.28/src/server/server.rs:568:19 [INFO] [stdout] | [INFO] [stdout] 568 | S::Error: Into>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implementation of `FnOnce` is not general enough [INFO] [stdout] --> src/backends1.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 20 | let server = Server::bind(&addr).serve(make_svc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ implementation of `FnOnce` is not general enough [INFO] [stdout] | [INFO] [stdout] = note: `{async closure@src/backends1.rs:15:36: 15:43}` must implement `FnOnce<(&AddrStream,)>` [INFO] [stdout] = note: ...but it actually implements `FnOnce<(&'0 AddrStream,)>`, for some specific lifetime `'0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/backends1.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 15 | let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | the expected `async` closure body [INFO] [stdout] | the found `async` closure body [INFO] [stdout] ... [INFO] [stdout] 20 | let server = Server::bind(&addr).serve(make_svc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected `async` closure body `{async closure body@src/backends1.rs:15:44: 15:49}` [INFO] [stdout] found `async` closure body `{async closure body@src/backends1.rs:15:44: 15:49}` [INFO] [stdout] = note: no two async blocks, even if identical, have the same type [INFO] [stdout] = help: consider pinning your async block and casting it to a trait object [INFO] [stdout] note: the lifetime requirement is introduced here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/hyper-0.14.28/src/server/server.rs:571:12 [INFO] [stdout] | [INFO] [stdout] 571 | E: NewSvcExec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/backends1.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 15 | let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | the expected `async` closure body [INFO] [stdout] | the found `async` closure body [INFO] [stdout] ... [INFO] [stdout] 20 | let server = Server::bind(&addr).serve(make_svc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected `async` closure body `{async closure body@src/backends1.rs:15:44: 15:49}` [INFO] [stdout] found `async` closure body `{async closure body@src/backends1.rs:15:44: 15:49}` [INFO] [stdout] = note: no two async blocks, even if identical, have the same type [INFO] [stdout] = help: consider pinning your async block and casting it to a trait object [INFO] [stdout] note: the lifetime requirement is introduced here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/hyper-0.14.28/src/server/server.rs:572:12 [INFO] [stdout] | [INFO] [stdout] 572 | E: ConnStreamExec<>::Future, B>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/backends1.rs:24:28 [INFO] [stdout] | [INFO] [stdout] 15 | let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | the expected `async` closure body [INFO] [stdout] | the found `async` closure body [INFO] [stdout] ... [INFO] [stdout] 24 | if let Err(e) = server.await { [INFO] [stdout] | ^^^^^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected `async` closure body `{async closure body@src/backends1.rs:15:44: 15:49}` [INFO] [stdout] found `async` closure body `{async closure body@src/backends1.rs:15:44: 15:49}` [INFO] [stdout] = note: no two async blocks, even if identical, have the same type [INFO] [stdout] = help: consider pinning your async block and casting it to a trait object [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `loadbalancer` (bin "backends1" test) due to 9 previous errors; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/backends2.rs:15:20 [INFO] [stdout] | [INFO] [stdout] 15 | let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] | ____________________^ [INFO] [stdout] 16 | | Ok::<_, hyper::Error>(service_fn(handle_request)) [INFO] [stdout] 17 | | }); [INFO] [stdout] | |______^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected `async` closure body `{async closure body@src/backends2.rs:15:44: 15:49}` [INFO] [stdout] found `async` closure body `{async closure body@src/backends2.rs:15:44: 15:49}` [INFO] [stdout] = note: no two async blocks, even if identical, have the same type [INFO] [stdout] = help: consider pinning your async block and casting it to a trait object [INFO] [stdout] note: the lifetime requirement is introduced here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/hyper-0.14.28/src/service/make.rs:141:26 [INFO] [stdout] | [INFO] [stdout] 141 | F: FnMut(&Target) -> Ret, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/backends2.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 15 | let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | the expected `async` closure body [INFO] [stdout] | the found `async` closure body [INFO] [stdout] ... [INFO] [stdout] 20 | let server = Server::bind(&addr).serve(make_svc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected `async` closure body `{async closure body@src/backends2.rs:15:44: 15:49}` [INFO] [stdout] found `async` closure body `{async closure body@src/backends2.rs:15:44: 15:49}` [INFO] [stdout] = note: no two async blocks, even if identical, have the same type [INFO] [stdout] = help: consider pinning your async block and casting it to a trait object [INFO] [stdout] note: the lifetime requirement is introduced here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/hyper-0.14.28/src/server/server.rs:567:12 [INFO] [stdout] | [INFO] [stdout] 567 | S: MakeServiceRef, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/backends2.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 15 | let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | the expected `async` closure body [INFO] [stdout] | the found `async` closure body [INFO] [stdout] ... [INFO] [stdout] 20 | let server = Server::bind(&addr).serve(make_svc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected `async` closure body `{async closure body@src/backends2.rs:15:44: 15:49}` [INFO] [stdout] found `async` closure body `{async closure body@src/backends2.rs:15:44: 15:49}` [INFO] [stdout] = note: no two async blocks, even if identical, have the same type [INFO] [stdout] = help: consider pinning your async block and casting it to a trait object [INFO] [stdout] note: the lifetime requirement is introduced here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/hyper-0.14.28/src/server/server.rs:567:42 [INFO] [stdout] | [INFO] [stdout] 567 | S: MakeServiceRef, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/backends2.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 15 | let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | the expected `async` closure body [INFO] [stdout] | the found `async` closure body [INFO] [stdout] ... [INFO] [stdout] 20 | let server = Server::bind(&addr).serve(make_svc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected `async` closure body `{async closure body@src/backends2.rs:15:44: 15:49}` [INFO] [stdout] found `async` closure body `{async closure body@src/backends2.rs:15:44: 15:49}` [INFO] [stdout] = note: no two async blocks, even if identical, have the same type [INFO] [stdout] = help: consider pinning your async block and casting it to a trait object [INFO] [stdout] note: the lifetime requirement is introduced here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/hyper-0.14.28/src/server/server.rs:568:19 [INFO] [stdout] | [INFO] [stdout] 568 | S::Error: Into>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implementation of `FnOnce` is not general enough [INFO] [stdout] --> src/backends2.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 20 | let server = Server::bind(&addr).serve(make_svc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ implementation of `FnOnce` is not general enough [INFO] [stdout] | [INFO] [stdout] = note: `{async closure@src/backends2.rs:15:36: 15:43}` must implement `FnOnce<(&AddrStream,)>` [INFO] [stdout] = note: ...but it actually implements `FnOnce<(&'0 AddrStream,)>`, for some specific lifetime `'0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/backends2.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 15 | let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | the expected `async` closure body [INFO] [stdout] | the found `async` closure body [INFO] [stdout] ... [INFO] [stdout] 20 | let server = Server::bind(&addr).serve(make_svc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected `async` closure body `{async closure body@src/backends2.rs:15:44: 15:49}` [INFO] [stdout] found `async` closure body `{async closure body@src/backends2.rs:15:44: 15:49}` [INFO] [stdout] = note: no two async blocks, even if identical, have the same type [INFO] [stdout] = help: consider pinning your async block and casting it to a trait object [INFO] [stdout] note: the lifetime requirement is introduced here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/hyper-0.14.28/src/server/server.rs:571:12 [INFO] [stdout] | [INFO] [stdout] 571 | E: NewSvcExec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/backends2.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 15 | let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | the expected `async` closure body [INFO] [stdout] | the found `async` closure body [INFO] [stdout] ... [INFO] [stdout] 20 | let server = Server::bind(&addr).serve(make_svc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected `async` closure body `{async closure body@src/backends2.rs:15:44: 15:49}` [INFO] [stdout] found `async` closure body `{async closure body@src/backends2.rs:15:44: 15:49}` [INFO] [stdout] = note: no two async blocks, even if identical, have the same type [INFO] [stdout] = help: consider pinning your async block and casting it to a trait object [INFO] [stdout] note: the lifetime requirement is introduced here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/hyper-0.14.28/src/server/server.rs:572:12 [INFO] [stdout] | [INFO] [stdout] 572 | E: ConnStreamExec<>::Future, B>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/backends2.rs:24:28 [INFO] [stdout] | [INFO] [stdout] 15 | let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | the expected `async` closure body [INFO] [stdout] | the found `async` closure body [INFO] [stdout] ... [INFO] [stdout] 24 | if let Err(e) = server.await { [INFO] [stdout] | ^^^^^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected `async` closure body `{async closure body@src/backends2.rs:15:44: 15:49}` [INFO] [stdout] found `async` closure body `{async closure body@src/backends2.rs:15:44: 15:49}` [INFO] [stdout] = note: no two async blocks, even if identical, have the same type [INFO] [stdout] = help: consider pinning your async block and casting it to a trait object [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `loadbalancer` (bin "backends2") due to 9 previous errors; 3 warnings emitted [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/backends1.rs:15:20 [INFO] [stdout] | [INFO] [stdout] 15 | let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] | ____________________^ [INFO] [stdout] 16 | | Ok::<_, hyper::Error>(service_fn(handle_request)) [INFO] [stdout] 17 | | }); [INFO] [stdout] | |______^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected `async` closure body `{async closure body@src/backends1.rs:15:44: 15:49}` [INFO] [stdout] found `async` closure body `{async closure body@src/backends1.rs:15:44: 15:49}` [INFO] [stdout] = note: no two async blocks, even if identical, have the same type [INFO] [stdout] = help: consider pinning your async block and casting it to a trait object [INFO] [stdout] note: the lifetime requirement is introduced here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/hyper-0.14.28/src/service/make.rs:141:26 [INFO] [stdout] | [INFO] [stdout] 141 | F: FnMut(&Target) -> Ret, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/backends1.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 15 | let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | the expected `async` closure body [INFO] [stdout] | the found `async` closure body [INFO] [stdout] ... [INFO] [stdout] 20 | let server = Server::bind(&addr).serve(make_svc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected `async` closure body `{async closure body@src/backends1.rs:15:44: 15:49}` [INFO] [stdout] found `async` closure body `{async closure body@src/backends1.rs:15:44: 15:49}` [INFO] [stdout] = note: no two async blocks, even if identical, have the same type [INFO] [stdout] = help: consider pinning your async block and casting it to a trait object [INFO] [stdout] note: the lifetime requirement is introduced here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/hyper-0.14.28/src/server/server.rs:567:12 [INFO] [stdout] | [INFO] [stdout] 567 | S: MakeServiceRef, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/backends1.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 15 | let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | the expected `async` closure body [INFO] [stdout] | the found `async` closure body [INFO] [stdout] ... [INFO] [stdout] 20 | let server = Server::bind(&addr).serve(make_svc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected `async` closure body `{async closure body@src/backends1.rs:15:44: 15:49}` [INFO] [stdout] found `async` closure body `{async closure body@src/backends1.rs:15:44: 15:49}` [INFO] [stdout] = note: no two async blocks, even if identical, have the same type [INFO] [stdout] = help: consider pinning your async block and casting it to a trait object [INFO] [stdout] note: the lifetime requirement is introduced here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/hyper-0.14.28/src/server/server.rs:567:42 [INFO] [stdout] | [INFO] [stdout] 567 | S: MakeServiceRef, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/backends1.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 15 | let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | the expected `async` closure body [INFO] [stdout] | the found `async` closure body [INFO] [stdout] ... [INFO] [stdout] 20 | let server = Server::bind(&addr).serve(make_svc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected `async` closure body `{async closure body@src/backends1.rs:15:44: 15:49}` [INFO] [stdout] found `async` closure body `{async closure body@src/backends1.rs:15:44: 15:49}` [INFO] [stdout] = note: no two async blocks, even if identical, have the same type [INFO] [stdout] = help: consider pinning your async block and casting it to a trait object [INFO] [stdout] note: the lifetime requirement is introduced here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/hyper-0.14.28/src/server/server.rs:568:19 [INFO] [stdout] | [INFO] [stdout] 568 | S::Error: Into>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implementation of `FnOnce` is not general enough [INFO] [stdout] --> src/backends1.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 20 | let server = Server::bind(&addr).serve(make_svc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ implementation of `FnOnce` is not general enough [INFO] [stdout] | [INFO] [stdout] = note: `{async closure@src/backends1.rs:15:36: 15:43}` must implement `FnOnce<(&AddrStream,)>` [INFO] [stdout] = note: ...but it actually implements `FnOnce<(&'0 AddrStream,)>`, for some specific lifetime `'0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/backends1.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 15 | let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | the expected `async` closure body [INFO] [stdout] | the found `async` closure body [INFO] [stdout] ... [INFO] [stdout] 20 | let server = Server::bind(&addr).serve(make_svc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected `async` closure body `{async closure body@src/backends1.rs:15:44: 15:49}` [INFO] [stdout] found `async` closure body `{async closure body@src/backends1.rs:15:44: 15:49}` [INFO] [stdout] = note: no two async blocks, even if identical, have the same type [INFO] [stdout] = help: consider pinning your async block and casting it to a trait object [INFO] [stdout] note: the lifetime requirement is introduced here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/hyper-0.14.28/src/server/server.rs:571:12 [INFO] [stdout] | [INFO] [stdout] 571 | E: NewSvcExec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/backends1.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 15 | let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | the expected `async` closure body [INFO] [stdout] | the found `async` closure body [INFO] [stdout] ... [INFO] [stdout] 20 | let server = Server::bind(&addr).serve(make_svc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected `async` closure body `{async closure body@src/backends1.rs:15:44: 15:49}` [INFO] [stdout] found `async` closure body `{async closure body@src/backends1.rs:15:44: 15:49}` [INFO] [stdout] = note: no two async blocks, even if identical, have the same type [INFO] [stdout] = help: consider pinning your async block and casting it to a trait object [INFO] [stdout] note: the lifetime requirement is introduced here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/hyper-0.14.28/src/server/server.rs:572:12 [INFO] [stdout] | [INFO] [stdout] 572 | E: ConnStreamExec<>::Future, B>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/backends1.rs:24:28 [INFO] [stdout] | [INFO] [stdout] 15 | let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | the expected `async` closure body [INFO] [stdout] | the found `async` closure body [INFO] [stdout] ... [INFO] [stdout] 24 | if let Err(e) = server.await { [INFO] [stdout] | ^^^^^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected `async` closure body `{async closure body@src/backends1.rs:15:44: 15:49}` [INFO] [stdout] found `async` closure body `{async closure body@src/backends1.rs:15:44: 15:49}` [INFO] [stdout] = note: no two async blocks, even if identical, have the same type [INFO] [stdout] = help: consider pinning your async block and casting it to a trait object [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/backends2.rs:15:20 [INFO] [stdout] | [INFO] [stdout] 15 | let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] | ____________________^ [INFO] [stdout] 16 | | Ok::<_, hyper::Error>(service_fn(handle_request)) [INFO] [stdout] 17 | | }); [INFO] [stdout] | |______^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected `async` closure body `{async closure body@src/backends2.rs:15:44: 15:49}` [INFO] [stdout] found `async` closure body `{async closure body@src/backends2.rs:15:44: 15:49}` [INFO] [stdout] = note: no two async blocks, even if identical, have the same type [INFO] [stdout] = help: consider pinning your async block and casting it to a trait object [INFO] [stdout] note: the lifetime requirement is introduced here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/hyper-0.14.28/src/service/make.rs:141:26 [INFO] [stdout] | [INFO] [stdout] 141 | F: FnMut(&Target) -> Ret, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/backends2.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 15 | let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | the expected `async` closure body [INFO] [stdout] | the found `async` closure body [INFO] [stdout] ... [INFO] [stdout] 20 | let server = Server::bind(&addr).serve(make_svc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected `async` closure body `{async closure body@src/backends2.rs:15:44: 15:49}` [INFO] [stdout] found `async` closure body `{async closure body@src/backends2.rs:15:44: 15:49}` [INFO] [stdout] = note: no two async blocks, even if identical, have the same type [INFO] [stdout] = help: consider pinning your async block and casting it to a trait object [INFO] [stdout] note: the lifetime requirement is introduced here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/hyper-0.14.28/src/server/server.rs:567:12 [INFO] [stdout] | [INFO] [stdout] 567 | S: MakeServiceRef, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/backends2.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 15 | let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | the expected `async` closure body [INFO] [stdout] | the found `async` closure body [INFO] [stdout] ... [INFO] [stdout] 20 | let server = Server::bind(&addr).serve(make_svc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected `async` closure body `{async closure body@src/backends2.rs:15:44: 15:49}` [INFO] [stdout] found `async` closure body `{async closure body@src/backends2.rs:15:44: 15:49}` [INFO] [stdout] = note: no two async blocks, even if identical, have the same type [INFO] [stdout] = help: consider pinning your async block and casting it to a trait object [INFO] [stdout] note: the lifetime requirement is introduced here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/hyper-0.14.28/src/server/server.rs:567:42 [INFO] [stdout] | [INFO] [stdout] 567 | S: MakeServiceRef, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/backends2.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 15 | let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | the expected `async` closure body [INFO] [stdout] | the found `async` closure body [INFO] [stdout] ... [INFO] [stdout] 20 | let server = Server::bind(&addr).serve(make_svc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected `async` closure body `{async closure body@src/backends2.rs:15:44: 15:49}` [INFO] [stdout] found `async` closure body `{async closure body@src/backends2.rs:15:44: 15:49}` [INFO] [stdout] = note: no two async blocks, even if identical, have the same type [INFO] [stdout] = help: consider pinning your async block and casting it to a trait object [INFO] [stdout] note: the lifetime requirement is introduced here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/hyper-0.14.28/src/server/server.rs:568:19 [INFO] [stdout] | [INFO] [stdout] 568 | S::Error: Into>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implementation of `FnOnce` is not general enough [INFO] [stdout] --> src/backends2.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 20 | let server = Server::bind(&addr).serve(make_svc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ implementation of `FnOnce` is not general enough [INFO] [stdout] | [INFO] [stdout] = note: `{async closure@src/backends2.rs:15:36: 15:43}` must implement `FnOnce<(&AddrStream,)>` [INFO] [stdout] = note: ...but it actually implements `FnOnce<(&'0 AddrStream,)>`, for some specific lifetime `'0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/backends2.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 15 | let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | the expected `async` closure body [INFO] [stdout] | the found `async` closure body [INFO] [stdout] ... [INFO] [stdout] 20 | let server = Server::bind(&addr).serve(make_svc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected `async` closure body `{async closure body@src/backends2.rs:15:44: 15:49}` [INFO] [stdout] found `async` closure body `{async closure body@src/backends2.rs:15:44: 15:49}` [INFO] [stdout] = note: no two async blocks, even if identical, have the same type [INFO] [stdout] = help: consider pinning your async block and casting it to a trait object [INFO] [stdout] note: the lifetime requirement is introduced here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/hyper-0.14.28/src/server/server.rs:571:12 [INFO] [stdout] | [INFO] [stdout] 571 | E: NewSvcExec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/backends2.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 15 | let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | the expected `async` closure body [INFO] [stdout] | the found `async` closure body [INFO] [stdout] ... [INFO] [stdout] 20 | let server = Server::bind(&addr).serve(make_svc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected `async` closure body `{async closure body@src/backends2.rs:15:44: 15:49}` [INFO] [stdout] found `async` closure body `{async closure body@src/backends2.rs:15:44: 15:49}` [INFO] [stdout] = note: no two async blocks, even if identical, have the same type [INFO] [stdout] = help: consider pinning your async block and casting it to a trait object [INFO] [stdout] note: the lifetime requirement is introduced here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/hyper-0.14.28/src/server/server.rs:572:12 [INFO] [stdout] | [INFO] [stdout] 572 | E: ConnStreamExec<>::Future, B>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/backends2.rs:24:28 [INFO] [stdout] | [INFO] [stdout] 15 | let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | the expected `async` closure body [INFO] [stdout] | the found `async` closure body [INFO] [stdout] ... [INFO] [stdout] 24 | if let Err(e) = server.await { [INFO] [stdout] | ^^^^^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected `async` closure body `{async closure body@src/backends2.rs:15:44: 15:49}` [INFO] [stdout] found `async` closure body `{async closure body@src/backends2.rs:15:44: 15:49}` [INFO] [stdout] = note: no two async blocks, even if identical, have the same type [INFO] [stdout] = help: consider pinning your async block and casting it to a trait object [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `loadbalancer` (bin "backends1") due to 9 previous errors; 3 warnings emitted [INFO] [stdout] error: aborting due to 8 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `loadbalancer` (bin "backends2" test) due to 9 previous errors; 3 warnings emitted [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/backends.rs:78:24 [INFO] [stdout] | [INFO] [stdout] 78 | let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] | ________________________^ [INFO] [stdout] 79 | | Ok::<_, hyper::Error>(service_fn(always_ok)) [INFO] [stdout] 80 | | }); [INFO] [stdout] | |__________^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected `async` closure body `{async closure body@src/backends.rs:78:48: 78:53}` [INFO] [stdout] found `async` closure body `{async closure body@src/backends.rs:78:48: 78:53}` [INFO] [stdout] = note: no two async blocks, even if identical, have the same type [INFO] [stdout] = help: consider pinning your async block and casting it to a trait object [INFO] [stdout] note: the lifetime requirement is introduced here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/hyper-0.14.28/src/service/make.rs:141:26 [INFO] [stdout] | [INFO] [stdout] 141 | F: FnMut(&Target) -> Ret, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/backends.rs:82:22 [INFO] [stdout] | [INFO] [stdout] 78 | let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | the expected `async` closure body [INFO] [stdout] | the found `async` closure body [INFO] [stdout] ... [INFO] [stdout] 82 | let server = Server::bind(&addr).serve(make_svc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected `async` closure body `{async closure body@src/backends.rs:78:48: 78:53}` [INFO] [stdout] found `async` closure body `{async closure body@src/backends.rs:78:48: 78:53}` [INFO] [stdout] = note: no two async blocks, even if identical, have the same type [INFO] [stdout] = help: consider pinning your async block and casting it to a trait object [INFO] [stdout] note: the lifetime requirement is introduced here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/hyper-0.14.28/src/server/server.rs:567:12 [INFO] [stdout] | [INFO] [stdout] 567 | S: MakeServiceRef, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/backends.rs:82:22 [INFO] [stdout] | [INFO] [stdout] 78 | let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | the expected `async` closure body [INFO] [stdout] | the found `async` closure body [INFO] [stdout] ... [INFO] [stdout] 82 | let server = Server::bind(&addr).serve(make_svc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected `async` closure body `{async closure body@src/backends.rs:78:48: 78:53}` [INFO] [stdout] found `async` closure body `{async closure body@src/backends.rs:78:48: 78:53}` [INFO] [stdout] = note: no two async blocks, even if identical, have the same type [INFO] [stdout] = help: consider pinning your async block and casting it to a trait object [INFO] [stdout] note: the lifetime requirement is introduced here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/hyper-0.14.28/src/server/server.rs:567:42 [INFO] [stdout] | [INFO] [stdout] 567 | S: MakeServiceRef, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/backends.rs:82:22 [INFO] [stdout] | [INFO] [stdout] 78 | let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | the expected `async` closure body [INFO] [stdout] | the found `async` closure body [INFO] [stdout] ... [INFO] [stdout] 82 | let server = Server::bind(&addr).serve(make_svc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected `async` closure body `{async closure body@src/backends.rs:78:48: 78:53}` [INFO] [stdout] found `async` closure body `{async closure body@src/backends.rs:78:48: 78:53}` [INFO] [stdout] = note: no two async blocks, even if identical, have the same type [INFO] [stdout] = help: consider pinning your async block and casting it to a trait object [INFO] [stdout] note: the lifetime requirement is introduced here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/hyper-0.14.28/src/server/server.rs:568:19 [INFO] [stdout] | [INFO] [stdout] 568 | S::Error: Into>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implementation of `FnOnce` is not general enough [INFO] [stdout] --> src/backends.rs:82:22 [INFO] [stdout] | [INFO] [stdout] 82 | let server = Server::bind(&addr).serve(make_svc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ implementation of `FnOnce` is not general enough [INFO] [stdout] | [INFO] [stdout] = note: `{async closure@src/backends.rs:78:40: 78:47}` must implement `FnOnce<(&AddrStream,)>` [INFO] [stdout] = note: ...but it actually implements `FnOnce<(&'0 AddrStream,)>`, for some specific lifetime `'0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/backends.rs:82:22 [INFO] [stdout] | [INFO] [stdout] 78 | let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | the expected `async` closure body [INFO] [stdout] | the found `async` closure body [INFO] [stdout] ... [INFO] [stdout] 82 | let server = Server::bind(&addr).serve(make_svc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected `async` closure body `{async closure body@src/backends.rs:78:48: 78:53}` [INFO] [stdout] found `async` closure body `{async closure body@src/backends.rs:78:48: 78:53}` [INFO] [stdout] = note: no two async blocks, even if identical, have the same type [INFO] [stdout] = help: consider pinning your async block and casting it to a trait object [INFO] [stdout] note: the lifetime requirement is introduced here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/hyper-0.14.28/src/server/server.rs:571:12 [INFO] [stdout] | [INFO] [stdout] 571 | E: NewSvcExec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/backends.rs:82:22 [INFO] [stdout] | [INFO] [stdout] 78 | let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | the expected `async` closure body [INFO] [stdout] | the found `async` closure body [INFO] [stdout] ... [INFO] [stdout] 82 | let server = Server::bind(&addr).serve(make_svc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected `async` closure body `{async closure body@src/backends.rs:78:48: 78:53}` [INFO] [stdout] found `async` closure body `{async closure body@src/backends.rs:78:48: 78:53}` [INFO] [stdout] = note: no two async blocks, even if identical, have the same type [INFO] [stdout] = help: consider pinning your async block and casting it to a trait object [INFO] [stdout] note: the lifetime requirement is introduced here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/hyper-0.14.28/src/server/server.rs:572:12 [INFO] [stdout] | [INFO] [stdout] 572 | E: ConnStreamExec<>::Future, B>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/backends.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 78 | let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | the expected `async` closure body [INFO] [stdout] | the found `async` closure body [INFO] [stdout] ... [INFO] [stdout] 84 | tokio::spawn(server); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected `async` closure body `{async closure body@src/backends.rs:78:48: 78:53}` [INFO] [stdout] found `async` closure body `{async closure body@src/backends.rs:78:48: 78:53}` [INFO] [stdout] = note: no two async blocks, even if identical, have the same type [INFO] [stdout] = help: consider pinning your async block and casting it to a trait object [INFO] [stdout] note: the lifetime requirement is introduced here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.36.0/src/task/spawn.rs:166:12 [INFO] [stdout] | [INFO] [stdout] 166 | F: Future + Send + 'static, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/backends.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 78 | let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | the expected `async` closure body [INFO] [stdout] | the found `async` closure body [INFO] [stdout] ... [INFO] [stdout] 84 | tokio::spawn(server); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected `async` closure body `{async closure body@src/backends.rs:78:48: 78:53}` [INFO] [stdout] found `async` closure body `{async closure body@src/backends.rs:78:48: 78:53}` [INFO] [stdout] = note: no two async blocks, even if identical, have the same type [INFO] [stdout] = help: consider pinning your async block and casting it to a trait object [INFO] [stdout] note: the lifetime requirement is introduced here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.36.0/src/task/spawn.rs:167:20 [INFO] [stdout] | [INFO] [stdout] 167 | F::Output: Send + 'static, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/backends.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 78 | let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | the expected `async` closure body [INFO] [stdout] | the found `async` closure body [INFO] [stdout] ... [INFO] [stdout] 84 | tokio::spawn(server); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected `async` closure body `{async closure body@src/backends.rs:78:48: 78:53}` [INFO] [stdout] found `async` closure body `{async closure body@src/backends.rs:78:48: 78:53}` [INFO] [stdout] = note: no two async blocks, even if identical, have the same type [INFO] [stdout] = help: consider pinning your async block and casting it to a trait object [INFO] [stdout] note: the lifetime requirement is introduced here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.36.0/src/task/spawn.rs:167:27 [INFO] [stdout] | [INFO] [stdout] 167 | F::Output: Send + 'static, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/backends.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 78 | let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | the expected `async` closure body [INFO] [stdout] | the found `async` closure body [INFO] [stdout] ... [INFO] [stdout] 84 | tokio::spawn(server); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected `async` closure body `{async closure body@src/backends.rs:78:48: 78:53}` [INFO] [stdout] found `async` closure body `{async closure body@src/backends.rs:78:48: 78:53}` [INFO] [stdout] = note: no two async blocks, even if identical, have the same type [INFO] [stdout] = help: consider pinning your async block and casting it to a trait object [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:32:20 [INFO] [stdout] | [INFO] [stdout] 32 | let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] | ____________________^ [INFO] [stdout] 33 | | Ok::<_, hyper::Error>(service_fn(forward_request)) [INFO] [stdout] 34 | | }); [INFO] [stdout] | |______^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected `async` closure body `{async closure body@src/main.rs:32:44: 32:49}` [INFO] [stdout] found `async` closure body `{async closure body@src/main.rs:32:44: 32:49}` [INFO] [stdout] = note: no two async blocks, even if identical, have the same type [INFO] [stdout] = help: consider pinning your async block and casting it to a trait object [INFO] [stdout] note: the lifetime requirement is introduced here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/hyper-0.14.28/src/service/make.rs:141:26 [INFO] [stdout] | [INFO] [stdout] 141 | F: FnMut(&Target) -> Ret, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:36:18 [INFO] [stdout] | [INFO] [stdout] 32 | let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | the expected `async` closure body [INFO] [stdout] | the found `async` closure body [INFO] [stdout] ... [INFO] [stdout] 36 | let server = Server::bind(&addr).serve(make_svc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected `async` closure body `{async closure body@src/main.rs:32:44: 32:49}` [INFO] [stdout] found `async` closure body `{async closure body@src/main.rs:32:44: 32:49}` [INFO] [stdout] = note: no two async blocks, even if identical, have the same type [INFO] [stdout] = help: consider pinning your async block and casting it to a trait object [INFO] [stdout] note: the lifetime requirement is introduced here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/hyper-0.14.28/src/server/server.rs:567:12 [INFO] [stdout] | [INFO] [stdout] 567 | S: MakeServiceRef, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:36:18 [INFO] [stdout] | [INFO] [stdout] 32 | let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | the expected `async` closure body [INFO] [stdout] | the found `async` closure body [INFO] [stdout] ... [INFO] [stdout] 36 | let server = Server::bind(&addr).serve(make_svc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected `async` closure body `{async closure body@src/main.rs:32:44: 32:49}` [INFO] [stdout] found `async` closure body `{async closure body@src/main.rs:32:44: 32:49}` [INFO] [stdout] = note: no two async blocks, even if identical, have the same type [INFO] [stdout] = help: consider pinning your async block and casting it to a trait object [INFO] [stdout] note: the lifetime requirement is introduced here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/hyper-0.14.28/src/server/server.rs:567:42 [INFO] [stdout] | [INFO] [stdout] 567 | S: MakeServiceRef, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:36:18 [INFO] [stdout] | [INFO] [stdout] 32 | let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | the expected `async` closure body [INFO] [stdout] | the found `async` closure body [INFO] [stdout] ... [INFO] [stdout] 36 | let server = Server::bind(&addr).serve(make_svc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected `async` closure body `{async closure body@src/main.rs:32:44: 32:49}` [INFO] [stdout] found `async` closure body `{async closure body@src/main.rs:32:44: 32:49}` [INFO] [stdout] = note: no two async blocks, even if identical, have the same type [INFO] [stdout] = help: consider pinning your async block and casting it to a trait object [INFO] [stdout] note: the lifetime requirement is introduced here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/hyper-0.14.28/src/server/server.rs:568:19 [INFO] [stdout] | [INFO] [stdout] 568 | S::Error: Into>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implementation of `FnOnce` is not general enough [INFO] [stdout] --> src/main.rs:36:18 [INFO] [stdout] | [INFO] [stdout] 36 | let server = Server::bind(&addr).serve(make_svc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ implementation of `FnOnce` is not general enough [INFO] [stdout] | [INFO] [stdout] = note: `{async closure@src/main.rs:32:36: 32:43}` must implement `FnOnce<(&AddrStream,)>` [INFO] [stdout] = note: ...but it actually implements `FnOnce<(&'0 AddrStream,)>`, for some specific lifetime `'0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:36:18 [INFO] [stdout] | [INFO] [stdout] 32 | let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | the expected `async` closure body [INFO] [stdout] | the found `async` closure body [INFO] [stdout] ... [INFO] [stdout] 36 | let server = Server::bind(&addr).serve(make_svc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected `async` closure body `{async closure body@src/main.rs:32:44: 32:49}` [INFO] [stdout] found `async` closure body `{async closure body@src/main.rs:32:44: 32:49}` [INFO] [stdout] = note: no two async blocks, even if identical, have the same type [INFO] [stdout] = help: consider pinning your async block and casting it to a trait object [INFO] [stdout] note: the lifetime requirement is introduced here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/hyper-0.14.28/src/server/server.rs:571:12 [INFO] [stdout] | [INFO] [stdout] 571 | E: NewSvcExec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:36:18 [INFO] [stdout] | [INFO] [stdout] 32 | let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | the expected `async` closure body [INFO] [stdout] | the found `async` closure body [INFO] [stdout] ... [INFO] [stdout] 36 | let server = Server::bind(&addr).serve(make_svc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected `async` closure body `{async closure body@src/main.rs:32:44: 32:49}` [INFO] [stdout] found `async` closure body `{async closure body@src/main.rs:32:44: 32:49}` [INFO] [stdout] = note: no two async blocks, even if identical, have the same type [INFO] [stdout] = help: consider pinning your async block and casting it to a trait object [INFO] [stdout] note: the lifetime requirement is introduced here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/hyper-0.14.28/src/server/server.rs:572:12 [INFO] [stdout] | [INFO] [stdout] 572 | E: ConnStreamExec<>::Future, B>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:39:28 [INFO] [stdout] | [INFO] [stdout] 32 | let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | the expected `async` closure body [INFO] [stdout] | the found `async` closure body [INFO] [stdout] ... [INFO] [stdout] 39 | if let Err(e) = server.await { [INFO] [stdout] | ^^^^^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected `async` closure body `{async closure body@src/main.rs:32:44: 32:49}` [INFO] [stdout] found `async` closure body `{async closure body@src/main.rs:32:44: 32:49}` [INFO] [stdout] = note: no two async blocks, even if identical, have the same type [INFO] [stdout] = help: consider pinning your async block and casting it to a trait object [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors; 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `loadbalancer` (bin "loadbalancer") due to 9 previous errors; 7 warnings emitted [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:32:20 [INFO] [stdout] | [INFO] [stdout] 32 | let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] | ____________________^ [INFO] [stdout] 33 | | Ok::<_, hyper::Error>(service_fn(forward_request)) [INFO] [stdout] 34 | | }); [INFO] [stdout] | |______^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected `async` closure body `{async closure body@src/main.rs:32:44: 32:49}` [INFO] [stdout] found `async` closure body `{async closure body@src/main.rs:32:44: 32:49}` [INFO] [stdout] = note: no two async blocks, even if identical, have the same type [INFO] [stdout] = help: consider pinning your async block and casting it to a trait object [INFO] [stdout] note: the lifetime requirement is introduced here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/hyper-0.14.28/src/service/make.rs:141:26 [INFO] [stdout] | [INFO] [stdout] 141 | F: FnMut(&Target) -> Ret, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:36:18 [INFO] [stdout] | [INFO] [stdout] 32 | let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | the expected `async` closure body [INFO] [stdout] | the found `async` closure body [INFO] [stdout] ... [INFO] [stdout] 36 | let server = Server::bind(&addr).serve(make_svc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected `async` closure body `{async closure body@src/main.rs:32:44: 32:49}` [INFO] [stdout] found `async` closure body `{async closure body@src/main.rs:32:44: 32:49}` [INFO] [stdout] = note: no two async blocks, even if identical, have the same type [INFO] [stdout] = help: consider pinning your async block and casting it to a trait object [INFO] [stdout] note: the lifetime requirement is introduced here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/hyper-0.14.28/src/server/server.rs:567:12 [INFO] [stdout] | [INFO] [stdout] 567 | S: MakeServiceRef, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:36:18 [INFO] [stdout] | [INFO] [stdout] 32 | let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | the expected `async` closure body [INFO] [stdout] | the found `async` closure body [INFO] [stdout] ... [INFO] [stdout] 36 | let server = Server::bind(&addr).serve(make_svc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected `async` closure body `{async closure body@src/main.rs:32:44: 32:49}` [INFO] [stdout] found `async` closure body `{async closure body@src/main.rs:32:44: 32:49}` [INFO] [stdout] = note: no two async blocks, even if identical, have the same type [INFO] [stdout] = help: consider pinning your async block and casting it to a trait object [INFO] [stdout] note: the lifetime requirement is introduced here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/hyper-0.14.28/src/server/server.rs:567:42 [INFO] [stdout] | [INFO] [stdout] 567 | S: MakeServiceRef, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:36:18 [INFO] [stdout] | [INFO] [stdout] 32 | let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | the expected `async` closure body [INFO] [stdout] | the found `async` closure body [INFO] [stdout] ... [INFO] [stdout] 36 | let server = Server::bind(&addr).serve(make_svc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected `async` closure body `{async closure body@src/main.rs:32:44: 32:49}` [INFO] [stdout] found `async` closure body `{async closure body@src/main.rs:32:44: 32:49}` [INFO] [stdout] = note: no two async blocks, even if identical, have the same type [INFO] [stdout] = help: consider pinning your async block and casting it to a trait object [INFO] [stdout] note: the lifetime requirement is introduced here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/hyper-0.14.28/src/server/server.rs:568:19 [INFO] [stdout] | [INFO] [stdout] 568 | S::Error: Into>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implementation of `FnOnce` is not general enough [INFO] [stdout] --> src/main.rs:36:18 [INFO] [stdout] | [INFO] [stdout] 36 | let server = Server::bind(&addr).serve(make_svc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ implementation of `FnOnce` is not general enough [INFO] [stdout] | [INFO] [stdout] = note: `{async closure@src/main.rs:32:36: 32:43}` must implement `FnOnce<(&AddrStream,)>` [INFO] [stdout] = note: ...but it actually implements `FnOnce<(&'0 AddrStream,)>`, for some specific lifetime `'0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:36:18 [INFO] [stdout] | [INFO] [stdout] 32 | let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | the expected `async` closure body [INFO] [stdout] | the found `async` closure body [INFO] [stdout] ... [INFO] [stdout] 36 | let server = Server::bind(&addr).serve(make_svc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected `async` closure body `{async closure body@src/main.rs:32:44: 32:49}` [INFO] [stdout] found `async` closure body `{async closure body@src/main.rs:32:44: 32:49}` [INFO] [stdout] = note: no two async blocks, even if identical, have the same type [INFO] [stdout] = help: consider pinning your async block and casting it to a trait object [INFO] [stdout] note: the lifetime requirement is introduced here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/hyper-0.14.28/src/server/server.rs:571:12 [INFO] [stdout] | [INFO] [stdout] 571 | E: NewSvcExec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:36:18 [INFO] [stdout] | [INFO] [stdout] 32 | let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | the expected `async` closure body [INFO] [stdout] | the found `async` closure body [INFO] [stdout] ... [INFO] [stdout] 36 | let server = Server::bind(&addr).serve(make_svc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected `async` closure body `{async closure body@src/main.rs:32:44: 32:49}` [INFO] [stdout] found `async` closure body `{async closure body@src/main.rs:32:44: 32:49}` [INFO] [stdout] = note: no two async blocks, even if identical, have the same type [INFO] [stdout] = help: consider pinning your async block and casting it to a trait object [INFO] [stdout] note: the lifetime requirement is introduced here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/hyper-0.14.28/src/server/server.rs:572:12 [INFO] [stdout] | [INFO] [stdout] 572 | E: ConnStreamExec<>::Future, B>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:39:28 [INFO] [stdout] | [INFO] [stdout] 32 | let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | the expected `async` closure body [INFO] [stdout] | the found `async` closure body [INFO] [stdout] ... [INFO] [stdout] 39 | if let Err(e) = server.await { [INFO] [stdout] | ^^^^^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected `async` closure body `{async closure body@src/main.rs:32:44: 32:49}` [INFO] [stdout] found `async` closure body `{async closure body@src/main.rs:32:44: 32:49}` [INFO] [stdout] = note: no two async blocks, even if identical, have the same type [INFO] [stdout] = help: consider pinning your async block and casting it to a trait object [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 19 previous errors; 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `loadbalancer` (bin "loadbalancer" test) due to 20 previous errors; 8 warnings emitted [INFO] running `Command { std: "docker" "inspect" "947eea2a48aa2fe99dbc1a162dcc45e68ac3308623c26cad29e754b70cf8911f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "947eea2a48aa2fe99dbc1a162dcc45e68ac3308623c26cad29e754b70cf8911f", kill_on_drop: false }` [INFO] [stdout] 947eea2a48aa2fe99dbc1a162dcc45e68ac3308623c26cad29e754b70cf8911f