[INFO] fetching crate mio_surf 2.1.0... [INFO] checking mio_surf-2.1.0 against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] extracting crate mio_surf 2.1.0 into /workspace/builds/worker-9/source [INFO] validating manifest of crates.io crate mio_surf 2.1.0 on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate mio_surf 2.1.0 [INFO] finished tweaking crates.io crate mio_surf 2.1.0 [INFO] tweaked toml for crates.io crate mio_surf 2.1.0 written to /workspace/builds/worker-9/source/Cargo.toml [INFO] crate crates.io crate mio_surf 2.1.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded http-client v6.3.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 2569fa5722430b8fefb04b596d16fd5b408d2e7d5807a034ef5cc2867f9a189d [INFO] running `Command { std: "docker" "start" "-a" "2569fa5722430b8fefb04b596d16fd5b408d2e7d5807a034ef5cc2867f9a189d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2569fa5722430b8fefb04b596d16fd5b408d2e7d5807a034ef5cc2867f9a189d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2569fa5722430b8fefb04b596d16fd5b408d2e7d5807a034ef5cc2867f9a189d", kill_on_drop: false }` [INFO] [stdout] 2569fa5722430b8fefb04b596d16fd5b408d2e7d5807a034ef5cc2867f9a189d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6bb959b9a18e2bffc6e39c3e400404b40c40e00b2be1957ab8db5761c64ecfce [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "6bb959b9a18e2bffc6e39c3e400404b40c40e00b2be1957ab8db5761c64ecfce", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] note: Switching to Edition 2021 will enable the use of the version 2 feature resolver in Cargo. [INFO] [stderr] This may cause some dependencies to be built with fewer features enabled than previously. [INFO] [stderr] More information about the resolver changes may be found at https://doc.rust-lang.org/nightly/edition-guide/rust-2021/default-cargo-resolver.html [INFO] [stderr] When building the following dependencies, the given features will no longer be used: [INFO] [stderr] [INFO] [stderr] async-std v1.9.0: async-attributes, attributes [INFO] [stderr] log v0.4.14: std [INFO] [stderr] memchr v2.3.4: use_std [INFO] [stderr] standback v0.2.15 (as host dependency): std [INFO] [stderr] syn v1.0.60 (as host dependency): visit [INFO] [stderr] [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.60 [INFO] [stderr] Compiling libc v0.2.86 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling value-bag v1.0.0-alpha.6 [INFO] [stderr] Checking futures-core v0.3.12 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling serde_derive v1.0.123 [INFO] [stderr] Compiling serde v1.0.123 [INFO] [stderr] Checking futures-io v0.3.12 [INFO] [stderr] Checking parking v2.0.0 [INFO] [stderr] Checking waker-fn v1.1.0 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Checking cache-padded v1.1.1 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking event-listener v2.5.1 [INFO] [stderr] Checking matches v0.1.8 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling serde_json v1.0.62 [INFO] [stderr] Checking cpuid-bool v0.2.0 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Checking vec-arena v1.0.0 [INFO] [stderr] Compiling const_fn v0.4.5 [INFO] [stderr] Checking async-task v4.0.3 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling curl v0.4.34 [INFO] [stderr] Checking cpuid-bool v0.1.2 [INFO] [stderr] Compiling anyhow v1.0.38 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Checking openssl-probe v0.1.2 [INFO] [stderr] Checking futures-sink v0.3.12 [INFO] [stderr] Checking gimli v0.23.0 [INFO] [stderr] Compiling http-types v2.10.0 [INFO] [stderr] Checking base64 v0.12.3 [INFO] [stderr] Checking adler v0.2.3 [INFO] [stderr] Compiling isahc v0.9.14 [INFO] [stderr] Checking infer v0.2.3 [INFO] [stderr] Checking rustc-demangle v0.1.18 [INFO] [stderr] Checking bytes v0.5.6 [INFO] [stderr] Checking base64 v0.13.0 [INFO] [stderr] Compiling httparse v1.3.5 [INFO] [stderr] Checking mime v0.3.16 [INFO] [stderr] Checking pin-project-lite v0.1.11 [INFO] [stderr] Checking difference v2.0.0 [INFO] [stderr] Compiling libnghttp2-sys v0.1.6+1.43.0 [INFO] [stderr] Checking thread_local v1.1.3 [INFO] [stderr] Checking instant v0.1.9 [INFO] [stderr] Checking tracing-core v0.1.17 [INFO] [stderr] Checking futures-channel v0.3.12 [INFO] [stderr] Checking concurrent-queue v1.2.2 [INFO] [stderr] Checking tinyvec v1.1.1 [INFO] [stderr] Checking lock_api v0.4.2 [INFO] [stderr] Checking unicode-bidi v0.3.4 [INFO] [stderr] Checking async-mutex v1.4.0 [INFO] [stderr] Checking async-lock v2.3.0 [INFO] [stderr] Checking form_urlencoded v1.0.0 [INFO] [stderr] Checking http v0.2.3 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling standback v0.2.15 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling time v0.2.25 [INFO] [stderr] Compiling cookie v0.14.3 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling crossbeam-utils v0.8.1 [INFO] [stderr] Compiling miniz_oxide v0.4.3 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Checking async-channel v1.5.1 [INFO] [stderr] Checking sluice v0.5.4 [INFO] [stderr] Compiling openssl-sys v0.9.60 [INFO] [stderr] Compiling libz-sys v1.1.2 [INFO] [stderr] Compiling curl-sys v0.4.40+curl-7.75.0 [INFO] [stderr] Checking spinning_top v0.2.2 [INFO] [stderr] Checking encoding_rs v0.8.28 [INFO] [stderr] Checking flume v0.9.2 [INFO] [stderr] Checking futures-lite v1.11.3 [INFO] [stderr] Checking aho-corasick v0.7.15 [INFO] [stderr] Checking unicode-normalization v0.1.17 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Checking cipher v0.2.5 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking universal-hash v0.4.0 [INFO] [stderr] Checking crypto-mac v0.10.0 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking aead v0.3.2 [INFO] [stderr] Checking getrandom v0.1.16 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking nb-connect v1.0.2 [INFO] [stderr] Checking socket2 v0.3.19 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking parking_lot_core v0.8.3 [INFO] [stderr] Checking termios v0.3.3 [INFO] [stderr] Checking clicolors-control v1.0.1 [INFO] [stderr] Compiling mime_guess v2.0.3 [INFO] [stderr] Checking polyval v0.4.5 [INFO] [stderr] Checking async-executor v1.4.0 [INFO] [stderr] Checking blocking v1.0.2 [INFO] [stderr] Checking regex v1.4.3 [INFO] [stderr] Checking hmac v0.10.1 [INFO] [stderr] Checking sha2 v0.9.3 [INFO] [stderr] Checking aes-soft v0.6.4 [INFO] [stderr] Checking ctr v0.6.0 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking colored v1.9.3 [INFO] [stderr] Checking dashmap v4.0.2 [INFO] [stderr] Checking addr2line v0.14.1 [INFO] [stderr] Checking parking_lot v0.11.1 [INFO] [stderr] Checking hkdf v0.10.0 [INFO] [stderr] Checking ghash v0.3.1 [INFO] [stderr] Checking aes v0.6.0 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking backtrace v0.3.56 [INFO] [stderr] Checking idna v0.2.1 [INFO] [stderr] Checking aes-gcm v0.8.0 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking console v0.7.7 [INFO] [stderr] Compiling async-log-attributes v1.0.1 [INFO] [stderr] Compiling ctor v0.1.19 [INFO] [stderr] Compiling time-macros-impl v0.1.1 [INFO] [stderr] Compiling pin-project-internal v0.4.27 [INFO] [stderr] Compiling thiserror-impl v1.0.23 [INFO] [stderr] Compiling tracing-attributes v0.1.12 [INFO] [stderr] Compiling async-attributes v1.1.2 [INFO] [stderr] Compiling extend v0.1.2 [INFO] [stderr] Compiling async-trait v0.1.42 [INFO] [stderr] Compiling futures-macro v0.3.12 [INFO] [stderr] Checking log v0.4.14 [INFO] [stderr] Checking polling v2.0.2 [INFO] [stderr] Checking kv-log-macro v1.0.7 [INFO] [stderr] Checking async-log v1.1.0 [INFO] [stderr] Checking async-io v1.3.1 [INFO] [stderr] Checking futures-util v0.3.12 [INFO] [stderr] Checking time-macros v0.1.1 [INFO] [stderr] Checking async-global-executor v2.0.2 [INFO] [stderr] Checking async-std v1.9.0 [INFO] [stderr] Checking thiserror v1.0.23 [INFO] [stderr] Checking tracing v0.1.23 [INFO] [stderr] Checking pin-project v0.4.27 [INFO] [stderr] Checking tracing-futures v0.2.4 [INFO] [stderr] Checking url v2.2.0 [INFO] [stderr] Checking serde_urlencoded v0.7.0 [INFO] [stderr] Checking serde_qs v0.7.2 [INFO] [stderr] Checking assert-json-diff v1.1.0 [INFO] [stderr] Checking femme v1.3.0 [INFO] [stderr] Checking mockito v0.23.3 [INFO] [stderr] Checking http-client v6.3.0 [INFO] [stderr] Checking mio_surf v2.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/client.rs (1 fix) [INFO] [stderr] Migrating examples/next_reuse.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/persistent.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/hello_world.rs from 2018 edition to 2021 [INFO] [stderr] Migrating tests/test.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/browser.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/middleware.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/post.rs from 2018 edition to 2021 [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `surf` [INFO] [stdout] --> examples/persistent.rs:6:35 [INFO] [stdout] | [INFO] [stdout] 6 | let res1 = client.recv_string(surf::get("https://httpbin.org/get")); [INFO] [stdout] | ^^^^ use of undeclared crate or module `surf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `surf` [INFO] [stdout] --> examples/persistent.rs:7:35 [INFO] [stdout] | [INFO] [stdout] 7 | let res2 = client.recv_string(surf::get("https://httpbin.org/get")); [INFO] [stdout] | ^^^^ use of undeclared crate or module `surf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `surf` [INFO] [stdout] --> examples/persistent.rs:5:24 [INFO] [stdout] | [INFO] [stdout] 5 | let client = surf::Client::new(); [INFO] [stdout] | ^^^^^^ not found in `surf` [INFO] [stdout] | [INFO] [stdout] = note: consider importing this struct: [INFO] [stdout] mio_surf::Client [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stderr] error: could not compile `mio_surf` due to 4 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `surf` [INFO] [stdout] --> examples/hello_world.rs:6:26 [INFO] [stdout] | [INFO] [stdout] 6 | let string: String = surf::get(uri).recv_string().await?; [INFO] [stdout] | ^^^^ use of undeclared crate or module `surf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `surf` [INFO] [stdout] --> tests/test.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use surf::{middleware::Next, Client, Request, Response}; [INFO] [stdout] | ^^^^ use of undeclared crate or module `surf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `surf` [INFO] [stdout] --> tests/test.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use surf::{middleware::Next, Client, Request, Response}; [INFO] [stdout] | ^^^^ use of undeclared crate or module `surf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `surf` [INFO] [stdout] --> tests/test.rs:24:15 [INFO] [stdout] | [INFO] [stdout] 24 | let res = surf::post(mockito::server_url()) [INFO] [stdout] | ^^^^ use of undeclared crate or module `surf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `surf` [INFO] [stdout] --> tests/test.rs:44:24 [INFO] [stdout] | [INFO] [stdout] 44 | let msg: Message = surf::get(uri).recv_json().await?; [INFO] [stdout] | ^^^^ use of undeclared crate or module `surf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `surf` [INFO] [stdout] --> tests/test.rs:55:19 [INFO] [stdout] | [INFO] [stdout] 55 | let mut res = surf::get(url).await?; [INFO] [stdout] | ^^^^ use of undeclared crate or module `surf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `surf` [INFO] [stdout] --> tests/test.rs:80:19 [INFO] [stdout] | [INFO] [stdout] 80 | let mut res = surf::get(url).await?; [INFO] [stdout] | ^^^^ use of undeclared crate or module `surf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `surf` [INFO] [stdout] --> tests/test.rs:132:27 [INFO] [stdout] | [INFO] [stdout] 132 | let original_client = surf::client().with(mw_1); [INFO] [stdout] | ^^^^ use of undeclared crate or module `surf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `surf` [INFO] [stdout] --> tests/test.rs:135:15 [INFO] [stdout] | [INFO] [stdout] 135 | let req = surf::get("https://httpbin.org/get"); [INFO] [stdout] | ^^^^ use of undeclared crate or module `surf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `surf` [INFO] [stdout] --> tests/test.rs:140:15 [INFO] [stdout] | [INFO] [stdout] 140 | let req = surf::get("https://httpbin.org/get"); [INFO] [stdout] | ^^^^ use of undeclared crate or module `surf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Next` in this scope [INFO] [stdout] --> tests/test.rs:152:11 [INFO] [stdout] | [INFO] [stdout] 152 | next: Next<'_>, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use futures_util::stream::Next; [INFO] [stdout] | [INFO] [stdout] 1 | use mio_surf::middleware::Next; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Next` in this scope [INFO] [stdout] --> tests/test.rs:164:11 [INFO] [stdout] | [INFO] [stdout] 164 | next: Next<'_>, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use futures_util::stream::Next; [INFO] [stdout] | [INFO] [stdout] 1 | use mio_surf::middleware::Next; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0581]: return type references an anonymous lifetime, which is not constrained by the fn input types [INFO] [stdout] --> tests/test.rs:153:6 [INFO] [stdout] | [INFO] [stdout] 153 | ) -> BoxFuture> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lifetimes appearing in an associated type are not considered constrained [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0581]: return type references an anonymous lifetime, which is not constrained by the fn input types [INFO] [stdout] --> tests/test.rs:165:6 [INFO] [stdout] | [INFO] [stdout] 165 | ) -> BoxFuture> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lifetimes appearing in an associated type are not considered constrained [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 13 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0432, E0433, E0581. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stdout] error[E0706]: functions in traits cannot be declared `async` [INFO] [stdout] --> examples/next_reuse.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | async fn handle( [INFO] [stdout] | ^---- [INFO] [stdout] | | [INFO] [stdout] | _____`async` because of this [INFO] [stdout] | | [INFO] [stdout] 10 | | &self, [INFO] [stdout] 11 | | req: Request, [INFO] [stdout] 12 | | client: Client, [INFO] [stdout] ... | [INFO] [stdout] 40 | | } [INFO] [stdout] 41 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: `async` trait functions are not currently supported [INFO] [stdout] = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `surf` [INFO] [stdout] --> examples/next_reuse.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use surf::middleware::{Middleware, Next}; [INFO] [stdout] | ^^^^ use of undeclared crate or module `surf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `surf` [INFO] [stdout] --> examples/next_reuse.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use surf::{Body, Client, Request, Response}; [INFO] [stdout] | ^^^^ use of undeclared crate or module `surf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `surf` [INFO] [stdout] --> examples/next_reuse.rs:7:3 [INFO] [stdout] | [INFO] [stdout] 7 | #[surf::utils::async_trait] [INFO] [stdout] | ^^^^ use of undeclared crate or module `surf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `surf` [INFO] [stdout] --> examples/next_reuse.rs:48:15 [INFO] [stdout] | [INFO] [stdout] 48 | let req = surf::get("https://httpbin.org/get"); [INFO] [stdout] | ^^^^ use of undeclared crate or module `surf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `surf` [INFO] [stdout] --> examples/next_reuse.rs:49:19 [INFO] [stdout] | [INFO] [stdout] 49 | let mut res = surf::client().with(Doubler {}).send(req).await?; [INFO] [stdout] | ^^^^ use of undeclared crate or module `surf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `Middleware` in this scope [INFO] [stdout] --> examples/next_reuse.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | impl Middleware for Doubler { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 1 | use mio_surf::middleware::Middleware; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Next` in this scope [INFO] [stdout] --> examples/next_reuse.rs:13:15 [INFO] [stdout] | [INFO] [stdout] 13 | next: Next<'_>, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use futures_util::stream::Next; [INFO] [stdout] | [INFO] [stdout] 1 | use mio_surf::middleware::Next; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0432, E0433, E0706. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `surf` [INFO] [stdout] --> examples/post.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | let res = surf::post(uri) [INFO] [stdout] | ^^^^ use of undeclared crate or module `surf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stdout] error[E0706]: functions in traits cannot be declared `async` [INFO] [stdout] --> examples/middleware.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | async fn handle( [INFO] [stdout] | ^---- [INFO] [stdout] | | [INFO] [stdout] | _____`async` because of this [INFO] [stdout] | | [INFO] [stdout] 9 | | &self, [INFO] [stdout] 10 | | req: Request, [INFO] [stdout] 11 | | client: Client, [INFO] [stdout] ... | [INFO] [stdout] 17 | | Ok(res) [INFO] [stdout] 18 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: `async` trait functions are not currently supported [INFO] [stdout] = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `surf` [INFO] [stdout] --> examples/middleware.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use surf::middleware::{Middleware, Next}; [INFO] [stdout] | ^^^^ use of undeclared crate or module `surf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `surf` [INFO] [stdout] --> examples/middleware.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use surf::{Client, Request, Response}; [INFO] [stdout] | ^^^^ use of undeclared crate or module `surf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `surf` [INFO] [stdout] --> examples/middleware.rs:6:3 [INFO] [stdout] | [INFO] [stdout] 6 | #[surf::utils::async_trait] [INFO] [stdout] | ^^^^ use of undeclared crate or module `surf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `surf` [INFO] [stdout] --> examples/middleware.rs:25:15 [INFO] [stdout] | [INFO] [stdout] 25 | let req = surf::get("https://httpbin.org/get"); [INFO] [stdout] | ^^^^ use of undeclared crate or module `surf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `surf` [INFO] [stdout] --> examples/middleware.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | surf::client().with(Printer {}).send(req).await?; [INFO] [stdout] | ^^^^ use of undeclared crate or module `surf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `Middleware` in this scope [INFO] [stdout] --> examples/middleware.rs:7:6 [INFO] [stdout] | [INFO] [stdout] 7 | impl Middleware for Printer { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 1 | use mio_surf::middleware::Middleware; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Next` in this scope [INFO] [stdout] --> examples/middleware.rs:12:15 [INFO] [stdout] | [INFO] [stdout] 12 | next: Next<'_>, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use futures_util::stream::Next; [INFO] [stdout] | [INFO] [stdout] 1 | use mio_surf::middleware::Next; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0432, E0433, E0706. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "6bb959b9a18e2bffc6e39c3e400404b40c40e00b2be1957ab8db5761c64ecfce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6bb959b9a18e2bffc6e39c3e400404b40c40e00b2be1957ab8db5761c64ecfce", kill_on_drop: false }` [INFO] [stdout] 6bb959b9a18e2bffc6e39c3e400404b40c40e00b2be1957ab8db5761c64ecfce