[INFO] fetching crate rocket_lang 0.2.0... [INFO] testing rocket_lang-0.2.0 against try#ece70b22820429ebf0c6d388c32356a14c58fc2f for pr-107251 [INFO] extracting crate rocket_lang 0.2.0 into /workspace/builds/worker-0-tc2/source [INFO] validating manifest of crates.io crate rocket_lang 0.2.0 on toolchain ece70b22820429ebf0c6d388c32356a14c58fc2f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ece70b22820429ebf0c6d388c32356a14c58fc2f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate rocket_lang 0.2.0 [INFO] finished tweaking crates.io crate rocket_lang 0.2.0 [INFO] tweaked toml for crates.io crate rocket_lang 0.2.0 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" __CARGO_TEST_CHANNEL_OVERRIDE_DO_NOT_USE_THIS="nightly" "/workspace/cargo-home/bin/cargo" "+ece70b22820429ebf0c6d388c32356a14c58fc2f" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ece70b22820429ebf0c6d388c32356a14c58fc2f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:3d532c2baa59a8a48e45c3be7eb049f77ac5a58a7a6514a58a8e878df1c3d03d" "/opt/rustwide/cargo-home/bin/cargo" "+ece70b22820429ebf0c6d388c32356a14c58fc2f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 49313a7a5027486ee737fa13d97d36827f7b9fee78e309c35a46f49d7881361a [INFO] running `Command { std: "docker" "start" "-a" "49313a7a5027486ee737fa13d97d36827f7b9fee78e309c35a46f49d7881361a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "49313a7a5027486ee737fa13d97d36827f7b9fee78e309c35a46f49d7881361a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "49313a7a5027486ee737fa13d97d36827f7b9fee78e309c35a46f49d7881361a", kill_on_drop: false }` [INFO] [stdout] 49313a7a5027486ee737fa13d97d36827f7b9fee78e309c35a46f49d7881361a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:3d532c2baa59a8a48e45c3be7eb049f77ac5a58a7a6514a58a8e878df1c3d03d" "/opt/rustwide/cargo-home/bin/cargo" "+ece70b22820429ebf0c6d388c32356a14c58fc2f" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9a789a8401ca0fe2b55409d5a5d2f018b35ed324be15da310445989210d9865c [INFO] running `Command { std: "docker" "start" "-a" "9a789a8401ca0fe2b55409d5a5d2f018b35ed324be15da310445989210d9865c", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.107 [INFO] [stderr] Compiling pin-project-lite v0.2.9 [INFO] [stderr] Compiling futures-channel v0.3.25 [INFO] [stderr] Compiling getrandom v0.2.8 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling futures-core v0.3.25 [INFO] [stderr] Compiling socket2 v0.4.7 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.9.1 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling serde v1.0.152 [INFO] [stderr] Compiling yansi v0.5.1 [INFO] [stderr] Compiling once_cell v1.17.0 [INFO] [stderr] Compiling cpufeatures v0.2.5 [INFO] [stderr] Compiling inout v0.1.3 [INFO] [stderr] Compiling slab v0.4.7 [INFO] [stderr] Compiling tokio v1.25.0 [INFO] [stderr] Compiling tracing-core v0.1.30 [INFO] [stderr] Compiling futures-task v0.3.25 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Compiling futures-sink v0.3.25 [INFO] [stderr] Compiling cipher v0.4.3 [INFO] [stderr] Compiling mio v0.8.5 [INFO] [stderr] Compiling digest v0.10.6 [INFO] [stderr] Compiling universal-hash v0.5.0 [INFO] [stderr] Compiling tracing v0.1.37 [INFO] [stderr] Compiling num_cpus v1.15.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling try-lock v0.2.4 [INFO] [stderr] Compiling futures-util v0.3.25 [INFO] [stderr] Compiling polyval v0.6.0 [INFO] [stderr] Compiling time-core v0.1.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling futures-io v0.3.25 [INFO] [stderr] Compiling time-macros v0.2.6 [INFO] [stderr] Compiling ghash v0.5.0 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling ctr v0.9.2 [INFO] [stderr] Compiling aes v0.8.2 [INFO] [stderr] Compiling http-body v0.4.5 [INFO] [stderr] Compiling aead v0.5.1 [INFO] [stderr] Compiling indexmap v1.9.2 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling tower-service v0.3.2 [INFO] [stderr] Compiling inlinable_string v0.1.15 [INFO] [stderr] Compiling httpdate v1.0.2 [INFO] [stderr] Compiling ref-cast v1.0.14 [INFO] [stderr] Compiling smallvec v1.10.0 [INFO] [stderr] Compiling aes-gcm v0.10.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling hkdf v0.12.3 [INFO] [stderr] Compiling sha2 v0.10.6 [INFO] [stderr] Compiling time v0.3.17 [INFO] [stderr] Compiling uncased v0.9.7 [INFO] [stderr] Compiling percent-encoding v2.2.0 [INFO] [stderr] Compiling base64 v0.20.0 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling stable-pattern v0.1.0 [INFO] [stderr] Compiling lock_api v0.4.9 [INFO] [stderr] Compiling devise_core v0.3.1 [INFO] [stderr] Compiling encoding_rs v0.8.31 [INFO] [stderr] Compiling state v0.5.3 [INFO] [stderr] Compiling parking_lot_core v0.9.6 [INFO] [stderr] Compiling either v1.8.1 [INFO] [stderr] Compiling futures v0.3.25 [INFO] [stderr] Compiling atomic v0.5.1 [INFO] [stderr] Compiling multer v2.0.4 [INFO] [stderr] Compiling figment v0.10.8 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling async-trait v0.1.63 [INFO] [stderr] Compiling rocket v0.5.0-rc.2 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Compiling unicode-xid v0.2.4 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling hyper v0.14.23 [INFO] [stderr] Compiling spin v0.9.4 [INFO] [stderr] Compiling fastrand v1.8.0 [INFO] [stderr] Compiling thiserror v1.0.38 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling tempfile v3.3.0 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling binascii v0.1.4 [INFO] [stderr] Compiling serde_derive v1.0.152 [INFO] [stderr] Compiling tokio-macros v1.8.2 [INFO] [stderr] Compiling pear_codegen v0.2.3 [INFO] [stderr] Compiling ref-cast-impl v1.0.14 [INFO] [stderr] Compiling devise_codegen v0.3.1 [INFO] [stderr] Compiling async-stream-impl v0.3.3 [INFO] [stderr] Compiling thiserror-impl v1.0.38 [INFO] [stderr] Compiling devise v0.3.1 [INFO] [stderr] Compiling pear v0.2.3 [INFO] [stderr] Compiling async-stream v0.3.3 [INFO] [stderr] Compiling rocket_http v0.5.0-rc.2 [INFO] [stderr] Compiling rocket_codegen v0.5.0-rc.2 [INFO] [stderr] Compiling tokio-util v0.7.4 [INFO] [stderr] Compiling tokio-stream v0.1.11 [INFO] [stderr] Compiling toml v0.5.11 [INFO] [stderr] Compiling ubyte v0.10.3 [INFO] [stderr] Compiling h2 v0.3.15 [INFO] [stderr] Compiling rocket_lang v0.2.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 38s [INFO] running `Command { std: "docker" "inspect" "9a789a8401ca0fe2b55409d5a5d2f018b35ed324be15da310445989210d9865c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9a789a8401ca0fe2b55409d5a5d2f018b35ed324be15da310445989210d9865c", kill_on_drop: false }` [INFO] [stdout] 9a789a8401ca0fe2b55409d5a5d2f018b35ed324be15da310445989210d9865c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:3d532c2baa59a8a48e45c3be7eb049f77ac5a58a7a6514a58a8e878df1c3d03d" "/opt/rustwide/cargo-home/bin/cargo" "+ece70b22820429ebf0c6d388c32356a14c58fc2f" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7248c08d0218ea8569802f58e04c12c56b0ca799ce6a82c9890567713fa1d28a [INFO] running `Command { std: "docker" "start" "-a" "7248c08d0218ea8569802f58e04c12c56b0ca799ce6a82c9890567713fa1d28a", kill_on_drop: false }` [INFO] [stderr] Compiling tap v1.0.1 [INFO] [stderr] Compiling rocket_lang v0.2.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 18.09s [INFO] running `Command { std: "docker" "inspect" "7248c08d0218ea8569802f58e04c12c56b0ca799ce6a82c9890567713fa1d28a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7248c08d0218ea8569802f58e04c12c56b0ca799ce6a82c9890567713fa1d28a", kill_on_drop: false }` [INFO] [stdout] 7248c08d0218ea8569802f58e04c12c56b0ca799ce6a82c9890567713fa1d28a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:3d532c2baa59a8a48e45c3be7eb049f77ac5a58a7a6514a58a8e878df1c3d03d" "/opt/rustwide/cargo-home/bin/cargo" "+ece70b22820429ebf0c6d388c32356a14c58fc2f" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 74adc677e6fee49007aa6142697064d4744483782f6c314eb216229f62cad2e0 [INFO] running `Command { std: "docker" "start" "-a" "74adc677e6fee49007aa6142697064d4744483782f6c314eb216229f62cad2e0", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.31s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/rocket_lang-2a3aa2004a0d0cf7) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stderr] Running tests/accept_language.rs (/opt/rustwide/target/debug/deps/accept_language-ea4580033d4007c1) [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] [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.10s [INFO] [stdout] [INFO] [stderr] Running tests/common.rs (/opt/rustwide/target/debug/deps/common-1119345e89b6bfd1) [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-a7933a89cab10830) [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test mixed_url_accept_language ... ok [INFO] [stdout] test mixed_url_wildcard ... ok [INFO] [stdout] test mixed_custom_url ... ok [INFO] [stderr] Running tests/test1.rs (/opt/rustwide/target/debug/deps/test1-509f4e665e140760) [INFO] [stdout] [INFO] [stdout] test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.14s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 6 tests [INFO] [stdout] test names ... ok [INFO] [stdout] test accept_header_without_config ... ok [INFO] [stdout] test test_custom ... ok [INFO] [stdout] test test_failed_custom ... ok [INFO] [stdout] test wildcard ... ok [INFO] [stdout] test _accept_header1 ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.15s [INFO] [stdout] [INFO] [stderr] Running tests/url.rs (/opt/rustwide/target/debug/deps/url-d9515e5bb2221bbb) [INFO] [stdout] [INFO] [stdout] running 8 tests [INFO] [stdout] test url_negative_index ... ok [INFO] [stdout] test url_positive_index ... ok [INFO] [stdout] test url_minus_one ... ok [INFO] [stdout] test url_not_a_lang_code ... ok [INFO] [stdout] test url_not_long_enough_minus_one ... ok [INFO] [stdout] test url_not_long_enough_negative ... ok [INFO] [stdout] test wildcard ... ok [INFO] [stdout] test url_not_long_enough_positive ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.13s [INFO] [stdout] [INFO] [stderr] Doc-tests rocket_lang [INFO] [stdout] [INFO] [stdout] running 13 tests [INFO] [stdout] test src/config.rs - config::Config (line 84) ... FAILED [INFO] [stdout] test src/lib.rs - (line 23) ... FAILED [INFO] [stdout] test src/config.rs - config::Config (line 73) ... FAILED [INFO] [stdout] test src/lib.rs - (line 31) ... FAILED [INFO] [stdout] test src/config.rs - config::Config (line 53) ... FAILED [INFO] [stdout] test src/lib.rs - (line 37) ... FAILED [INFO] [stdout] test src/config.rs - config::Config (line 41) ... FAILED [INFO] [stdout] test src/lib.rs - (line 46) ... FAILED [INFO] [stdout] test src/lib.rs - (line 58) ... FAILED [INFO] [stdout] test src/lib.rs - (line 7) ... FAILED [INFO] [stdout] test src/lib.rs - LangCode::native_name (line 123) ... FAILED [INFO] [stdout] test src/lib.rs - LangCode::english_name (line 123) ... FAILED [INFO] [stdout] test src/lib.rs - LangCode::as_str (line 122) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/config.rs - config::Config (line 84) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Config` [INFO] [stdout] --> src/config.rs:85:14 [INFO] [stdout] | [INFO] [stdout] 3 | let config = Config::new().url(1).wildcard(Es); [INFO] [stdout] | ^^^^^^ use of undeclared type `Config` [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:85: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 23) stdout ---- [INFO] [stdout] error: expected one of `:`, `;`, `=`, `@`, or `|`, found `[` [INFO] [stdout] --> src/lib.rs:25: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:24:14 [INFO] [stdout] | [INFO] [stdout] 3 | let config = Config::new(); [INFO] [stdout] | ^^^^^^ use of undeclared type `Config` [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/config.rs - config::Config (line 73) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Config` [INFO] [stdout] --> src/config.rs:74:14 [INFO] [stdout] | [INFO] [stdout] 3 | let config = Config::new(); [INFO] [stdout] | ^^^^^^ use of undeclared type `Config` [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:75: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:76: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/lib.rs - (line 31) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Config` [INFO] [stdout] --> src/lib.rs:33:14 [INFO] [stdout] | [INFO] [stdout] 4 | let config = Config::new().url(-1); [INFO] [stdout] | ^^^^^^ use of undeclared type `Config` [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/config.rs - config::Config (line 53) stdout ---- [INFO] [stdout] error: expected `]`, found keyword `fn` [INFO] [stdout] --> src/config.rs:58: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:63:2 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_config_rs_53_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_53_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:55:14 [INFO] [stdout] | [INFO] [stdout] 4 | let config = Config::new().url(-1); [INFO] [stdout] | ^^^^^^ use of undeclared type `Config` [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] ---- src/lib.rs - (line 37) stdout ---- [INFO] [stdout] error: cannot find attribute `get` in this scope [INFO] [stdout] --> src/lib.rs:38:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[get("see-lang/<_>")] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: 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:39: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 41) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Config` [INFO] [stdout] --> src/config.rs:42:14 [INFO] [stdout] | [INFO] [stdout] 3 | let config = Config::new().custom(|request: &Request| { [INFO] [stdout] | ^^^^^^ use of undeclared type `Config` [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:42: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:43: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 46) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Config` [INFO] [stdout] --> src/lib.rs:47:14 [INFO] [stdout] | [INFO] [stdout] 3 | let config = Config::custom(|req: &Request|{ [INFO] [stdout] | ^^^^^^ use of undeclared type `Config` [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:47: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:48: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/lib.rs - (line 58) stdout ---- [INFO] [stdout] error: cannot find attribute `get` in this scope [INFO] [stdout] --> src/lib.rs:63:3 [INFO] [stdout] | [INFO] [stdout] 8 | #[get("/unauthorized")] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider importing this attribute macro: [INFO] [stdout] rocket::get [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] 20 | LangCode::Es => "No autorizado", [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] 21 | LangCode::Fr => "Non autorisé", [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:77:13 [INFO] [stdout] | [INFO] [stdout] 22 | LangCode::Ge => "Nicht autorisiert", [INFO] [stdout] | ^^^^^^^^ use of undeclared type `LangCode` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Unauthorized` in this scope [INFO] [stdout] --> src/lib.rs:64:22 [INFO] [stdout] | [INFO] [stdout] 9 | fn unauthorized() -> Unauthorized { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use rocket::response::status::Unauthorized; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Unauthorized` in this scope [INFO] [stdout] --> src/lib.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 10 | Unauthorized [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 2 | use rocket::response::status::Unauthorized; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `Responder` in this scope [INFO] [stdout] --> src/lib.rs:69:18 [INFO] [stdout] | [INFO] [stdout] 14 | impl<'r, 'o: 'r> Responder<'r, 'o> for Unauthorized { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 | use rocket::response::Responder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Unauthorized` in this scope [INFO] [stdout] --> src/lib.rs:69:40 [INFO] [stdout] | [INFO] [stdout] 14 | impl<'r, 'o: 'r> Responder<'r, 'o> for Unauthorized { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use rocket::response::status::Unauthorized; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Request` in this scope [INFO] [stdout] --> src/lib.rs:70:38 [INFO] [stdout] | [INFO] [stdout] 15 | 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] 2 | use rocket::Request; [INFO] [stdout] | [INFO] [stdout] 2 | 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] 16 | let lang: LangCode = request [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 10 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0425, 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 7) stdout ---- [INFO] [stdout] error: cannot find attribute `get` in this scope [INFO] [stdout] --> src/lib.rs:8:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[get("/some-path/")] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: 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:13:28 [INFO] [stdout] | [INFO] [stdout] 8 | Template::render(path, json!({})) [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LangCode` in this scope [INFO] [stdout] --> src/lib.rs:9: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:9: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:12:35 [INFO] [stdout] | [INFO] [stdout] 7 | let path = format!("home/{}", LangCode); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Template` [INFO] [stdout] --> src/lib.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 8 | Template::render(path, json!({})) [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Template` [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::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 - 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 - 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] [INFO] [stdout] failures: [INFO] [stdout] src/config.rs - config::Config (line 41) [INFO] [stdout] src/config.rs - config::Config (line 53) [INFO] [stdout] src/config.rs - config::Config (line 73) [INFO] [stdout] src/config.rs - config::Config (line 84) [INFO] [stdout] src/lib.rs - (line 23) [INFO] [stdout] src/lib.rs - (line 31) [INFO] [stdout] src/lib.rs - (line 37) [INFO] [stdout] src/lib.rs - (line 46) [INFO] [stdout] src/lib.rs - (line 58) [INFO] [stdout] src/lib.rs - (line 7) [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.71s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "74adc677e6fee49007aa6142697064d4744483782f6c314eb216229f62cad2e0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "74adc677e6fee49007aa6142697064d4744483782f6c314eb216229f62cad2e0", kill_on_drop: false }` [INFO] [stdout] 74adc677e6fee49007aa6142697064d4744483782f6c314eb216229f62cad2e0