[INFO] cloning repository https://github.com/LKBaka/RustAnt [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/LKBaka/RustAnt" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLKBaka%2FRustAnt", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLKBaka%2FRustAnt'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1bf3b4bd3670b36d0a703416f7da56190d3e9d99 [INFO] checking LKBaka/RustAnt against a5689b034ad287112f709693384a37f1377eb9cc for pr-129249-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLKBaka%2FRustAnt" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-4-tc2/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/LKBaka/RustAnt [INFO] finished tweaking git repo https://github.com/LKBaka/RustAnt [INFO] tweaked toml for git repo https://github.com/LKBaka/RustAnt written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/LKBaka/RustAnt on toolchain a5689b034ad287112f709693384a37f1377eb9cc [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a5689b034ad287112f709693384a37f1377eb9cc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/LKBaka/RustAnt 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" "+a5689b034ad287112f709693384a37f1377eb9cc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:77db811e55d90add9212f6832c23229e3de5f1c1f9905e8cb07319ea15df73ac" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] 79b778b4bfa55d665812d151b2710855a33aedd43f539537eb9e44a7b9bb99d9 [INFO] running `Command { std: "docker" "start" "79b778b4bfa55d665812d151b2710855a33aedd43f539537eb9e44a7b9bb99d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "79b778b4bfa55d665812d151b2710855a33aedd43f539537eb9e44a7b9bb99d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "79b778b4bfa55d665812d151b2710855a33aedd43f539537eb9e44a7b9bb99d9" "/opt/rustwide/cargo-home/bin/cargo" "+a5689b034ad287112f709693384a37f1377eb9cc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "79b778b4bfa55d665812d151b2710855a33aedd43f539537eb9e44a7b9bb99d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "79b778b4bfa55d665812d151b2710855a33aedd43f539537eb9e44a7b9bb99d9" "/opt/rustwide/cargo-home/bin/cargo" "+a5689b034ad287112f709693384a37f1377eb9cc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling unicode-ident v1.0.19 [INFO] [stderr] Compiling quote v1.0.41 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.104 [INFO] [stderr] Compiling hashbrown v0.16.0 [INFO] [stderr] Compiling winnow v0.7.13 [INFO] [stderr] Compiling bumpalo v3.19.0 [INFO] [stderr] Compiling log v0.4.28 [INFO] [stderr] Compiling siphasher v1.0.1 [INFO] [stderr] Compiling toml_datetime v0.7.2 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling libm v0.2.15 [INFO] [stderr] Checking anstyle v1.0.13 [INFO] [stderr] Checking anstyle-query v1.1.4 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling wasm-bindgen v0.2.104 [INFO] [stderr] Compiling phf_shared v0.11.3 [INFO] [stderr] Compiling bigdecimal v0.4.7 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Checking cfg-if v1.0.3 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Checking anstream v0.6.20 [INFO] [stderr] Checking libloading v0.8.9 [INFO] [stderr] Checking dyn-clone v1.0.20 [INFO] [stderr] Checking global_env v0.1.0 (https://github.com/LKBaka/global_env.git#8021cd5e) [INFO] [stderr] Checking unicode-properties v0.1.3 [INFO] [stderr] Checking colored v3.0.0 [INFO] [stderr] Checking clap_builder v4.5.48 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Compiling phf_generator v0.11.3 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Checking indexmap v2.11.4 [INFO] [stderr] Compiling toml_parser v1.0.3 [INFO] [stderr] Compiling toml_edit v0.23.6 [INFO] [stderr] Compiling proc-macro-crate v3.4.0 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.104 [INFO] [stderr] Compiling phf_macros v0.11.3 [INFO] [stderr] Compiling num_enum_derive v0.7.4 [INFO] [stderr] Compiling clap_derive v4.5.47 [INFO] [stderr] Compiling enum_dispatch v0.3.13 [INFO] [stderr] Checking num_enum v0.7.4 [INFO] [stderr] Checking phf v0.11.3 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.104 [INFO] [stderr] Checking clap v4.5.48 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.104 [INFO] [stderr] Checking rust_ant v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: constant `TEST_COUNT` is never used [INFO] [stdout] --> src/byte_code_vm/test.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | const TEST_COUNT: u16 = 1000; [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 `test_speed` is never used [INFO] [stdout] --> src/byte_code_vm/test.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | fn test_speed() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: useless conversion to the same type: `std::string::String` [INFO] [stdout] --> src/parser/test.rs:8:45 [INFO] [stdout] | [INFO] [stdout] 8 | let mut lexer = Lexer::new(code.into(), file.into()); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this method call relies on the `impl Into for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors [INFO] [stdout] = note: `#[deny(self_type_conversion)]` on by default [INFO] [stdout] help: consider removing the conversion call [INFO] [stdout] | [INFO] [stdout] 8 - let mut lexer = Lexer::new(code.into(), file.into()); [INFO] [stdout] 8 + let mut lexer = Lexer::new(code.into(), file); [INFO] [stdout] | [INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint [INFO] [stdout] | [INFO] [stdout] 8 - let mut lexer = Lexer::new(code.into(), file.into()); [INFO] [stdout] 8 + let mut lexer = Lexer::new(code.into(), >::into(file)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: useless conversion to the same type: `std::string::String` [INFO] [stdout] --> src/parser/test.rs:22:45 [INFO] [stdout] | [INFO] [stdout] 22 | let mut lexer = Lexer::new(code.into(), file.into()); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this method call relies on the `impl Into for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors [INFO] [stdout] help: consider removing the conversion call [INFO] [stdout] | [INFO] [stdout] 22 - let mut lexer = Lexer::new(code.into(), file.into()); [INFO] [stdout] 22 + let mut lexer = Lexer::new(code.into(), file); [INFO] [stdout] | [INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint [INFO] [stdout] | [INFO] [stdout] 22 - let mut lexer = Lexer::new(code.into(), file.into()); [INFO] [stdout] 22 + let mut lexer = Lexer::new(code.into(), >::into(file)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: useless conversion to the same type: `std::string::String` [INFO] [stdout] --> src/parser/test.rs:37:60 [INFO] [stdout] | [INFO] [stdout] 37 | let mut lexer = Lexer::new(code_with_semicolon.into(), file.into()); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this method call relies on the `impl Into for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors [INFO] [stdout] help: consider removing the conversion call [INFO] [stdout] | [INFO] [stdout] 37 - let mut lexer = Lexer::new(code_with_semicolon.into(), file.into()); [INFO] [stdout] 37 + let mut lexer = Lexer::new(code_with_semicolon.into(), file); [INFO] [stdout] | [INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint [INFO] [stdout] | [INFO] [stdout] 37 - let mut lexer = Lexer::new(code_with_semicolon.into(), file.into()); [INFO] [stdout] 37 + let mut lexer = Lexer::new(code_with_semicolon.into(), >::into(file)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: useless conversion to the same type: `std::string::String` [INFO] [stdout] --> src/parser/test.rs:51:59 [INFO] [stdout] | [INFO] [stdout] 51 | let mut lexer2 = Lexer::new(code_with_newline.into(), file2.into()); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this method call relies on the `impl Into for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors [INFO] [stdout] help: consider removing the conversion call [INFO] [stdout] | [INFO] [stdout] 51 - let mut lexer2 = Lexer::new(code_with_newline.into(), file2.into()); [INFO] [stdout] 51 + let mut lexer2 = Lexer::new(code_with_newline.into(), file2); [INFO] [stdout] | [INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint [INFO] [stdout] | [INFO] [stdout] 51 - let mut lexer2 = Lexer::new(code_with_newline.into(), file2.into()); [INFO] [stdout] 51 + let mut lexer2 = Lexer::new(code_with_newline.into(), >::into(file2)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: useless conversion to the same type: `std::string::String` [INFO] [stdout] --> src/parser/test.rs:65:52 [INFO] [stdout] | [INFO] [stdout] 65 | let mut lexer3 = Lexer::new(code_mixed.into(), file3.into()); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this method call relies on the `impl Into for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors [INFO] [stdout] help: consider removing the conversion call [INFO] [stdout] | [INFO] [stdout] 65 - let mut lexer3 = Lexer::new(code_mixed.into(), file3.into()); [INFO] [stdout] 65 + let mut lexer3 = Lexer::new(code_mixed.into(), file3); [INFO] [stdout] | [INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint [INFO] [stdout] | [INFO] [stdout] 65 - let mut lexer3 = Lexer::new(code_mixed.into(), file3.into()); [INFO] [stdout] 65 + let mut lexer3 = Lexer::new(code_mixed.into(), >::into(file3)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_ant` (lib test) due to 5 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: field `return_type` is never read [INFO] [stdout] --> src/ast/expressions/function_expression.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct FunctionExpression { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 14 | pub return_type: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FunctionExpression` has derived impls for the traits `Clone` and `Debug`, 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: field `type_hint` is never read [INFO] [stdout] --> src/ast/statements/let_statement.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct LetStatement { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | pub type_hint: Option>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LetStatement` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `instruction_to_str_with_indent` is never used [INFO] [stdout] --> src/byte_code_vm/code/code.rs:232:8 [INFO] [stdout] | [INFO] [stdout] 232 | pub fn instruction_to_str_with_indent(ins: &Instructions, indent: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/byte_code_vm/compiler/compiler.rs:190:12 [INFO] [stdout] | [INFO] [stdout] 181 | impl Compiler { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 190 | pub fn new(file_name: Rc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compile_it` is never used [INFO] [stdout] --> src/byte_code_vm/compiler/utils.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn compile_it(code: String, file: String) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_pop` is never used [INFO] [stdout] --> src/byte_code_vm/run.rs:123:8 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn run_pop( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fmt_compiled_function` is never used [INFO] [stdout] --> src/byte_code_vm/vm/frame.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn fmt_compiled_function(func: CompiledFunction, indent: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fmt_closure` is never used [INFO] [stdout] --> src/byte_code_vm/vm/frame.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn fmt_closure(closure: Closure, indent: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fmt_frames` is never used [INFO] [stdout] --> src/byte_code_vm/vm/frame.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn fmt_frames(frames: &Vec) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ANY` is never used [INFO] [stdout] --> src/object/object.rs:30:11 [INFO] [stdout] | [INFO] [stdout] 30 | pub const ANY: &str = "Any"; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `OBJECT` is never used [INFO] [stdout] --> src/object/object.rs:31:11 [INFO] [stdout] | [INFO] [stdout] 31 | pub const OBJECT: &str = "Object"; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AntObject` is never constructed [INFO] [stdout] --> src/object/object.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 85 | pub struct AntObject { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_truthy` is never used [INFO] [stdout] --> src/object/utils.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn is_truthy(obj: &Object) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `vm` is never read [INFO] [stdout] --> src/module_importer/ant_module_importer.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct AntModuleImporter<'a, 'b> { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 16 | pub file: String, [INFO] [stdout] 17 | pub vm: &'a mut Vm<'b>, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `return_type` is never read [INFO] [stdout] --> src/ast/expressions/function_expression.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct FunctionExpression { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 14 | pub return_type: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FunctionExpression` has derived impls for the traits `Clone` and `Debug`, 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: field `type_hint` is never read [INFO] [stdout] --> src/ast/statements/let_statement.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct LetStatement { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | pub type_hint: Option>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LetStatement` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `instruction_to_str_with_indent` is never used [INFO] [stdout] --> src/byte_code_vm/code/code.rs:232:8 [INFO] [stdout] | [INFO] [stdout] 232 | pub fn instruction_to_str_with_indent(ins: &Instructions, indent: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_pop` is never used [INFO] [stdout] --> src/byte_code_vm/run.rs:123:8 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn run_pop( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TEST_COUNT` is never used [INFO] [stdout] --> src/byte_code_vm/test.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | const TEST_COUNT: u16 = 1000; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_speed` is never used [INFO] [stdout] --> src/byte_code_vm/test.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | fn test_speed() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fmt_compiled_function` is never used [INFO] [stdout] --> src/byte_code_vm/vm/frame.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn fmt_compiled_function(func: CompiledFunction, indent: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fmt_closure` is never used [INFO] [stdout] --> src/byte_code_vm/vm/frame.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn fmt_closure(closure: Closure, indent: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fmt_frames` is never used [INFO] [stdout] --> src/byte_code_vm/vm/frame.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn fmt_frames(frames: &Vec) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ANY` is never used [INFO] [stdout] --> src/object/object.rs:30:11 [INFO] [stdout] | [INFO] [stdout] 30 | pub const ANY: &str = "Any"; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `OBJECT` is never used [INFO] [stdout] --> src/object/object.rs:31:11 [INFO] [stdout] | [INFO] [stdout] 31 | pub const OBJECT: &str = "Object"; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AntObject` is never constructed [INFO] [stdout] --> src/object/object.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 85 | pub struct AntObject { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_truthy` is never used [INFO] [stdout] --> src/object/utils.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn is_truthy(obj: &Object) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `vm` is never read [INFO] [stdout] --> src/module_importer/ant_module_importer.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct AntModuleImporter<'a, 'b> { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 16 | pub file: String, [INFO] [stdout] 17 | pub vm: &'a mut Vm<'b>, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: useless conversion to the same type: `std::string::String` [INFO] [stdout] --> src/parser/test.rs:8:45 [INFO] [stdout] | [INFO] [stdout] 8 | let mut lexer = Lexer::new(code.into(), file.into()); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this method call relies on the `impl Into for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors [INFO] [stdout] = note: `#[deny(self_type_conversion)]` on by default [INFO] [stdout] help: consider removing the conversion call [INFO] [stdout] | [INFO] [stdout] 8 - let mut lexer = Lexer::new(code.into(), file.into()); [INFO] [stdout] 8 + let mut lexer = Lexer::new(code.into(), file); [INFO] [stdout] | [INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint [INFO] [stdout] | [INFO] [stdout] 8 - let mut lexer = Lexer::new(code.into(), file.into()); [INFO] [stdout] 8 + let mut lexer = Lexer::new(code.into(), >::into(file)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: useless conversion to the same type: `std::string::String` [INFO] [stdout] --> src/parser/test.rs:22:45 [INFO] [stdout] | [INFO] [stdout] 22 | let mut lexer = Lexer::new(code.into(), file.into()); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this method call relies on the `impl Into for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors [INFO] [stdout] help: consider removing the conversion call [INFO] [stdout] | [INFO] [stdout] 22 - let mut lexer = Lexer::new(code.into(), file.into()); [INFO] [stdout] 22 + let mut lexer = Lexer::new(code.into(), file); [INFO] [stdout] | [INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint [INFO] [stdout] | [INFO] [stdout] 22 - let mut lexer = Lexer::new(code.into(), file.into()); [INFO] [stdout] 22 + let mut lexer = Lexer::new(code.into(), >::into(file)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: useless conversion to the same type: `std::string::String` [INFO] [stdout] --> src/parser/test.rs:37:60 [INFO] [stdout] | [INFO] [stdout] 37 | let mut lexer = Lexer::new(code_with_semicolon.into(), file.into()); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this method call relies on the `impl Into for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors [INFO] [stdout] help: consider removing the conversion call [INFO] [stdout] | [INFO] [stdout] 37 - let mut lexer = Lexer::new(code_with_semicolon.into(), file.into()); [INFO] [stdout] 37 + let mut lexer = Lexer::new(code_with_semicolon.into(), file); [INFO] [stdout] | [INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint [INFO] [stdout] | [INFO] [stdout] 37 - let mut lexer = Lexer::new(code_with_semicolon.into(), file.into()); [INFO] [stdout] 37 + let mut lexer = Lexer::new(code_with_semicolon.into(), >::into(file)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: useless conversion to the same type: `std::string::String` [INFO] [stdout] --> src/parser/test.rs:51:59 [INFO] [stdout] | [INFO] [stdout] 51 | let mut lexer2 = Lexer::new(code_with_newline.into(), file2.into()); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this method call relies on the `impl Into for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors [INFO] [stdout] help: consider removing the conversion call [INFO] [stdout] | [INFO] [stdout] 51 - let mut lexer2 = Lexer::new(code_with_newline.into(), file2.into()); [INFO] [stdout] 51 + let mut lexer2 = Lexer::new(code_with_newline.into(), file2); [INFO] [stdout] | [INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint [INFO] [stdout] | [INFO] [stdout] 51 - let mut lexer2 = Lexer::new(code_with_newline.into(), file2.into()); [INFO] [stdout] 51 + let mut lexer2 = Lexer::new(code_with_newline.into(), >::into(file2)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: useless conversion to the same type: `std::string::String` [INFO] [stdout] --> src/parser/test.rs:65:52 [INFO] [stdout] | [INFO] [stdout] 65 | let mut lexer3 = Lexer::new(code_mixed.into(), file3.into()); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this method call relies on the `impl Into for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors [INFO] [stdout] help: consider removing the conversion call [INFO] [stdout] | [INFO] [stdout] 65 - let mut lexer3 = Lexer::new(code_mixed.into(), file3.into()); [INFO] [stdout] 65 + let mut lexer3 = Lexer::new(code_mixed.into(), file3); [INFO] [stdout] | [INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint [INFO] [stdout] | [INFO] [stdout] 65 - let mut lexer3 = Lexer::new(code_mixed.into(), file3.into()); [INFO] [stdout] 65 + let mut lexer3 = Lexer::new(code_mixed.into(), >::into(file3)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_ant` (bin "rust_ant" test) due to 5 previous errors; 14 warnings emitted [INFO] running `Command { std: "docker" "inspect" "79b778b4bfa55d665812d151b2710855a33aedd43f539537eb9e44a7b9bb99d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "79b778b4bfa55d665812d151b2710855a33aedd43f539537eb9e44a7b9bb99d9", kill_on_drop: false }` [INFO] [stdout] 79b778b4bfa55d665812d151b2710855a33aedd43f539537eb9e44a7b9bb99d9