[INFO] fetching crate httprouter 0.0.0... [INFO] testing httprouter-0.0.0 against master#5d5ff84130da0d74c6ece368dbe821d8f83fa526 for pr-79296 [INFO] extracting crate httprouter 0.0.0 into /workspace/builds/worker-4/source [INFO] validating manifest of crates.io crate httprouter 0.0.0 on toolchain 5d5ff84130da0d74c6ece368dbe821d8f83fa526 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking crates.io crate httprouter 0.0.0 [INFO] finished tweaking crates.io crate httprouter 0.0.0 [INFO] tweaked toml for crates.io crate httprouter 0.0.0 written to /workspace/builds/worker-4/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4ec789dc7cda8b87eaf4ac6cf6e45514d94a59f22be6005f32f956cbfb644fcf [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" "4ec789dc7cda8b87eaf4ac6cf6e45514d94a59f22be6005f32f956cbfb644fcf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4ec789dc7cda8b87eaf4ac6cf6e45514d94a59f22be6005f32f956cbfb644fcf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4ec789dc7cda8b87eaf4ac6cf6e45514d94a59f22be6005f32f956cbfb644fcf", kill_on_drop: false }` [INFO] [stdout] 4ec789dc7cda8b87eaf4ac6cf6e45514d94a59f22be6005f32f956cbfb644fcf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "build" "--frozen" "--message-format=json", 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] 0d4ff29789b717b4b017c25d002cfd2de399f94f915baa78c6f3df0028c103bb [INFO] running `Command { std: "docker" "start" "-a" "0d4ff29789b717b4b017c25d002cfd2de399f94f915baa78c6f3df0028c103bb", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling libc v0.2.80 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling slab v0.4.2 [INFO] [stderr] Compiling futures-core v0.3.8 [INFO] [stderr] Compiling futures-sink v0.3.8 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling proc-macro-nested v0.1.6 [INFO] [stderr] Compiling pin-project-internal v0.4.27 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling once_cell v1.5.2 [INFO] [stderr] Compiling bytes v0.5.6 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling futures-io v0.3.8 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling itoa v0.4.6 [INFO] [stderr] Compiling pin-project-lite v0.1.11 [INFO] [stderr] Compiling pin-project-lite v0.2.0 [INFO] [stderr] Compiling httparse v1.3.4 [INFO] [stderr] Compiling hashbrown v0.9.1 [INFO] [stderr] Compiling try-lock v0.2.3 [INFO] [stderr] Compiling httpdate v0.3.2 [INFO] [stderr] Compiling tower-service v0.3.0 [INFO] [stderr] Compiling tracing-core v0.1.17 [INFO] [stderr] Compiling futures-channel v0.3.8 [INFO] [stderr] Compiling futures-task v0.3.8 [INFO] [stderr] Compiling http v0.2.1 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling indexmap v1.6.0 [INFO] [stderr] Compiling tracing v0.1.22 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling net2 v0.2.36 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling socket2 v0.3.17 [INFO] [stderr] Compiling syn v1.0.52 [INFO] [stderr] Compiling mio v0.6.22 [INFO] [stderr] Compiling tokio v0.2.23 [INFO] [stderr] Compiling http-body v0.3.1 [INFO] [stderr] Compiling tokio-util v0.3.1 [INFO] [stderr] Compiling pin-project-internal v1.0.2 [INFO] [stderr] Compiling futures-macro v0.3.8 [INFO] [stderr] Compiling pin-project v1.0.2 [INFO] [stderr] Compiling futures-util v0.3.8 [INFO] [stderr] Compiling pin-project v0.4.27 [INFO] [stderr] Compiling tracing-futures v0.2.4 [INFO] [stderr] Compiling h2 v0.2.7 [INFO] [stderr] Compiling futures-executor v0.3.8 [INFO] [stderr] Compiling futures v0.3.8 [INFO] [stderr] Compiling hyper v0.13.9 [INFO] [stderr] Compiling httprouter v0.0.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 28s [INFO] running `Command { std: "docker" "inspect" "0d4ff29789b717b4b017c25d002cfd2de399f94f915baa78c6f3df0028c103bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0d4ff29789b717b4b017c25d002cfd2de399f94f915baa78c6f3df0028c103bb", kill_on_drop: false }` [INFO] [stdout] 0d4ff29789b717b4b017c25d002cfd2de399f94f915baa78c6f3df0028c103bb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a471f29856505c1deba1d79407605efae720df9c86323a1bba6a94bded4bd045 [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" "a471f29856505c1deba1d79407605efae720df9c86323a1bba6a94bded4bd045", kill_on_drop: false }` [INFO] [stderr] Compiling httprouter v0.0.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 3.69s [INFO] running `Command { std: "docker" "inspect" "a471f29856505c1deba1d79407605efae720df9c86323a1bba6a94bded4bd045", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a471f29856505c1deba1d79407605efae720df9c86323a1bba6a94bded4bd045", kill_on_drop: false }` [INFO] [stdout] a471f29856505c1deba1d79407605efae720df9c86323a1bba6a94bded4bd045 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 84824e3a867344de7c9cc777ae03cd8c25bbc48c390500433df38165744d78f3 [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" "84824e3a867344de7c9cc777ae03cd8c25bbc48c390500433df38165744d78f3", kill_on_drop: false }` [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.11s [INFO] [stdout] running 16 tests [INFO] [stderr] Running /opt/rustwide/target/debug/deps/httprouter-4fe5ec3cff8d6895 [INFO] [stdout] test tree::tests::params ... ok [INFO] [stdout] test path::tests::test_path_clean ... ok [INFO] [stdout] test tree::tests::test_tree_wildcard ... ok [INFO] [stdout] test tree::tests::test_tree_trailing_slash_redirect ... ok [INFO] [stdout] test tree::tests::test_tree_root_trailing_slash_redirect ... ok [INFO] [stdout] test tree::tests::test_tree_find_case_insensitive_path ... ok [INFO] [stdout] test tree::tests::test_tree_add_and_get ... ok [INFO] [stdout] test tree::tests::test_tree_wildcard_conflict_ex ... ok [INFO] [stdout] test tree::tests::test_tree_catch_all_conflict ... ok [INFO] [stdout] test tree::tests::test_tree_wildcard_conflict ... ok [INFO] [stdout] test tree::tests::test_empty_wildcard_name ... ok [INFO] [stdout] test tree::tests::test_tree_catch_all_conflict_root ... ok [INFO] [stdout] test tree::tests::test_tree_child_conflict ... ok [INFO] [stdout] test tree::tests::test_tree_duplicate_path ... ok [INFO] [stdout] test tree::tests::test_tree_double_wildcard ... ok [INFO] [stderr] Doc-tests httprouter [INFO] [stdout] test path::tests::test_path_clean_long ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 16 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 11 tests [INFO] [stdout] test src/router.rs - router (line 5) ... ignored [INFO] [stdout] test src/lib.rs - test_readme (line 138) ... FAILED [INFO] [stdout] test src/lib.rs - test_readme (line 115) ... FAILED [INFO] [stdout] test src/lib.rs - test_readme (line 297) ... FAILED [INFO] [stdout] test src/lib.rs - test_readme (line 223) ... FAILED [INFO] [stdout] test src/lib.rs - test_readme (line 103) ... FAILED [INFO] [stdout] test src/lib.rs - test_readme (line 88) ... FAILED [INFO] [stdout] test src/lib.rs - test_readme (line 52) ... FAILED [INFO] [stdout] test src/lib.rs - test_readme (line 231) ... FAILED [INFO] [stdout] test src/lib.rs - test_readme (line 161) ... FAILED [INFO] [stdout] test src/lib.rs - test_readme (line 159) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - test_readme (line 138) stdout ---- [INFO] [stdout] error: unknown start of token: \u{251c} [INFO] [stdout] --> src/lib.rs:139:1 [INFO] [stdout] | [INFO] [stdout] 3 | ├------------ [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \u{251c} [INFO] [stdout] --> src/lib.rs:140:1 [INFO] [stdout] | [INFO] [stdout] 4 | ├--------- [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \u{251c} [INFO] [stdout] --> src/lib.rs:141:1 [INFO] [stdout] | [INFO] [stdout] 5 | ├----- [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \u{251c} [INFO] [stdout] --> src/lib.rs:142:1 [INFO] [stdout] | [INFO] [stdout] 6 | ├---- [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \u{251c} [INFO] [stdout] --> src/lib.rs:143:1 [INFO] [stdout] | [INFO] [stdout] 7 | ├-- [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \u{251c} [INFO] [stdout] --> src/lib.rs:144:1 [INFO] [stdout] | [INFO] [stdout] 8 | ├-- [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \u{2514} [INFO] [stdout] --> src/lib.rs:145:1 [INFO] [stdout] | [INFO] [stdout] 9 | └- [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: expected expression, found `}` [INFO] [stdout] --> src/lib.rs:146:1 [INFO] [stdout] | [INFO] [stdout] 10 | } [INFO] [stdout] | ^ expected expression [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - test_readme (line 115) stdout ---- [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/lib.rs:117:12 [INFO] [stdout] | [INFO] [stdout] 4 | 9 \ *<1> [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \u{251c} [INFO] [stdout] --> src/lib.rs:118:12 [INFO] [stdout] | [INFO] [stdout] 5 | 3 ├s nil [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \u{251c} [INFO] [stdout] --> src/lib.rs:119:13 [INFO] [stdout] | [INFO] [stdout] 6 | 2 |├earch\ *<2> [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/lib.rs:119:19 [INFO] [stdout] | [INFO] [stdout] 6 | 2 |├earch\ *<2> [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \u{2514} [INFO] [stdout] --> src/lib.rs:120:13 [INFO] [stdout] | [INFO] [stdout] 7 | 1 |└upport\ *<3> [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/lib.rs:120:20 [INFO] [stdout] | [INFO] [stdout] 7 | 1 |└upport\ *<3> [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \u{251c} [INFO] [stdout] --> src/lib.rs:121:12 [INFO] [stdout] | [INFO] [stdout] 8 | 2 ├blog\ *<4> [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/lib.rs:121:17 [INFO] [stdout] | [INFO] [stdout] 8 | 2 ├blog\ *<4> [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \u{2514} [INFO] [stdout] --> src/lib.rs:122:17 [INFO] [stdout] | [INFO] [stdout] 9 | 1 | └:post nil [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \u{2514} [INFO] [stdout] --> src/lib.rs:123:22 [INFO] [stdout] | [INFO] [stdout] 10 | 1 | └\ *<5> [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/lib.rs:123:23 [INFO] [stdout] | [INFO] [stdout] 10 | 1 | └\ *<5> [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \u{251c} [INFO] [stdout] --> src/lib.rs:124:12 [INFO] [stdout] | [INFO] [stdout] 11 | 2 ├about-us\ *<6> [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/lib.rs:124:21 [INFO] [stdout] | [INFO] [stdout] 11 | 2 ├about-us\ *<6> [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \u{2514} [INFO] [stdout] --> src/lib.rs:125:21 [INFO] [stdout] | [INFO] [stdout] 12 | 1 | └team\ *<7> [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/lib.rs:125:26 [INFO] [stdout] | [INFO] [stdout] 12 | 1 | └team\ *<7> [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \u{2514} [INFO] [stdout] --> src/lib.rs:126:12 [INFO] [stdout] | [INFO] [stdout] 13 | 1 └contact\ *<8> [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \ [INFO] [stdout] --> src/lib.rs:126:20 [INFO] [stdout] | [INFO] [stdout] 13 | 1 └contact\ *<8> [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `Path` [INFO] [stdout] --> src/lib.rs:116:12 [INFO] [stdout] | [INFO] [stdout] 3 | Priority Path Handle [INFO] [stdout] | ^^^^ expected one of 8 possible tokens [INFO] [stdout] [INFO] [stdout] error: aborting due to 18 previous errors [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - test_readme (line 297) stdout ---- [INFO] [stdout] error: unknown start of token: ` [INFO] [stdout] --> src/lib.rs:299:166 [INFO] [stdout] | [INFO] [stdout] 2 | ...er approach is to use a distinct sub-path for serving files, like `/static/*filepath` or `/files/*filepath`. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: Unicode character '`' (Grave Accent) looks like ''' (Single Quote), but it is not [INFO] [stdout] | [INFO] [stdout] 2 | But this approach sidesteps the strict core rules of this router to avoid routing problems. A cleaner approach is to use a distinct sub-path for serving files, like '/static/*filepath` or `/files/*filepath`. [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error[E0758]: unterminated block comment [INFO] [stdout] --> src/lib.rs:299:174 [INFO] [stdout] | [INFO] [stdout] 2 | But this approach sidesteps the strict core rules of this router to avoid routing problems. A cleaner approach is to use a distinct sub-path for serving files, like `/static/*fi... [INFO] [stdout] | ______________________________________________________________________________________________________________________________________________________________________________^ [INFO] [stdout] 3 | | [INFO] [stdout] 4 | | # Web Frameworks based on HttpRouter [INFO] [stdout] 5 | | [INFO] [stdout] ... | [INFO] [stdout] 21 | | * [siesta](https://github.com/VividCortex/siesta): Composable HTTP handlers with contexts [INFO] [stdout] 22 | | * [xmux](https://github.com/rs/xmux): xmux is a httprouter fork on top of xhandler (net/context aware) [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 E0758`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - test_readme (line 223) stdout ---- [INFO] [stdout] error: expected expression, found `=` [INFO] [stdout] --> src/lib.rs:226:5 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | - while parsing this struct [INFO] [stdout] 5 | hs := make(HostSwitch) [INFO] [stdout] | ^ expected expression [INFO] [stdout] [INFO] [stdout] error: expected type, found `=` [INFO] [stdout] --> src/lib.rs:226:5 [INFO] [stdout] | [INFO] [stdout] 5 | hs := make(HostSwitch) [INFO] [stdout] | -^ expected type [INFO] [stdout] | | [INFO] [stdout] | tried to parse a type due to this type ascription [INFO] [stdout] | [INFO] [stdout] = note: `#![feature(type_ascription)]` lets you annotate an expression with a type: `: ` [INFO] [stdout] = note: see issue #23416 for more information [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - test_readme (line 103) stdout ---- [INFO] [stdout] error[E0758]: unterminated block comment [INFO] [stdout] --> src/lib.rs:104:14 [INFO] [stdout] | [INFO] [stdout] 1 | Pattern: /src/*filepath [INFO] [stdout] | ______________^ [INFO] [stdout] 2 | | [INFO] [stdout] 3 | | /src/ match [INFO] [stdout] 4 | | /src/somefile.go match [INFO] [stdout] 5 | | /src/subdir/somefile.go match [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 E0758`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - test_readme (line 88) stdout ---- [INFO] [stdout] error: expected expression, found `/` [INFO] [stdout] --> src/lib.rs:89:10 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { [INFO] [stdout] | - while parsing this struct [INFO] [stdout] 3 | Pattern: /user/:user [INFO] [stdout] | ^ expected expression [INFO] [stdout] [INFO] [stdout] error: struct literal body without path [INFO] [stdout] --> src/lib.rs:88:11 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { [INFO] [stdout] | ___________^ [INFO] [stdout] 3 | | Pattern: /user/:user [INFO] [stdout] 4 | | [INFO] [stdout] 5 | | /user/gordon match [INFO] [stdout] ... | [INFO] [stdout] 8 | | /user/ no match [INFO] [stdout] 9 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] help: you might have forgotten to add the struct literal inside the block [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { SomeStruct { [INFO] [stdout] 3 | Pattern: /user/:user [INFO] [stdout] 4 | [INFO] [stdout] 5 | /user/gordon match [INFO] [stdout] 6 | /user/you match [INFO] [stdout] 7 | /user/gordon/profile no match [INFO] [stdout] ... [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - test_readme (line 52) stdout ---- [INFO] [stdout] error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `main` [INFO] [stdout] --> src/lib.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 4 | package main [INFO] [stdout] | ^^^^ expected one of 8 possible tokens [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - test_readme (line 231) stdout ---- [INFO] [stdout] error: unknown start of token: ` [INFO] [stdout] --> src/lib.rs:237:1 [INFO] [stdout] | [INFO] [stdout] 9 | ``rust [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: Unicode character '`' (Grave Accent) looks like ''' (Single Quote), but it is not [INFO] [stdout] | [INFO] [stdout] 9 | '`rust [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: ` [INFO] [stdout] --> src/lib.rs:237:2 [INFO] [stdout] | [INFO] [stdout] 9 | ``rust [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: Unicode character '`' (Grave Accent) looks like ''' (Single Quote), but it is not [INFO] [stdout] | [INFO] [stdout] 9 | `'rust [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: expected one of `!` or `[`, found `#` [INFO] [stdout] --> src/lib.rs:233:2 [INFO] [stdout] | [INFO] [stdout] 5 | ## Basic Authentication [INFO] [stdout] | ^ expected one of `!` or `[` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - test_readme (line 161) stdout ---- [INFO] [stdout] error: unknown start of token: ` [INFO] [stdout] --> src/lib.rs:163:33 [INFO] [stdout] | [INFO] [stdout] 5 | Alternatively, one can also use `params := r.Context().Value(httprouter.ParamsKey)` instead of the helper function. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: Unicode character '`' (Grave Accent) looks like ''' (Single Quote), but it is not [INFO] [stdout] | [INFO] [stdout] 5 | Alternatively, one can also use 'params := r.Context().Value(httprouter.ParamsKey)` instead of the helper function. [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: ` [INFO] [stdout] --> src/lib.rs:163:83 [INFO] [stdout] | [INFO] [stdout] 5 | Alternatively, one can also use `params := r.Context().Value(httprouter.ParamsKey)` instead of the helper function. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: Unicode character '`' (Grave Accent) looks like ''' (Single Quote), but it is not [INFO] [stdout] | [INFO] [stdout] 5 | Alternatively, one can also use `params := r.Context().Value(httprouter.ParamsKey)' instead of the helper function. [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: ` [INFO] [stdout] --> src/lib.rs:170:33 [INFO] [stdout] | [INFO] [stdout] 12 | This can be achieved using the [`Router.GlobalOPTIONS`](https://godoc.org/github.com/julienschmidt/httprouter#Router.GlobalOPTIONS) handler: [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: Unicode character '`' (Grave Accent) looks like ''' (Single Quote), but it is not [INFO] [stdout] | [INFO] [stdout] 12 | This can be achieved using the ['Router.GlobalOPTIONS`](https://godoc.org/github.com/julienschmidt/httprouter#Router.GlobalOPTIONS) handler: [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: ` [INFO] [stdout] --> src/lib.rs:170:54 [INFO] [stdout] | [INFO] [stdout] 12 | This can be achieved using the [`Router.GlobalOPTIONS`](https://godoc.org/github.com/julienschmidt/httprouter#Router.GlobalOPTIONS) handler: [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: Unicode character '`' (Grave Accent) looks like ''' (Single Quote), but it is not [INFO] [stdout] | [INFO] [stdout] 12 | This can be achieved using the [`Router.GlobalOPTIONS'](https://godoc.org/github.com/julienschmidt/httprouter#Router.GlobalOPTIONS) handler: [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: ` [INFO] [stdout] --> src/lib.rs:172:1 [INFO] [stdout] | [INFO] [stdout] 14 | ``rust [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: Unicode character '`' (Grave Accent) looks like ''' (Single Quote), but it is not [INFO] [stdout] | [INFO] [stdout] 14 | '`rust [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: unknown start of token: ` [INFO] [stdout] --> src/lib.rs:172:2 [INFO] [stdout] | [INFO] [stdout] 14 | ``rust [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: Unicode character '`' (Grave Accent) looks like ''' (Single Quote), but it is not [INFO] [stdout] | [INFO] [stdout] 14 | `'rust [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `,` [INFO] [stdout] --> src/lib.rs:163:14 [INFO] [stdout] | [INFO] [stdout] 5 | Alternatively, one can also use `params := r.Context().Value(httprouter.ParamsKey)` instead of the helper function. [INFO] [stdout] | ^ expected one of 8 possible tokens [INFO] [stdout] [INFO] [stdout] error: mismatched closing delimiter: `}` [INFO] [stdout] --> src/lib.rs:184:1 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | - closing delimiter possibly meant for this [INFO] [stdout] ... [INFO] [stdout] 12 | This can be achieved using the [`Router.GlobalOPTIONS`](https://godoc.org/github.com/julienschmidt/httprouter#Router.GlobalOPTIONS) handler: [INFO] [stdout] | - unclosed delimiter [INFO] [stdout] ... [INFO] [stdout] 26 | } [INFO] [stdout] | ^ mismatched closing delimiter [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - test_readme (line 159) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `fmt` in this scope [INFO] [stdout] --> src/lib.rs:160:1 [INFO] [stdout] | [INFO] [stdout] 3 | fmt.Fprintf(w, "hello, %s!\n", params.ByName("name")) [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `w` in this scope [INFO] [stdout] --> src/lib.rs:160:13 [INFO] [stdout] | [INFO] [stdout] 3 | fmt.Fprintf(w, "hello, %s!\n", params.ByName("name")) [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `params` in this scope [INFO] [stdout] --> src/lib.rs:160:32 [INFO] [stdout] | [INFO] [stdout] 3 | fmt.Fprintf(w, "hello, %s!\n", params.ByName("name")) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [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/lib.rs - test_readme (line 103) [INFO] [stdout] src/lib.rs - test_readme (line 115) [INFO] [stdout] src/lib.rs - test_readme (line 138) [INFO] [stdout] src/lib.rs - test_readme (line 159) [INFO] [stdout] src/lib.rs - test_readme (line 161) [INFO] [stdout] src/lib.rs - test_readme (line 223) [INFO] [stdout] src/lib.rs - test_readme (line 231) [INFO] [stdout] src/lib.rs - test_readme (line 297) [INFO] [stdout] src/lib.rs - test_readme (line 52) [INFO] [stdout] src/lib.rs - test_readme (line 88) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 10 failed; 1 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "84824e3a867344de7c9cc777ae03cd8c25bbc48c390500433df38165744d78f3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "84824e3a867344de7c9cc777ae03cd8c25bbc48c390500433df38165744d78f3", kill_on_drop: false }` [INFO] [stdout] 84824e3a867344de7c9cc777ae03cd8c25bbc48c390500433df38165744d78f3