[INFO] fetching crate rocket_dyn_templates 0.2.0... [INFO] checking rocket_dyn_templates-0.2.0 against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [INFO] extracting crate rocket_dyn_templates 0.2.0 into /workspace/builds/worker-6-tc2/source [INFO] started tweaking crates.io crate rocket_dyn_templates 0.2.0 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate rocket_dyn_templates 0.2.0 [INFO] tweaked toml for crates.io crate rocket_dyn_templates 0.2.0 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate rocket_dyn_templates 0.2.0 on toolchain 4f260f0f20b3133d20cfb50353c0221943af5796 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 250 packages to latest compatible versions [INFO] [stderr] Adding generic-array v0.14.7 (available: v0.14.9) [INFO] [stderr] Adding handlebars v5.1.2 (available: v6.3.2) [INFO] [stderr] Adding notify v6.1.1 (available: v8.2.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a3911a3fe99647fd03d29277300c77f451c8e366bd61b34e0fd61fe91a1ffac4 [INFO] running `Command { std: "docker" "start" "-a" "a3911a3fe99647fd03d29277300c77f451c8e366bd61b34e0fd61fe91a1ffac4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a3911a3fe99647fd03d29277300c77f451c8e366bd61b34e0fd61fe91a1ffac4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a3911a3fe99647fd03d29277300c77f451c8e366bd61b34e0fd61fe91a1ffac4", kill_on_drop: false }` [INFO] [stdout] a3911a3fe99647fd03d29277300c77f451c8e366bd61b34e0fd61fe91a1ffac4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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 -Dunmustuse_in_always_ok" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 88a0df5c15dd95d41de0541609468c34f161110378fb7b934320b9b7bda51dab [INFO] running `Command { std: "docker" "start" "-a" "88a0df5c15dd95d41de0541609468c34f161110378fb7b934320b9b7bda51dab", kill_on_drop: false }` [INFO] [stderr] Compiling yansi v1.0.1 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.10.1 [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling time-macros v0.2.24 [INFO] [stderr] Compiling ref-cast v1.0.25 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling syn v2.0.110 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Checking indexmap v2.12.0 [INFO] [stderr] Compiling mio v1.1.0 [INFO] [stderr] Compiling socket2 v0.6.1 [INFO] [stderr] Compiling uncased v0.9.10 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling bitflags v2.10.0 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling deranged v0.5.5 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Checking winnow v0.7.13 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling inlinable_string v0.1.15 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Checking toml_write v0.1.2 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling stable-pattern v0.1.0 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Checking time v0.3.44 [INFO] [stderr] Compiling multer v3.1.0 [INFO] [stderr] Compiling tokio v1.48.0 [INFO] [stderr] Compiling figment v0.10.19 [INFO] [stderr] Compiling state v0.6.0 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Checking inotify-sys v0.1.5 [INFO] [stderr] Compiling rocket v0.5.1 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking tempfile v3.23.0 [INFO] [stderr] Checking inotify v0.9.6 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking filetime v0.2.26 [INFO] [stderr] Checking binascii v0.1.4 [INFO] [stderr] Checking atomic v0.5.3 [INFO] [stderr] Checking normpath v1.5.0 [INFO] [stderr] Checking pretty_assertions v1.4.1 [INFO] [stderr] Checking notify v6.1.1 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling devise_core v0.4.2 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling pear_codegen v0.2.9 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling ref-cast-impl v1.0.25 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Checking async-stream v0.3.6 [INFO] [stderr] Compiling pear v0.2.9 [INFO] [stderr] Compiling devise_codegen v0.4.2 [INFO] [stderr] Compiling devise v0.4.2 [INFO] [stderr] Compiling rocket_http v0.5.1 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Checking serde_spanned v0.6.9 [INFO] [stderr] Checking toml_datetime v0.6.11 [INFO] [stderr] Checking ubyte v0.10.4 [INFO] [stderr] Checking toml_edit v0.22.27 [INFO] [stderr] Compiling rocket_codegen v0.5.1 [INFO] [stderr] Checking toml v0.8.23 [INFO] [stderr] Checking tokio-util v0.7.17 [INFO] [stderr] Checking tokio-stream v0.1.17 [INFO] [stderr] Checking rocket_dyn_templates v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `templates` [INFO] [stdout] --> src/engine/mod.rs:101:24 [INFO] [stdout] | [INFO] [stdout] 101 | pub(crate) fn init(templates: &HashMap) -> Option { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_templates` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/engine/mod.rs:132:9 [INFO] [stdout] | [INFO] [stdout] 132 | name: &str, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `info` [INFO] [stdout] --> src/engine/mod.rs:133:9 [INFO] [stdout] | [INFO] [stdout] 133 | info: &TemplateInfo, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> src/engine/mod.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | context: C, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `templates` [INFO] [stdout] --> src/engine/mod.rs:101:24 [INFO] [stdout] | [INFO] [stdout] 101 | pub(crate) fn init(templates: &HashMap) -> Option { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_templates` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/engine/mod.rs:132:9 [INFO] [stdout] | [INFO] [stdout] 132 | name: &str, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `info` [INFO] [stdout] --> src/engine/mod.rs:133:9 [INFO] [stdout] | [INFO] [stdout] 133 | info: &TemplateInfo, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> src/engine/mod.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | context: C, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Engine` is never used [INFO] [stdout] --> src/engine/mod.rs:23:18 [INFO] [stdout] | [INFO] [stdout] 23 | pub(crate) trait Engine: Send + Sync + Sized + 'static { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `inner` is never used [INFO] [stdout] --> src/engine/mod.rs:102:12 [INFO] [stdout] | [INFO] [stdout] 102 | fn inner(templates: &HashMap) -> Option { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `engine_ext` is never read [INFO] [stdout] --> src/template.rs:37:16 [INFO] [stdout] | [INFO] [stdout] 33 | pub(crate) struct TemplateInfo { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 37 | pub(crate) engine_ext: &'static str, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TemplateInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Engine` is never used [INFO] [stdout] --> src/engine/mod.rs:23:18 [INFO] [stdout] | [INFO] [stdout] 23 | pub(crate) trait Engine: Send + Sync + Sized + 'static { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `inner` is never used [INFO] [stdout] --> src/engine/mod.rs:102:12 [INFO] [stdout] | [INFO] [stdout] 102 | fn inner(templates: &HashMap) -> Option { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `engine_ext` is never read [INFO] [stdout] --> src/template.rs:37:16 [INFO] [stdout] | [INFO] [stdout] 33 | pub(crate) struct TemplateInfo { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 37 | pub(crate) engine_ext: &'static str, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TemplateInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `template_root` is never used [INFO] [stdout] --> tests/templates.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn template_root() -> PathBuf { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rocket` is never used [INFO] [stdout] --> tests/templates.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn rocket() -> Rocket { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<&str, Infallible> [INFO] [stdout] --> tests/templates.rs:12:45 [INFO] [stdout] | [INFO] [stdout] 12 | fn template_check(md: Metadata<'_>, engine: &str, name: &str) -> Option<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<&str, Infallible> [INFO] [stdout] --> tests/templates.rs:12:57 [INFO] [stdout] | [INFO] [stdout] 12 | fn template_check(md: Metadata<'_>, engine: &str, name: &str) -> Option<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `macro_rules!` definition, `#[macro_export]` macro should be written at top level module [INFO] [stdout] --> tests/templates.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | #[get("/")] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: remove the `#[macro_export]` or move this `macro_rules!` outside the of the current function `test_sentinel` [INFO] [stdout] = note: a `macro_rules!` definition is non-local if it is nested inside an item and has a `#[macro_export]` attribute [INFO] [stdout] = note: the attribute macro `get` may come from an old version of the `rocket_codegen` crate, try updating your dependency with `cargo update -p rocket_codegen` [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the attribute macro `get` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `macro_rules!` definition, `#[macro_export]` macro should be written at top level module [INFO] [stdout] --> tests/templates.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | #[get("/")] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: remove the `#[macro_export]` or move this `macro_rules!` outside the of the current function `test_sentinel` [INFO] [stdout] = note: a `macro_rules!` definition is non-local if it is nested inside an item and has a `#[macro_export]` attribute [INFO] [stdout] = note: the attribute macro `get` may come from an old version of the `rocket_codegen` crate, try updating your dependency with `cargo update -p rocket_codegen` [INFO] [stdout] = note: this warning originates in the attribute macro `get` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `macro_rules!` definition, `#[macro_export]` macro should be written at top level module [INFO] [stdout] --> tests/templates.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 75 | #[get("/")] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: remove the `#[macro_export]` or move this `macro_rules!` outside the of the current function `test_sentinel` [INFO] [stdout] = note: a `macro_rules!` definition is non-local if it is nested inside an item and has a `#[macro_export]` attribute [INFO] [stdout] = note: the attribute macro `get` may come from an old version of the `rocket_codegen` crate, try updating your dependency with `cargo update -p rocket_codegen` [INFO] [stdout] = note: this warning originates in the attribute macro `get` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `macro_rules!` definition, `#[macro_export]` macro should be written at top level module [INFO] [stdout] --> tests/templates.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | #[get("/")] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: remove the `#[macro_export]` or move this `macro_rules!` outside the of the current function `test_sentinel` [INFO] [stdout] = note: a `macro_rules!` definition is non-local if it is nested inside an item and has a `#[macro_export]` attribute [INFO] [stdout] = note: the attribute macro `get` may come from an old version of the `rocket_codegen` crate, try updating your dependency with `cargo update -p rocket_codegen` [INFO] [stdout] = note: this warning originates in the attribute macro `get` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rocket_dyn_templates` (test "templates") due to 2 previous errors; 6 warnings emitted [INFO] running `Command { std: "docker" "inspect" "88a0df5c15dd95d41de0541609468c34f161110378fb7b934320b9b7bda51dab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "88a0df5c15dd95d41de0541609468c34f161110378fb7b934320b9b7bda51dab", kill_on_drop: false }` [INFO] [stdout] 88a0df5c15dd95d41de0541609468c34f161110378fb7b934320b9b7bda51dab