[INFO] fetching crate rocket_lang 0.0.2... [INFO] testing rocket_lang-0.0.2 against beta-2022-04-10 for beta-1.61-1 [INFO] extracting crate rocket_lang 0.0.2 into /workspace/builds/worker-7/source [INFO] validating manifest of crates.io crate rocket_lang 0.0.2 on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate rocket_lang 0.0.2 [INFO] finished tweaking crates.io crate rocket_lang 0.0.2 [INFO] tweaked toml for crates.io crate rocket_lang 0.0.2 written to /workspace/builds/worker-7/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0601f870fddd82ea0679cf6435f3cfa64987750a0bd7ff4217420336d3da80f1 [INFO] running `Command { std: "docker" "start" "-a" "0601f870fddd82ea0679cf6435f3cfa64987750a0bd7ff4217420336d3da80f1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0601f870fddd82ea0679cf6435f3cfa64987750a0bd7ff4217420336d3da80f1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0601f870fddd82ea0679cf6435f3cfa64987750a0bd7ff4217420336d3da80f1", kill_on_drop: false }` [INFO] [stdout] 0601f870fddd82ea0679cf6435f3cfa64987750a0bd7ff4217420336d3da80f1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8d1d2488e7d4ba94136fbc63e4e882f39b9bef59841256ee9c092728b3df264d [INFO] running `Command { std: "docker" "start" "-a" "8d1d2488e7d4ba94136fbc63e4e882f39b9bef59841256ee9c092728b3df264d", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.91 [INFO] [stderr] Compiling log v0.4.16 [INFO] [stderr] Compiling yansi v0.5.1 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Compiling const_fn v0.4.9 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling httpdate v1.0.2 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling smallvec v1.8.0 [INFO] [stderr] Compiling ref-cast v1.0.6 [INFO] [stderr] Compiling inlinable_string v0.1.15 [INFO] [stderr] Compiling state v0.5.2 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling async-trait v0.1.53 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling fastrand v1.7.0 [INFO] [stderr] Compiling spin v0.9.2 [INFO] [stderr] Compiling binascii v0.1.4 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.9.1 [INFO] [stderr] Compiling standback v0.2.17 [INFO] [stderr] Compiling indexmap v1.8.1 [INFO] [stderr] Compiling time v0.2.27 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Compiling cookie v0.15.1 [INFO] [stderr] Compiling uncased v0.9.6 [INFO] [stderr] Compiling atomic v0.5.1 [INFO] [stderr] Compiling multer v2.0.2 [INFO] [stderr] Compiling figment v0.10.6 [INFO] [stderr] Compiling http-body v0.4.4 [INFO] [stderr] Compiling socket2 v0.4.4 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling mio v0.8.2 [INFO] [stderr] Compiling stable-pattern v0.1.0 [INFO] [stderr] Compiling getrandom v0.2.6 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling rocket v0.5.0-rc.1 [INFO] [stderr] Compiling tempfile v3.3.0 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling tokio v1.17.0 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling regex v1.5.5 [INFO] [stderr] Compiling devise_core v0.3.1 [INFO] [stderr] Compiling tracing-attributes v0.1.20 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling tokio-macros v1.7.0 [INFO] [stderr] Compiling futures-macro v0.3.21 [INFO] [stderr] Compiling time-macros-impl v0.1.2 [INFO] [stderr] Compiling pear_codegen v0.2.3 [INFO] [stderr] Compiling ref-cast-impl v1.0.6 [INFO] [stderr] Compiling devise_codegen v0.3.1 [INFO] [stderr] Compiling async-stream-impl v0.3.3 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling time-macros v0.1.1 [INFO] [stderr] Compiling async-stream v0.3.3 [INFO] [stderr] Compiling devise v0.3.1 [INFO] [stderr] Compiling pear v0.2.3 [INFO] [stderr] Compiling tracing v0.1.33 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling tokio-util v0.7.1 [INFO] [stderr] Compiling h2 v0.3.13 [INFO] [stderr] Compiling tokio-util v0.6.9 [INFO] [stderr] Compiling tokio-stream v0.1.8 [INFO] [stderr] Compiling futures-executor v0.3.21 [INFO] [stderr] Compiling hyper v0.14.18 [INFO] [stderr] Compiling futures v0.3.21 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling ubyte v0.10.1 [INFO] [stderr] Compiling rocket_http v0.5.0-rc.1 [INFO] [stderr] Compiling rocket_codegen v0.5.0-rc.1 [INFO] [stderr] Compiling rocket_lang v0.0.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 24.44s [INFO] running `Command { std: "docker" "inspect" "8d1d2488e7d4ba94136fbc63e4e882f39b9bef59841256ee9c092728b3df264d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8d1d2488e7d4ba94136fbc63e4e882f39b9bef59841256ee9c092728b3df264d", kill_on_drop: false }` [INFO] [stdout] 8d1d2488e7d4ba94136fbc63e4e882f39b9bef59841256ee9c092728b3df264d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7a309f28e32fb2ff734d444f93a06953d3d178bd02350fabbad53bb7c707f967 [INFO] running `Command { std: "docker" "start" "-a" "7a309f28e32fb2ff734d444f93a06953d3d178bd02350fabbad53bb7c707f967", kill_on_drop: false }` [INFO] [stderr] Compiling rocket_lang v0.0.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 5.53s [INFO] [stderr] Executable unittests src/lib.rs (/opt/rustwide/target/debug/deps/rocket_lang-a48523fa3a3c9654) [INFO] [stderr] Executable tests/accept_language.rs (/opt/rustwide/target/debug/deps/accept_language-ba7c1440126eda10) [INFO] [stderr] Executable tests/common.rs (/opt/rustwide/target/debug/deps/common-6445f450e3c56d54) [INFO] [stderr] Executable tests/mixed.rs (/opt/rustwide/target/debug/deps/mixed-adf6b6eacfc0d1d7) [INFO] [stderr] Executable tests/test1.rs (/opt/rustwide/target/debug/deps/test1-c3efede3c96dbfa8) [INFO] [stderr] Executable tests/url.rs (/opt/rustwide/target/debug/deps/url-01a3e27d4c8ffb6f) [INFO] running `Command { std: "docker" "inspect" "7a309f28e32fb2ff734d444f93a06953d3d178bd02350fabbad53bb7c707f967", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7a309f28e32fb2ff734d444f93a06953d3d178bd02350fabbad53bb7c707f967", kill_on_drop: false }` [INFO] [stdout] 7a309f28e32fb2ff734d444f93a06953d3d178bd02350fabbad53bb7c707f967 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 3c119560e934ec21bc0b3201c476b2814f4279f0eca8db7ae8fe329eabb7f8d5 [INFO] running `Command { std: "docker" "start" "-a" "3c119560e934ec21bc0b3201c476b2814f4279f0eca8db7ae8fe329eabb7f8d5", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.13s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/rocket_lang-a48523fa3a3c9654) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running tests/accept_language.rs (/opt/rustwide/target/debug/deps/accept_language-ba7c1440126eda10) [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test accept_language_not_configured ... ok [INFO] [stdout] test accept_language_configured ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.07s [INFO] [stdout] [INFO] [stderr] Running tests/common.rs (/opt/rustwide/target/debug/deps/common-6445f450e3c56d54) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running tests/mixed.rs (/opt/rustwide/target/debug/deps/mixed-adf6b6eacfc0d1d7) [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test mixed_url_accept_language ... ok [INFO] [stdout] test mixed_custom_url ... ok [INFO] [stdout] test mixed_url_wildcard ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.08s [INFO] [stdout] [INFO] [stderr] Running tests/test1.rs (/opt/rustwide/target/debug/deps/test1-c3efede3c96dbfa8) [INFO] [stdout] [INFO] [stdout] running 5 tests [INFO] [stdout] test accept_header_without_config ... ok [INFO] [stdout] test test_failed_custom ... ok [INFO] [stdout] test test_custom ... ok [INFO] [stdout] test wildcard ... ok [INFO] [stdout] test _accept_header1 ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.08s [INFO] [stdout] [INFO] [stderr] Running tests/url.rs (/opt/rustwide/target/debug/deps/url-01a3e27d4c8ffb6f) [INFO] [stdout] [INFO] [stdout] running 8 tests [INFO] [stdout] test url_negative_index ... ok [INFO] [stdout] test url_minus_one ... ok [INFO] [stdout] test url_positive_index ... ok [INFO] [stdout] test wildcard ... ok [INFO] [stdout] test url_not_a_lang_code ... ok [INFO] [stdout] test url_not_long_enough_positive ... ok [INFO] [stdout] test url_not_long_enough_negative ... ok [INFO] [stdout] test url_not_long_enough_minus_one ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.06s [INFO] [stdout] [INFO] [stderr] Doc-tests rocket_lang [INFO] [stdout] [INFO] [stdout] running 13 tests [INFO] [stdout] test src/config.rs - config::Config (line 31) ... FAILED [INFO] [stdout] test src/lib.rs - (line 24) ... FAILED [INFO] [stdout] test src/lib.rs - (line 38) ... FAILED [INFO] [stdout] test src/config.rs - config::Config (line 63) ... FAILED [INFO] [stdout] test src/config.rs - config::Config (line 74) ... FAILED [INFO] [stdout] test src/lib.rs - (line 32) ... FAILED [INFO] [stdout] test src/lib.rs - LangCode::english_name (line 123) ... FAILED [INFO] [stdout] test src/lib.rs - (line 59) ... FAILED [INFO] [stdout] test src/lib.rs - (line 8) ... FAILED [INFO] [stdout] test src/lib.rs - LangCode::as_str (line 122) ... FAILED [INFO] [stdout] test src/lib.rs - LangCode::native_name (line 123) ... FAILED [INFO] [stdout] test src/lib.rs - (line 47) ... FAILED [INFO] [stdout] test src/config.rs - config::Config (line 43) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/config.rs - config::Config (line 31) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Config` [INFO] [stdout] --> src/config.rs:32:14 [INFO] [stdout] | [INFO] [stdout] 3 | let config = Config::new().custom(|request: &Request| { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use rocket::Config; [INFO] [stdout] | [INFO] [stdout] 2 | use rocket_lang::Config; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Request` in this scope [INFO] [stdout] --> src/config.rs:32:46 [INFO] [stdout] | [INFO] [stdout] 3 | let config = Config::new().custom(|request: &Request| { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use rocket::Request; [INFO] [stdout] | [INFO] [stdout] 2 | use rocket::http::hyper::Request; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `lang_from_request` in this scope [INFO] [stdout] --> src/config.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 4 | Ok(lang_from_request(request)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 24) stdout ---- [INFO] [stdout] error: expected one of `:`, `;`, `=`, `@`, or `|`, found `[` [INFO] [stdout] --> src/lib.rs:26:11 [INFO] [stdout] | [INFO] [stdout] 4 | let config[Es] = 1.0; [INFO] [stdout] | ^ expected one of `:`, `;`, `=`, `@`, or `|` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Config` [INFO] [stdout] --> src/lib.rs:25:14 [INFO] [stdout] | [INFO] [stdout] 3 | let config = Config::new(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use rocket::Config; [INFO] [stdout] | [INFO] [stdout] 2 | use rocket_lang::Config; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 38) stdout ---- [INFO] [stdout] error: cannot find attribute `get` in this scope [INFO] [stdout] --> src/lib.rs:39:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[get("see-lang/<_>")] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this attribute macro: [INFO] [stdout] rocket::get [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LangCode` in this scope [INFO] [stdout] --> src/lib.rs:40:19 [INFO] [stdout] | [INFO] [stdout] 4 | fn see_lang(lang: LangCode) -> &'static str { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use rocket_lang::LangCode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/config.rs - config::Config (line 63) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Config` [INFO] [stdout] --> src/config.rs:64:14 [INFO] [stdout] | [INFO] [stdout] 3 | let config = Config::new(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use rocket::Config; [INFO] [stdout] | [INFO] [stdout] 2 | use rocket_lang::Config; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `En` in this scope [INFO] [stdout] --> src/config.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 4 | config[En] = 0.3; [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 2 | use rocket_lang::En; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Ar` in this scope [INFO] [stdout] --> src/config.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 5 | config[Ar] = 1.0; [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 2 | use rocket_lang::Ar; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/config.rs - config::Config (line 74) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Config` [INFO] [stdout] --> src/config.rs:75:14 [INFO] [stdout] | [INFO] [stdout] 3 | let config = Config::new().url(1).wildcard(Es); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use rocket::Config; [INFO] [stdout] | [INFO] [stdout] 2 | use rocket_lang::Config; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Es` in this scope [INFO] [stdout] --> src/config.rs:75:44 [INFO] [stdout] | [INFO] [stdout] 3 | let config = Config::new().url(1).wildcard(Es); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 2 | use rocket_lang::Es; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 32) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Config` [INFO] [stdout] --> src/lib.rs:34:14 [INFO] [stdout] | [INFO] [stdout] 4 | let config = Config::new().url(-1); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use rocket::Config; [INFO] [stdout] | [INFO] [stdout] 2 | use rocket_lang::Config; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - LangCode::english_name (line 123) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `Fr` in this scope [INFO] [stdout] --> src/lib.rs:124:10 [INFO] [stdout] | [INFO] [stdout] 3 | let fr = Fr.english_name(); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 2 | use rocket_lang::Fr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 59) stdout ---- [INFO] [stdout] error: unexpected `...` [INFO] [stdout] --> src/lib.rs:77:13 [INFO] [stdout] | [INFO] [stdout] 20 | ... [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | not a valid pattern [INFO] [stdout] | help: for a rest pattern, use `..` instead of `...` [INFO] [stdout] [INFO] [stdout] error: expected one of `=>`, `if`, or `|`, found `}` [INFO] [stdout] --> src/lib.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 20 | ... [INFO] [stdout] | - expected one of `=>`, `if`, or `|` [INFO] [stdout] 21 | }; [INFO] [stdout] | ^ unexpected token [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `get` in this scope [INFO] [stdout] --> src/lib.rs:63:3 [INFO] [stdout] | [INFO] [stdout] 6 | #[get("custom-error-message/")] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this attribute macro: [INFO] [stdout] rocket::get [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Error` [INFO] [stdout] --> src/lib.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 8 | Error::Unauthorized [INFO] [stdout] | ^^^^^ use of undeclared type `Error` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LangCode` [INFO] [stdout] --> src/lib.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 18 | LangCode::En => "Unauthorized", [INFO] [stdout] | ^^^^^^^^ use of undeclared type `LangCode` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LangCode` [INFO] [stdout] --> src/lib.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 19 | LangCode::Es => "No autorizado", [INFO] [stdout] | ^^^^^^^^ use of undeclared type `LangCode` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `User` in this scope [INFO] [stdout] --> src/lib.rs:64:31 [INFO] [stdout] | [INFO] [stdout] 7 | fn custom_error_message(user: User) -> Error { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in this scope [INFO] [stdout] --> src/lib.rs:64:40 [INFO] [stdout] | [INFO] [stdout] 7 | fn custom_error_message(user: User) -> Error { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 5 | use core::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 5 | use regex::Error; [INFO] [stdout] | [INFO] [stdout] 5 | use rocket::Error; [INFO] [stdout] | [INFO] [stdout] 5 | use rocket::form::Error; [INFO] [stdout] | [INFO] [stdout] and 13 other candidates [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `Responder` in this scope [INFO] [stdout] --> src/lib.rs:69:18 [INFO] [stdout] | [INFO] [stdout] 12 | impl<'r, 'o: 'r> Responder<'r, 'o> for Error { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 5 | use rocket::response::Responder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in this scope [INFO] [stdout] --> src/lib.rs:69:40 [INFO] [stdout] | [INFO] [stdout] 12 | impl<'r, 'o: 'r> Responder<'r, 'o> for Error { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 5 | use core::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 5 | use regex::Error; [INFO] [stdout] | [INFO] [stdout] 5 | use rocket::Error; [INFO] [stdout] | [INFO] [stdout] 5 | use rocket::form::Error; [INFO] [stdout] | [INFO] [stdout] and 13 other candidates [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Request` in this scope [INFO] [stdout] --> src/lib.rs:70:38 [INFO] [stdout] | [INFO] [stdout] 13 | fn respond_to(self, request: &'r Request<'_>) -> rocket::response::Result<'o> { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 5 | use rocket::Request; [INFO] [stdout] | [INFO] [stdout] 5 | use rocket::http::hyper::Request; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LangCode` in this scope [INFO] [stdout] --> src/lib.rs:71:19 [INFO] [stdout] | [INFO] [stdout] 14 | let lang: LangCode = request [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 5 | use rocket_lang::LangCode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in this scope [INFO] [stdout] --> src/lib.rs:73:26 [INFO] [stdout] | [INFO] [stdout] 16 | .map_err(|x: Error| x.status())?; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 5 | use core::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 5 | use regex::Error; [INFO] [stdout] | [INFO] [stdout] 5 | use rocket::Error; [INFO] [stdout] | [INFO] [stdout] 5 | use rocket::form::Error; [INFO] [stdout] | [INFO] [stdout] and 13 other candidates [INFO] [stdout] [INFO] [stdout] error: aborting due to 13 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 8) stdout ---- [INFO] [stdout] error: cannot find attribute `get` in this scope [INFO] [stdout] --> src/lib.rs:9:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[get("/some-path/")] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this attribute macro: [INFO] [stdout] rocket::get [INFO] [stdout] [INFO] [stdout] error: cannot find macro `json` in this scope [INFO] [stdout] --> src/lib.rs:14:28 [INFO] [stdout] | [INFO] [stdout] 8 | Template::render(path, json!({})) [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Template` [INFO] [stdout] --> src/lib.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 8 | Template::render(path, json!({})) [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Template` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LangCode` in this scope [INFO] [stdout] --> src/lib.rs:10:20 [INFO] [stdout] | [INFO] [stdout] 4 | fn some_path(lang: LangCode) -> Template { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use rocket_lang::LangCode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Template` in this scope [INFO] [stdout] --> src/lib.rs:10:33 [INFO] [stdout] | [INFO] [stdout] 4 | fn some_path(lang: LangCode) -> Template { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `LangCode` in this scope [INFO] [stdout] --> src/lib.rs:13:35 [INFO] [stdout] | [INFO] [stdout] 7 | let path = format!("home/{}", LangCode); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - LangCode::as_str (line 122) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `Es` in this scope [INFO] [stdout] --> src/lib.rs:123:15 [INFO] [stdout] | [INFO] [stdout] 3 | let spanish = Es.as_str(); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 2 | use rocket_lang::Es; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - LangCode::native_name (line 123) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `De` in this scope [INFO] [stdout] --> src/lib.rs:124:14 [INFO] [stdout] | [INFO] [stdout] 3 | let german = De.native_name(); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 2 | use rocket_lang::De; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 47) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Config` [INFO] [stdout] --> src/lib.rs:48:14 [INFO] [stdout] | [INFO] [stdout] 3 | let config = Config::custom(|req: &Request|{ [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use rocket::Config; [INFO] [stdout] | [INFO] [stdout] 2 | use rocket_lang::Config; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Request` in this scope [INFO] [stdout] --> src/lib.rs:48:36 [INFO] [stdout] | [INFO] [stdout] 3 | let config = Config::custom(|req: &Request|{ [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use rocket::Request; [INFO] [stdout] | [INFO] [stdout] 2 | use rocket::http::hyper::Request; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `from_url` in this scope [INFO] [stdout] --> src/lib.rs:49:16 [INFO] [stdout] | [INFO] [stdout] 4 | let lang = from_url(req)?; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/config.rs - config::Config (line 43) stdout ---- [INFO] [stdout] error: expected `]`, found keyword `fn` [INFO] [stdout] --> src/config.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 6 | #[get("/index/en") [INFO] [stdout] | - expected `]` [INFO] [stdout] 7 | fn english_language() { [INFO] [stdout] | ^^ unexpected token [INFO] [stdout] [INFO] [stdout] error: mismatched closing delimiter: `}` [INFO] [stdout] --> src/config.rs:53:2 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_config_rs_43_0() { [INFO] [stdout] | - closing delimiter possibly meant for this [INFO] [stdout] ... [INFO] [stdout] 12 | #[get("/index/<_>", rank = 2) [INFO] [stdout] | ^ unclosed delimiter [INFO] [stdout] ... [INFO] [stdout] 16 | } _doctest_main_src_config_rs_43_0() } [INFO] [stdout] | ^ mismatched closing delimiter [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Config` [INFO] [stdout] --> src/config.rs:45:14 [INFO] [stdout] | [INFO] [stdout] 4 | let config = Config::new().url(-1); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use rocket::Config; [INFO] [stdout] | [INFO] [stdout] 3 | use rocket_lang::Config; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/config.rs - config::Config (line 31) [INFO] [stdout] src/config.rs - config::Config (line 43) [INFO] [stdout] src/config.rs - config::Config (line 63) [INFO] [stdout] src/config.rs - config::Config (line 74) [INFO] [stdout] src/lib.rs - (line 24) [INFO] [stdout] src/lib.rs - (line 32) [INFO] [stdout] src/lib.rs - (line 38) [INFO] [stdout] src/lib.rs - (line 47) [INFO] [stdout] src/lib.rs - (line 59) [INFO] [stdout] src/lib.rs - (line 8) [INFO] [stdout] src/lib.rs - LangCode::as_str (line 122) [INFO] [stdout] src/lib.rs - LangCode::english_name (line 123) [INFO] [stdout] src/lib.rs - LangCode::native_name (line 123) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 13 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.13s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "3c119560e934ec21bc0b3201c476b2814f4279f0eca8db7ae8fe329eabb7f8d5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3c119560e934ec21bc0b3201c476b2814f4279f0eca8db7ae8fe329eabb7f8d5", kill_on_drop: false }` [INFO] [stdout] 3c119560e934ec21bc0b3201c476b2814f4279f0eca8db7ae8fe329eabb7f8d5