[INFO] fetching crate requiem-router 0.2.4... [INFO] testing requiem-router-0.2.4 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate requiem-router 0.2.4 into /workspace/builds/worker-4-tc2/source [INFO] started tweaking crates.io crate requiem-router 0.2.4 [INFO] finished tweaking crates.io crate requiem-router 0.2.4 [INFO] tweaked toml for crates.io crate requiem-router 0.2.4 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate requiem-router 0.2.4 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 18 packages to latest compatible versions [INFO] [stderr] Adding bytestring v0.1.5 (available: v1.4.0) [INFO] [stderr] Adding http v0.2.12 (available: v1.3.1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b76399ffd508a86a6a18ccadfc178901889008676cf9959f20102366f0046ea3 [INFO] running `Command { std: "docker" "start" "-a" "b76399ffd508a86a6a18ccadfc178901889008676cf9959f20102366f0046ea3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b76399ffd508a86a6a18ccadfc178901889008676cf9959f20102366f0046ea3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b76399ffd508a86a6a18ccadfc178901889008676cf9959f20102366f0046ea3", kill_on_drop: false }` [INFO] [stdout] b76399ffd508a86a6a18ccadfc178901889008676cf9959f20102366f0046ea3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 22404dd21dc89b2200206538ffe1f801de7273ecd5a58d61f73b4d457cc3a7f1 [INFO] running `Command { std: "docker" "start" "-a" "22404dd21dc89b2200206538ffe1f801de7273ecd5a58d61f73b4d457cc3a7f1", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling regex-syntax v0.8.6 [INFO] [stderr] Compiling bytes v0.5.6 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling bytestring v0.1.5 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling regex-automata v0.4.10 [INFO] [stderr] Compiling regex v1.11.2 [INFO] [stderr] Compiling requiem-router v0.2.4 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary braces around block return value [INFO] [stdout] --> src/url.rs:34:37 [INFO] [stdout] | [INFO] [stdout] 34 | static DEFAULT_QUOTER: Quoter = { Quoter::new(b"@:", b"/+") }; [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_braces)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 34 - static DEFAULT_QUOTER: Quoter = { Quoter::new(b"@:", b"/+") }; [INFO] [stdout] 34 + static DEFAULT_QUOTER: Quoter = Quoter::new(b"@:", b"/+"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `resource` is never read [INFO] [stdout] --> src/router.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct ResourceInfo { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 9 | resource: ResourceId, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ResourceInfo` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/path.rs:161:17 [INFO] [stdout] | [INFO] [stdout] 161 | pub fn iter(&self) -> PathIter { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 161 | pub fn iter(&self) -> PathIter<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/resource.rs:297:40 [INFO] [stdout] | [INFO] [stdout] 297 | path.add(names[idx].clone(), segments[idx]); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/resource.rs:329:44 [INFO] [stdout] | [INFO] [stdout] 329 | path.add(names[idx].clone(), segments[idx]); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/resource.rs:416:40 [INFO] [stdout] | [INFO] [stdout] 416 | path.add(names[idx].clone(), segments[idx]); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/resource.rs:455:44 [INFO] [stdout] | [INFO] [stdout] 455 | path.add(names[idx].clone(), segments[idx]); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 9.02s [INFO] running `Command { std: "docker" "inspect" "22404dd21dc89b2200206538ffe1f801de7273ecd5a58d61f73b4d457cc3a7f1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "22404dd21dc89b2200206538ffe1f801de7273ecd5a58d61f73b4d457cc3a7f1", kill_on_drop: false }` [INFO] [stdout] 22404dd21dc89b2200206538ffe1f801de7273ecd5a58d61f73b4d457cc3a7f1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ac7ab8293bd82183327de52899ebc6535b255dcdeb7775fac6d4c976ac83e668 [INFO] running `Command { std: "docker" "start" "-a" "ac7ab8293bd82183327de52899ebc6535b255dcdeb7775fac6d4c976ac83e668", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stdout] warning: unnecessary braces around block return value [INFO] [stdout] --> src/url.rs:34:37 [INFO] [stdout] | [INFO] [stdout] 34 | static DEFAULT_QUOTER: Quoter = { Quoter::new(b"@:", b"/+") }; [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_braces)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 34 - static DEFAULT_QUOTER: Quoter = { Quoter::new(b"@:", b"/+") }; [INFO] [stdout] 34 + static DEFAULT_QUOTER: Quoter = Quoter::new(b"@:", b"/+"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `resource` is never read [INFO] [stdout] --> src/router.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct ResourceInfo { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 9 | resource: ResourceId, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ResourceInfo` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/path.rs:161:17 [INFO] [stdout] | [INFO] [stdout] 161 | pub fn iter(&self) -> PathIter { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 161 | pub fn iter(&self) -> PathIter<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/resource.rs:297:40 [INFO] [stdout] | [INFO] [stdout] 297 | path.add(names[idx].clone(), segments[idx]); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/resource.rs:329:44 [INFO] [stdout] | [INFO] [stdout] 329 | path.add(names[idx].clone(), segments[idx]); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/resource.rs:416:40 [INFO] [stdout] | [INFO] [stdout] 416 | path.add(names[idx].clone(), segments[idx]); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/resource.rs:455:44 [INFO] [stdout] | [INFO] [stdout] 455 | path.add(names[idx].clone(), segments[idx]); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling requiem-router v0.2.4 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary braces around block return value [INFO] [stdout] --> src/url.rs:34:37 [INFO] [stdout] | [INFO] [stdout] 34 | static DEFAULT_QUOTER: Quoter = { Quoter::new(b"@:", b"/+") }; [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_braces)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 34 - static DEFAULT_QUOTER: Quoter = { Quoter::new(b"@:", b"/+") }; [INFO] [stdout] 34 + static DEFAULT_QUOTER: Quoter = Quoter::new(b"@:", b"/+"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Id` is never constructed [INFO] [stdout] --> src/de.rs:494:12 [INFO] [stdout] | [INFO] [stdout] 494 | struct Id { [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `resource` is never read [INFO] [stdout] --> src/router.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct ResourceInfo { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 9 | resource: ResourceId, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ResourceInfo` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/path.rs:161:17 [INFO] [stdout] | [INFO] [stdout] 161 | pub fn iter(&self) -> PathIter { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 161 | pub fn iter(&self) -> PathIter<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/resource.rs:297:40 [INFO] [stdout] | [INFO] [stdout] 297 | path.add(names[idx].clone(), segments[idx]); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/resource.rs:329:44 [INFO] [stdout] | [INFO] [stdout] 329 | path.add(names[idx].clone(), segments[idx]); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/resource.rs:416:40 [INFO] [stdout] | [INFO] [stdout] 416 | path.add(names[idx].clone(), segments[idx]); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/resource.rs:455:44 [INFO] [stdout] | [INFO] [stdout] 455 | path.add(names[idx].clone(), segments[idx]); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 8.55s [INFO] running `Command { std: "docker" "inspect" "ac7ab8293bd82183327de52899ebc6535b255dcdeb7775fac6d4c976ac83e668", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ac7ab8293bd82183327de52899ebc6535b255dcdeb7775fac6d4c976ac83e668", kill_on_drop: false }` [INFO] [stdout] ac7ab8293bd82183327de52899ebc6535b255dcdeb7775fac6d4c976ac83e668 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] e9f7aa64384130facb858af98e45aba2dcbce4e798a8da9065785222109d0c7c [INFO] running `Command { std: "docker" "start" "-a" "e9f7aa64384130facb858af98e45aba2dcbce4e798a8da9065785222109d0c7c", kill_on_drop: false }` [INFO] [stderr] warning: unnecessary braces around block return value [INFO] [stderr] --> src/url.rs:34:37 [INFO] [stderr] | [INFO] [stderr] 34 | static DEFAULT_QUOTER: Quoter = { Quoter::new(b"@:", b"/+") }; [INFO] [stderr] | ^^ ^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_braces)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: remove these braces [INFO] [stderr] | [INFO] [stderr] 34 - static DEFAULT_QUOTER: Quoter = { Quoter::new(b"@:", b"/+") }; [INFO] [stderr] 34 + static DEFAULT_QUOTER: Quoter = Quoter::new(b"@:", b"/+"); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: field `resource` is never read [INFO] [stderr] --> src/router.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 8 | pub struct ResourceInfo { [INFO] [stderr] | ------------ field in this struct [INFO] [stderr] 9 | resource: ResourceId, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `ResourceInfo` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/path.rs:161:17 [INFO] [stderr] | [INFO] [stderr] 161 | pub fn iter(&self) -> PathIter { [INFO] [stderr] | ^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 161 | pub fn iter(&self) -> PathIter<'_, T> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/resource.rs:297:40 [INFO] [stderr] | [INFO] [stderr] 297 | path.add(names[idx].clone(), segments[idx]); [INFO] [stderr] | ^^^^^^^^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stderr] = note: `#[warn(noop_method_call)]` on by default [INFO] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/resource.rs:329:44 [INFO] [stderr] | [INFO] [stderr] 329 | path.add(names[idx].clone(), segments[idx]); [INFO] [stderr] | ^^^^^^^^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/resource.rs:416:40 [INFO] [stderr] | [INFO] [stderr] 416 | path.add(names[idx].clone(), segments[idx]); [INFO] [stderr] | ^^^^^^^^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/resource.rs:455:44 [INFO] [stderr] | [INFO] [stderr] 455 | path.add(names[idx].clone(), segments[idx]); [INFO] [stderr] | ^^^^^^^^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stderr] [INFO] [stderr] warning: struct `Id` is never constructed [INFO] [stderr] --> src/de.rs:494:12 [INFO] [stderr] | [INFO] [stderr] 494 | struct Id { [INFO] [stderr] | ^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: field `resource` is never read [INFO] [stderr] --> src/router.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 8 | pub struct ResourceInfo { [INFO] [stderr] | ------------ field in this struct [INFO] [stderr] 9 | resource: ResourceId, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `ResourceInfo` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: `requiem-router` (lib) generated 7 warnings (run `cargo fix --lib -p requiem-router` to apply 6 suggestions) [INFO] [stderr] warning: `requiem-router` (lib test) generated 8 warnings (6 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.06s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/requiem_router-7323176e0cf3e31f) [INFO] [stdout] [INFO] [stdout] running 18 tests [INFO] [stdout] test resource::tests::test_parse_static ... ok [INFO] [stdout] test resource::tests::test_parse_urlencoded_param ... ok [INFO] [stdout] test de::tests::test_extract_enum_value ... ok [INFO] [stdout] test resource::tests::test_parse_param ... ok [INFO] [stdout] test url::tests::test_parse_url ... ok [INFO] [stdout] test resource::tests::test_reousrce_prefix_dynamic ... ok [INFO] [stdout] test de::tests::test_request_extract ... ok [INFO] [stdout] test resource::tests::test_parse_tail ... ok [INFO] [stdout] test resource::tests::test_resource_path ... ok [INFO] [stdout] test resource::tests::test_static_tail ... ok [INFO] [stdout] test router::tests::test_recognizer_2 ... ok [INFO] [stdout] test resource::tests::test_resource_prefix ... ok [INFO] [stdout] test de::tests::test_extract_errors ... ok [INFO] [stdout] test de::tests::test_extract_enum ... ok [INFO] [stdout] test router::tests::test_recognizer_with_prefix ... ok [INFO] [stdout] test router::tests::test_recognizer_1 ... ok [INFO] [stdout] test resource::tests::test_dynamic_set ... ok [INFO] [stdout] test de::tests::test_extract_path_single ... ok [INFO] [stdout] [INFO] [stderr] Doc-tests requiem_router [INFO] [stdout] test result: ok. 18 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.18s [INFO] [stdout] [INFO] [stderr] warning: unnecessary braces around block return value [INFO] [stderr] --> src/url.rs:34:37 [INFO] [stderr] | [INFO] [stderr] 34 | static DEFAULT_QUOTER: Quoter = { Quoter::new(b"@:", b"/+") }; [INFO] [stderr] | ^^ ^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_braces)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: remove these braces [INFO] [stderr] | [INFO] [stderr] 34 - static DEFAULT_QUOTER: Quoter = { Quoter::new(b"@:", b"/+") }; [INFO] [stderr] 34 + static DEFAULT_QUOTER: Quoter = Quoter::new(b"@:", b"/+"); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: 1 warning emitted [INFO] [stderr] [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] running `Command { std: "docker" "inspect" "e9f7aa64384130facb858af98e45aba2dcbce4e798a8da9065785222109d0c7c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e9f7aa64384130facb858af98e45aba2dcbce4e798a8da9065785222109d0c7c", kill_on_drop: false }` [INFO] [stdout] e9f7aa64384130facb858af98e45aba2dcbce4e798a8da9065785222109d0c7c