[INFO] cloning repository https://github.com/ivafer00/PWSAST
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ivafer00/PWSAST" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fivafer00%2FPWSAST", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fivafer00%2FPWSAST'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 9a9854d66483e89f12265edf201d90987cc45f62
[INFO] testing ivafer00/PWSAST/9a9854d66483e89f12265edf201d90987cc45f62 against master#cced03bfd61a304243a34504618ecec86c17063f for pr-154065-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fivafer00%2FPWSAST" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/ivafer00/PWSAST
[INFO] finished tweaking git repo https://github.com/ivafer00/PWSAST
[INFO] tweaked toml for git repo https://github.com/ivafer00/PWSAST written to /workspace/builds/worker-0-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/ivafer00/PWSAST on toolchain cced03bfd61a304243a34504618ecec86c17063f
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cced03bfd61a304243a34504618ecec86c17063f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/ivafer00/PWSAST already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cced03bfd61a304243a34504618ecec86c17063f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded clap v4.5.7
[INFO] [stderr]   Downloaded envy v0.4.2
[INFO] [stderr]   Downloaded config-derive v0.13.0
[INFO] [stderr]   Downloaded shellexpand v3.1.0
[INFO] [stderr]   Downloaded prelude v0.2.1
[INFO] [stderr]   Downloaded typemap-ors v1.0.0
[INFO] [stderr]   Downloaded unsafe-any-ors v1.0.0
[INFO] [stderr]   Downloaded twelf v0.13.0
[INFO] [stderr]   Downloaded destructure_traitobject v0.2.0
[INFO] [stderr]   Downloaded thread-id v4.2.1
[INFO] [stderr]   Downloaded log-mdc v0.1.0
[INFO] [stderr]   Downloaded env_filter v0.1.0
[INFO] [stderr]   Downloaded rustls-pemfile v2.1.2
[INFO] [stderr]   Downloaded env_logger v0.11.3
[INFO] [stderr]   Downloaded rustls-pki-types v1.7.0
[INFO] [stderr]   Downloaded log4rs v1.3.0
[INFO] [stderr]   Downloaded httparse v1.9.2
[INFO] [stderr]   Downloaded axum-server v0.6.0
[INFO] [stderr]   Downloaded askama_escape v0.10.3
[INFO] [stderr]   Downloaded axum-macros v0.4.1
[INFO] [stderr]   Downloaded askama v0.12.1
[INFO] [stderr]   Downloaded askama_derive v0.12.5
[INFO] [stderr]   Downloaded askama_parser v0.2.1
[INFO] [stderr]   Downloaded clap_builder v4.5.7
[INFO] [stderr]   Downloaded basic-toml v0.1.9
[INFO] [stderr]   Downloaded h2 v0.4.5
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+cced03bfd61a304243a34504618ecec86c17063f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 4ea13995d7c607c10e6170380e8549dcdbba4c4cbe147434f8d210577a62c601
[INFO] running `Command { std: "docker" "start" "-a" "4ea13995d7c607c10e6170380e8549dcdbba4c4cbe147434f8d210577a62c601", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "4ea13995d7c607c10e6170380e8549dcdbba4c4cbe147434f8d210577a62c601", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "4ea13995d7c607c10e6170380e8549dcdbba4c4cbe147434f8d210577a62c601", kill_on_drop: false }`
[INFO] [stdout] 4ea13995d7c607c10e6170380e8549dcdbba4c4cbe147434f8d210577a62c601
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+cced03bfd61a304243a34504618ecec86c17063f" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] e859a3dcc4bac57910e42e764e333f6d3bbc5302fc99138efdae878b07d5e58e
[INFO] running `Command { std: "docker" "start" "-a" "e859a3dcc4bac57910e42e764e333f6d3bbc5302fc99138efdae878b07d5e58e", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.85
[INFO] [stderr]    Compiling serde v1.0.203
[INFO] [stderr]    Compiling bytes v1.6.0
[INFO] [stderr]    Compiling smallvec v1.13.2
[INFO] [stderr]    Compiling cc v1.0.99
[INFO] [stderr]    Compiling futures-core v0.3.30
[INFO] [stderr]    Compiling getrandom v0.2.15
[INFO] [stderr]    Compiling tracing-core v0.1.32
[INFO] [stderr]    Compiling unicase v2.7.0
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling socket2 v0.5.7
[INFO] [stderr]    Compiling num_cpus v1.16.0
[INFO] [stderr]    Compiling parking_lot_core v0.9.10
[INFO] [stderr]    Compiling mio v0.8.11
[INFO] [stderr]    Compiling parking_lot v0.12.3
[INFO] [stderr]    Compiling http v1.1.0
[INFO] [stderr]    Compiling quote v1.0.36
[INFO] [stderr]    Compiling signal-hook-registry v1.4.2
[INFO] [stderr]    Compiling futures-task v0.3.30
[INFO] [stderr]    Compiling syn v2.0.66
[INFO] [stderr]    Compiling futures-util v0.3.30
[INFO] [stderr]    Compiling futures-sink v0.3.30
[INFO] [stderr]    Compiling spin v0.9.8
[INFO] [stderr]    Compiling rustversion v1.0.17
[INFO] [stderr]    Compiling memchr v2.7.2
[INFO] [stderr]    Compiling indexmap v1.9.3
[INFO] [stderr]    Compiling ring v0.17.8
[INFO] [stderr]    Compiling httparse v1.9.2
[INFO] [stderr]    Compiling http-body v1.0.0
[INFO] [stderr]    Compiling rand_core v0.6.4
[INFO] [stderr]    Compiling serde_json v1.0.117
[INFO] [stderr]    Compiling aho-corasick v1.1.3
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling regex-syntax v0.8.4
[INFO] [stderr]    Compiling tower-service v0.3.2
[INFO] [stderr]    Compiling tower-layer v0.3.2
[INFO] [stderr]    Compiling openssl-sys v0.9.102
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling mime_guess v2.0.4
[INFO] [stderr]    Compiling http-body-util v0.1.2
[INFO] [stderr]    Compiling futures-channel v0.3.30
[INFO] [stderr]    Compiling rustls v0.21.12
[INFO] [stderr]    Compiling minimal-lexical v0.2.1
[INFO] [stderr]    Compiling dirs-sys v0.4.1
[INFO] [stderr]    Compiling hdrhistogram v7.5.4
[INFO] [stderr]    Compiling nom v7.1.3
[INFO] [stderr]    Compiling axum-core v0.4.3
[INFO] [stderr]    Compiling regex-automata v0.4.7
[INFO] [stderr]    Compiling multer v3.1.0
[INFO] [stderr]    Compiling regex-syntax v0.6.29
[INFO] [stderr]    Compiling clap_lex v0.7.1
[INFO] [stderr]    Compiling linked-hash-map v0.5.6
[INFO] [stderr]    Compiling destructure_traitobject v0.2.0
[INFO] [stderr]    Compiling anyhow v1.0.86
[INFO] [stderr]    Compiling clap_builder v4.5.7
[INFO] [stderr]    Compiling sct v0.7.1
[INFO] [stderr]    Compiling rustls-webpki v0.101.7
[INFO] [stderr]    Compiling askama_parser v0.2.1
[INFO] [stderr]    Compiling regex-automata v0.1.10
[INFO] [stderr]    Compiling serde_derive v1.0.203
[INFO] [stderr]    Compiling tokio-macros v2.3.0
[INFO] [stderr]    Compiling tracing-attributes v0.1.27
[INFO] [stderr]    Compiling tokio v1.38.0
[INFO] [stderr]    Compiling pin-project-internal v1.1.5
[INFO] [stderr]    Compiling regex v1.10.5
[INFO] [stderr]    Compiling thiserror-impl v1.0.61
[INFO] [stderr]    Compiling clap_derive v4.5.5
[INFO] [stderr]    Compiling async-trait v0.1.80
[INFO] [stderr]    Compiling unsafe-any-ors v1.0.0
[INFO] [stderr]    Compiling pin-project v1.1.5
[INFO] [stderr]    Compiling yaml-rust v0.4.5
[INFO] [stderr]    Compiling thiserror v1.0.61
[INFO] [stderr]    Compiling dirs v5.0.1
[INFO] [stderr]    Compiling axum v0.7.5
[INFO] [stderr]    Compiling ordered-float v2.10.1
[INFO] [stderr]    Compiling encoding_rs v0.8.34
[INFO] [stderr]    Compiling unsafe-libyaml v0.2.11
[INFO] [stderr]    Compiling sync_wrapper v0.1.2
[INFO] [stderr]    Compiling rustls-pki-types v1.7.0
[INFO] [stderr]    Compiling base64 v0.22.1
[INFO] [stderr]    Compiling arc-swap v1.7.1
[INFO] [stderr]    Compiling overload v0.1.1
[INFO] [stderr]    Compiling openssl v0.10.64
[INFO] [stderr]    Compiling nu-ansi-term v0.46.0
[INFO] [stderr]    Compiling rustls-pemfile v2.1.2
[INFO] [stderr]    Compiling sharded-slab v0.1.7
[INFO] [stderr]    Compiling chrono v0.4.38
[INFO] [stderr]    Compiling clap v4.5.7
[INFO] [stderr]    Compiling humansize v2.1.3
[INFO] [stderr]    Compiling shellexpand v3.1.0
[INFO] [stderr]    Compiling typemap-ors v1.0.0
[INFO] [stderr]    Compiling config-derive v0.13.0
[INFO] [stderr]    Compiling derivative v2.2.0
[INFO] [stderr]    Compiling matchers v0.1.0
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling axum-macros v0.4.1
[INFO] [stderr]    Compiling thread-id v4.2.1
[INFO] [stderr]    Compiling thread_local v1.1.8
[INFO] [stderr]    Compiling askama_escape v0.10.3
[INFO] [stderr]    Compiling log-mdc v0.1.0
[INFO] [stderr]    Compiling matchit v0.7.3
[INFO] [stderr]    Compiling http-range-header v0.4.1
[INFO] [stderr]    Compiling sync_wrapper v1.0.1
[INFO] [stderr]    Compiling dotenv v0.15.0
[INFO] [stderr]    Compiling prelude v0.2.1
[INFO] [stderr]    Compiling tokio-util v0.7.11
[INFO] [stderr]    Compiling log v0.4.21
[INFO] [stderr]    Compiling basic-toml v0.1.9
[INFO] [stderr]    Compiling tracing v0.1.40
[INFO] [stderr]    Compiling env_filter v0.1.0
[INFO] [stderr]    Compiling h2 v0.4.5
[INFO] [stderr]    Compiling tower v0.4.13
[INFO] [stderr]    Compiling askama_derive v0.12.5
[INFO] [stderr]    Compiling tracing-log v0.2.0
[INFO] [stderr]    Compiling serde-value v0.7.0
[INFO] [stderr]    Compiling serde_urlencoded v0.7.1
[INFO] [stderr]    Compiling tracing-serde v0.1.3
[INFO] [stderr]    Compiling tokio-rustls v0.24.1
[INFO] [stderr]    Compiling serde_path_to_error v0.1.16
[INFO] [stderr]    Compiling envy v0.4.2
[INFO] [stderr]    Compiling serde_yaml v0.8.26
[INFO] [stderr]    Compiling serde_yaml v0.9.34+deprecated
[INFO] [stderr]    Compiling askama v0.12.1
[INFO] [stderr]    Compiling tracing-subscriber v0.3.18
[INFO] [stderr]    Compiling tower-http v0.5.2
[INFO] [stderr]    Compiling env_logger v0.11.3
[INFO] [stderr]    Compiling twelf v0.13.0
[INFO] [stderr]    Compiling log4rs v1.3.0
[INFO] [stderr]    Compiling hyper v1.3.1
[INFO] [stderr]    Compiling hyper-util v0.1.5
[INFO] [stderr]    Compiling axum-server v0.6.0
[INFO] [stderr]    Compiling PowershellSAST v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `axum::routing::get`
[INFO] [stdout]  --> src/controllers/html/html.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use axum::routing::get;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::ptr::null`
[INFO] [stdout]  --> src/controllers/html/scripts/scripts_controller.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::ptr::null;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Json`
[INFO] [stdout]  --> src/controllers/html/scripts/scripts_controller.rs:8:12
[INFO] [stdout]   |
[INFO] [stdout] 8 | use axum::{Json, Router};
[INFO] [stdout]   |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `clap::builder::Str`
[INFO] [stdout]   --> src/controllers/html/scripts/scripts_controller.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use clap::builder::Str;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `error404`
[INFO] [stdout]   --> src/controllers/html/scripts/scripts_controller.rs:16:38
[INFO] [stdout]    |
[INFO] [stdout] 16 | use crate::controllers::html::html::{error404, Error404Template, HtmlTemplate, HTTPResponse};
[INFO] [stdout]    |                                      ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/controllers/html/scripts/scripts_controller.rs:102:11
[INFO] [stdout]     |
[INFO] [stdout] 102 |         if(is_valid_extension(file_name.as_str())){
[INFO] [stdout]     |           ^                                      ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 102 -         if(is_valid_extension(file_name.as_str())){
[INFO] [stdout] 102 +         if is_valid_extension(file_name.as_str()) {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `FORBIDDEN403` is never constructed
[INFO] [stdout]   --> src/controllers/html/html.rs:59:5
[INFO] [stdout]    |
[INFO] [stdout] 56 | pub enum HTTPResponse<T> where
[INFO] [stdout]    |          ------------ variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 59 |     FORBIDDEN403(Error403Template),
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `ApiError` is never used
[INFO] [stdout]   --> src/prelude.rs:10:10
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub enum ApiError {
[INFO] [stdout]    |          ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 55s
[INFO] running `Command { std: "docker" "inspect" "e859a3dcc4bac57910e42e764e333f6d3bbc5302fc99138efdae878b07d5e58e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "e859a3dcc4bac57910e42e764e333f6d3bbc5302fc99138efdae878b07d5e58e", kill_on_drop: false }`
[INFO] [stdout] e859a3dcc4bac57910e42e764e333f6d3bbc5302fc99138efdae878b07d5e58e
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+cced03bfd61a304243a34504618ecec86c17063f" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] d2b8a88c147018a6b718673d62786830d842f9b53e689b8fd996a0cc070f2848
[INFO] running `Command { std: "docker" "start" "-a" "d2b8a88c147018a6b718673d62786830d842f9b53e689b8fd996a0cc070f2848", kill_on_drop: false }`
[INFO] [stderr]    Compiling PowershellSAST v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `axum::routing::get`
[INFO] [stdout]  --> src/controllers/html/html.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use axum::routing::get;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::ptr::null`
[INFO] [stdout]  --> src/controllers/html/scripts/scripts_controller.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::ptr::null;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Json`
[INFO] [stdout]  --> src/controllers/html/scripts/scripts_controller.rs:8:12
[INFO] [stdout]   |
[INFO] [stdout] 8 | use axum::{Json, Router};
[INFO] [stdout]   |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `clap::builder::Str`
[INFO] [stdout]   --> src/controllers/html/scripts/scripts_controller.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use clap::builder::Str;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `error404`
[INFO] [stdout]   --> src/controllers/html/scripts/scripts_controller.rs:16:38
[INFO] [stdout]    |
[INFO] [stdout] 16 | use crate::controllers::html::html::{error404, Error404Template, HtmlTemplate, HTTPResponse};
[INFO] [stdout]    |                                      ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/controllers/html/scripts/scripts_controller.rs:102:11
[INFO] [stdout]     |
[INFO] [stdout] 102 |         if(is_valid_extension(file_name.as_str())){
[INFO] [stdout]     |           ^                                      ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 102 -         if(is_valid_extension(file_name.as_str())){
[INFO] [stdout] 102 +         if is_valid_extension(file_name.as_str()) {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `FORBIDDEN403` is never constructed
[INFO] [stdout]   --> src/controllers/html/html.rs:59:5
[INFO] [stdout]    |
[INFO] [stdout] 56 | pub enum HTTPResponse<T> where
[INFO] [stdout]    |          ------------ variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 59 |     FORBIDDEN403(Error403Template),
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `ApiError` is never used
[INFO] [stdout]   --> src/prelude.rs:10:10
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub enum ApiError {
[INFO] [stdout]    |          ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 1.67s
[INFO] running `Command { std: "docker" "inspect" "d2b8a88c147018a6b718673d62786830d842f9b53e689b8fd996a0cc070f2848", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d2b8a88c147018a6b718673d62786830d842f9b53e689b8fd996a0cc070f2848", kill_on_drop: false }`
[INFO] [stdout] d2b8a88c147018a6b718673d62786830d842f9b53e689b8fd996a0cc070f2848
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+cced03bfd61a304243a34504618ecec86c17063f" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] b40ecd680f6662d5d24bdc8e6efe200c6264c37474e582b5d94ce8421731196e
[INFO] running `Command { std: "docker" "start" "-a" "b40ecd680f6662d5d24bdc8e6efe200c6264c37474e582b5d94ce8421731196e", kill_on_drop: false }`
[INFO] [stderr] warning: unused import: `axum::routing::get`
[INFO] [stderr]  --> src/controllers/html/html.rs:6:5
[INFO] [stderr]   |
[INFO] [stderr] 6 | use axum::routing::get;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `std::ptr::null`
[INFO] [stderr]  --> src/controllers/html/scripts/scripts_controller.rs:4:5
[INFO] [stderr]   |
[INFO] [stderr] 4 | use std::ptr::null;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `Json`
[INFO] [stderr]  --> src/controllers/html/scripts/scripts_controller.rs:8:12
[INFO] [stderr]   |
[INFO] [stderr] 8 | use axum::{Json, Router};
[INFO] [stderr]   |            ^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `clap::builder::Str`
[INFO] [stderr]   --> src/controllers/html/scripts/scripts_controller.rs:10:5
[INFO] [stderr]    |
[INFO] [stderr] 10 | use clap::builder::Str;
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `error404`
[INFO] [stderr]   --> src/controllers/html/scripts/scripts_controller.rs:16:38
[INFO] [stderr]    |
[INFO] [stderr] 16 | use crate::controllers::html::html::{error404, Error404Template, HtmlTemplate, HTTPResponse};
[INFO] [stderr]    |                                      ^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unnecessary parentheses around `if` condition
[INFO] [stderr]    --> src/controllers/html/scripts/scripts_controller.rs:102:11
[INFO] [stderr]     |
[INFO] [stderr] 102 |         if(is_valid_extension(file_name.as_str())){
[INFO] [stderr]     |           ^                                      ^
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] help: remove these parentheses
[INFO] [stderr]     |
[INFO] [stderr] 102 -         if(is_valid_extension(file_name.as_str())){
[INFO] [stderr] 102 +         if is_valid_extension(file_name.as_str()) {
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: variant `FORBIDDEN403` is never constructed
[INFO] [stderr]   --> src/controllers/html/html.rs:59:5
[INFO] [stderr]    |
[INFO] [stderr] 56 | pub enum HTTPResponse<T> where
[INFO] [stderr]    |          ------------ variant in this enum
[INFO] [stderr] ...
[INFO] [stderr] 59 |     FORBIDDEN403(Error403Template),
[INFO] [stderr]    |     ^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: enum `ApiError` is never used
[INFO] [stderr]   --> src/prelude.rs:10:10
[INFO] [stderr]    |
[INFO] [stderr] 10 | pub enum ApiError {
[INFO] [stderr]    |          ^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: `PowershellSAST` (bin "PowershellSAST" test) generated 8 warnings (run `cargo fix --bin "PowershellSAST" -p PowershellSAST --tests` to apply 6 suggestions)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.29s
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/PowershellSAST-22f921c61181f13c)
[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" "b40ecd680f6662d5d24bdc8e6efe200c6264c37474e582b5d94ce8421731196e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "b40ecd680f6662d5d24bdc8e6efe200c6264c37474e582b5d94ce8421731196e", kill_on_drop: false }`
[INFO] [stdout] b40ecd680f6662d5d24bdc8e6efe200c6264c37474e582b5d94ce8421731196e
