[INFO] cloning repository https://github.com/KermanX/ecma_analyzer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/KermanX/ecma_analyzer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKermanX%2Fecma_analyzer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKermanX%2Fecma_analyzer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a8a9a4c2af467a2e39b9af43fd74695b1185ba33 [INFO] testing KermanX/ecma_analyzer against try#0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6 for pr-137122-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKermanX%2Fecma_analyzer" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-2-tc2/source/rust-toolchain.toml [INFO] started tweaking git repo https://github.com/KermanX/ecma_analyzer [INFO] finished tweaking git repo https://github.com/KermanX/ecma_analyzer [INFO] tweaked toml for git repo https://github.com/KermanX/ecma_analyzer written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/KermanX/ecma_analyzer on toolchain 0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/KermanX/ecma_analyzer 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" "+0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6" "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-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9e60c99f2047cd174ab238c6cd1437ba0006a3e38d1dc19f49d49f9f4487c285 [INFO] running `Command { std: "docker" "start" "-a" "9e60c99f2047cd174ab238c6cd1437ba0006a3e38d1dc19f49d49f9f4487c285", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9e60c99f2047cd174ab238c6cd1437ba0006a3e38d1dc19f49d49f9f4487c285", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9e60c99f2047cd174ab238c6cd1437ba0006a3e38d1dc19f49d49f9f4487c285", kill_on_drop: false }` [INFO] [stdout] 9e60c99f2047cd174ab238c6cd1437ba0006a3e38d1dc19f49d49f9f4487c285 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 92fc14049c66b71ce29e254a4d94dae9998b1746572f79cce67fa94b396b9b49 [INFO] running `Command { std: "docker" "start" "-a" "92fc14049c66b71ce29e254a4d94dae9998b1746572f79cce67fa94b396b9b49", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling allocator-api2 v0.2.21 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling rustversion v1.0.20 [INFO] [stderr] Compiling foldhash v0.1.5 [INFO] [stderr] Compiling owo-colors v4.2.0 [INFO] [stderr] Compiling siphasher v1.0.1 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling smawk v0.3.2 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling unicode-linebreak v0.1.5 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling unicode-width v0.2.0 [INFO] [stderr] Compiling rustc-hash v2.1.1 [INFO] [stderr] Compiling cow-utils v0.1.3 [INFO] [stderr] Compiling simdutf8 v0.1.5 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling oxc_data_structures v0.64.0 [INFO] [stderr] Compiling oxc_estree v0.64.0 [INFO] [stderr] Compiling unicode-id-start v1.3.1 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling bitflags v2.9.0 [INFO] [stderr] Compiling phf_shared v0.11.3 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling textwrap v0.16.2 [INFO] [stderr] Compiling oxc_index v3.0.0 [INFO] [stderr] Compiling ryu-js v1.0.2 [INFO] [stderr] Compiling nonmax v0.5.5 [INFO] [stderr] Compiling fixedbitset v0.5.7 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling self_cell v1.2.0 [INFO] [stderr] Compiling oxc_sourcemap v3.0.0 [INFO] [stderr] Compiling vsimd v0.8.0 [INFO] [stderr] Compiling outref v0.5.2 [INFO] [stderr] Compiling seq-macro v0.3.6 [INFO] [stderr] Compiling itertools v0.14.0 [INFO] [stderr] Compiling text-size v1.1.1 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling nohash-hasher v0.2.0 [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Compiling bumpalo v3.17.0 [INFO] [stderr] Compiling line-index v0.1.2 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling phf_generator v0.11.3 [INFO] [stderr] Compiling castaway v0.2.3 [INFO] [stderr] Compiling compact_str v0.9.0 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling base64-simd v0.8.0 [INFO] [stderr] Compiling oxc_allocator v0.64.0 [INFO] [stderr] Compiling indexmap v2.9.0 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling petgraph v0.8.1 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling oxc-miette-derive v2.1.2 [INFO] [stderr] Compiling oxc_ast_macros v0.64.0 [INFO] [stderr] Compiling phf_macros v0.11.3 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling phf v0.11.3 [INFO] [stderr] Compiling oxc-miette v2.2.1 [INFO] [stderr] Compiling oxc_span v0.64.0 [INFO] [stderr] Compiling oxc_diagnostics v0.64.0 [INFO] [stderr] Compiling oxc_syntax v0.64.0 [INFO] [stderr] Compiling oxc_regular_expression v0.64.0 [INFO] [stderr] Compiling oxc_cfg v0.64.0 [INFO] [stderr] Compiling oxc_ast v0.64.0 [INFO] [stderr] Compiling oxc_ecmascript v0.64.0 [INFO] [stderr] Compiling oxc_ast_visit v0.64.0 [INFO] [stderr] Compiling oxc_parser v0.64.0 [INFO] [stderr] Compiling oxc_semantic v0.64.0 [INFO] [stderr] Compiling oxc_mangler v0.64.0 [INFO] [stderr] Compiling oxc_traverse v0.64.0 [INFO] [stderr] Compiling oxc_codegen v0.64.0 [INFO] [stderr] Compiling oxc_minifier v0.64.0 [INFO] [stderr] Compiling oxc v0.64.0 [INFO] [stderr] Compiling simple_ts v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `intrinsics::IntrinsicType` [INFO] [stdout] --> src/nodes/ts/mod.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | ty::{Ty, intrinsics::IntrinsicType}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `r#enum::EnumMemberType` [INFO] [stdout] --> src/ty/match.rs:7:31 [INFO] [stdout] | [INFO] [stdout] 7 | Ty, callable::CallableType, r#enum::EnumMemberType, record::KeyedPropertyMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `namespace::Ns` [INFO] [stdout] --> src/ty/mod.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | use namespace::Ns; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/nodes/expr/tagged_template_expression.rs:17:25 [INFO] [stdout] | [INFO] [stdout] 17 | let mut arguments = vec![todo!()]; [INFO] [stdout] | ^^^^^-------^ [INFO] [stdout] | | | [INFO] [stdout] | | any code following this expression is unreachable [INFO] [stdout] | unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable call [INFO] [stdout] --> src/nodes/expr/tagged_template_expression.rs:20:24 [INFO] [stdout] | [INFO] [stdout] 20 | let value = self.exec_expression(expr, todo!()); [INFO] [stdout] | ^^^^^^^^^^^^^^^ ------- any code following this expression is unreachable [INFO] [stdout] | | [INFO] [stdout] | unreachable call [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/ty/operations.rs:81:89 [INFO] [stdout] | [INFO] [stdout] 81 | Ty::Unresolved(_) => self.create_generic_instance(todo!("builtins::NonNullable"), vec![ty]), [INFO] [stdout] | ------------------------------ ^^^^^^^^ unreachable expression [INFO] [stdout] | | [INFO] [stdout] | any code following this expression is unreachable [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/ty/record.rs:251:59 [INFO] [stdout] | [INFO] [stdout] 251 | members.push(self.serialize_keyed_property(todo!(), property)); [INFO] [stdout] | ------- ^^^^^^^^ unreachable expression [INFO] [stdout] | | [INFO] [stdout] | any code following this expression is unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `specifier` [INFO] [stdout] --> src/analyzer.rs:141:36 [INFO] [stdout] | [INFO] [stdout] 141 | pub fn resolve_module(&mut self, specifier: &'a str) -> Option<()> { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_specifier` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/analyzer.rs:145:45 [INFO] [stdout] | [INFO] [stdout] 145 | pub fn resolve_global_variable(&mut self, id: &'a str) -> Ty<'a> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/analyzer.rs:149:41 [INFO] [stdout] | [INFO] [stdout] 149 | pub fn resolve_global_type(&mut self, id: &'a str) -> Ty<'a> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/nodes/expr/arrow_function_expression.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | node: &'a ArrowFunctionExpression<'a>, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sat` [INFO] [stdout] --> src/nodes/expr/assignment_expression.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | sat: Option>, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sat` [INFO] [stdout] --> src/nodes/expr/await_expression.rs:12:53 [INFO] [stdout] | [INFO] [stdout] 12 | self.exec_expression(&node.argument, sat.map(|sat| todo!("sat | PromiseLike"))); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `source` [INFO] [stdout] --> src/nodes/expr/import_expression.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let source = self.exec_expression(&node.source, Some(Ty::String)); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_source` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/nodes/expr/meta_property.rs:6:40 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn exec_meta_property(&mut self, node: &'a MetaProperty<'a>, _sat: Option>) -> Ty<'a> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tag` [INFO] [stdout] --> src/nodes/expr/tagged_template_expression.rs:11:25 [INFO] [stdout] | [INFO] [stdout] 11 | let (indeterminate, tag, this) = self.exec_callee(&node.tag); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_tag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `this` [INFO] [stdout] --> src/nodes/expr/tagged_template_expression.rs:11:30 [INFO] [stdout] | [INFO] [stdout] 11 | let (indeterminate, tag, this) = self.exec_callee(&node.tag); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_this` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arguments` [INFO] [stdout] --> src/nodes/expr/tagged_template_expression.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | let mut arguments = vec![todo!()]; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_arguments` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/nodes/expr/tagged_template_expression.rs:20:11 [INFO] [stdout] | [INFO] [stdout] 20 | let value = self.exec_expression(expr, todo!()); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/nodes/expr/yield_expression.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | node: &'a YieldExpression<'a>, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sat` [INFO] [stdout] --> src/nodes/expr/yield_expression.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | sat: Option>, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `attributes` [INFO] [stdout] --> src/nodes/jsx/jsx_element.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let attributes = self.exec_jsx_attributes(&node.opening_element, attr_sat); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_attributes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `children` [INFO] [stdout] --> src/nodes/jsx/jsx_element.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let children = self.exec_jsx_children(&node.children); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_children` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/nodes/misc/class.rs:6:32 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn exec_class(&mut self, node: &'a Class<'a>, _sat: Option>) -> Ty<'a> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/nodes/misc/class.rs:14:32 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn init_class(&mut self, node: &'a Class<'a>) -> Ty<'a> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_async` [INFO] [stdout] --> src/nodes/misc/function_body.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | is_async: bool, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `known` [INFO] [stdout] --> src/nodes/stmt/module_declaration.rs:14:37 [INFO] [stdout] | [INFO] [stdout] 14 | let value = if let Some(known) = known { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_known` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/nodes/stmt/module_declaration.rs:112:55 [INFO] [stdout] | [INFO] [stdout] 112 | ModuleDeclaration::TSNamespaceExportDeclaration(node) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/nodes/stmt/switch_statement.rs:6:43 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn exec_switch_statement(&mut self, node: &'a SwitchStatement<'a>) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `params` [INFO] [stdout] --> src/nodes/ts/ts_interface_declaration.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let params = [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/nodes/ts/ts_literal.rs:12:34 [INFO] [stdout] | [INFO] [stdout] 12 | TSLiteral::UnaryExpression(node) => todo!(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/nodes/ts/ts_literal.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | TSLiteral::TemplateLiteral(node) => todo!(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rest` [INFO] [stdout] --> src/ty/callable.rs:100:23 [INFO] [stdout] | [INFO] [stdout] 100 | if let Some(rest) = callable.rest_param {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/ty/callable.rs:380:33 [INFO] [stdout] | [INFO] [stdout] 380 | Argument::SpreadElement(node) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `this_arg` [INFO] [stdout] --> src/ty/callable.rs:310:5 [INFO] [stdout] | [INFO] [stdout] 310 | this_arg: Ty<'a>, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_this_arg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `enum_class` [INFO] [stdout] --> src/ty/enum.rs:57:47 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn serialize_enum_class_type(&mut self, enum_class: &'a EnumClassType<'a>) -> TSType<'a> { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_enum_class` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `generic` [INFO] [stdout] --> src/ty/generic.rs:175:44 [INFO] [stdout] | [INFO] [stdout] 175 | pub fn serialize_generic_type(&mut self, generic: &GenericType<'a>) -> TSType<'a> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_generic` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/ty/interface.rs:25:18 [INFO] [stdout] | [INFO] [stdout] 25 | Ty::Record(r) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `interface` [INFO] [stdout] --> src/ty/interface.rs:77:46 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn serialize_interface_type(&mut self, interface: &InterfaceType<'a>) -> TSType<'a> { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_interface` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `intrinsic` [INFO] [stdout] --> src/ty/intrinsics.rs:62:46 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn serialize_intrinsic_type(&mut self, intrinsic: IntrinsicType) -> TSType<'a> { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_intrinsic` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> src/ty/lowest.rs:11:19 [INFO] [stdout] | [INFO] [stdout] 11 | Ty::Generic(g) => todo!(), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/ty/lowest.rs:12:21 [INFO] [stdout] | [INFO] [stdout] 12 | Ty::Intrinsic(i) => todo!(), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `symbol` [INFO] [stdout] --> src/ty/lowest.rs:20:38 [INFO] [stdout] | [INFO] [stdout] 20 | UnresolvedType::GenericParam(symbol) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_symbol` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/ty/match.rs:237:22 [INFO] [stdout] | [INFO] [stdout] 237 | (Ty::Interface(target), Ty::Interface(pattern)) => todo!(), [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pattern` [INFO] [stdout] --> src/ty/match.rs:237:45 [INFO] [stdout] | [INFO] [stdout] 237 | (Ty::Interface(target), Ty::Interface(pattern)) => todo!(), [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pattern` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/ty/match.rs:242:18 [INFO] [stdout] | [INFO] [stdout] 242 | (Ty::Tuple(target), Ty::Tuple(pattern)) => todo!(), [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pattern` [INFO] [stdout] --> src/ty/match.rs:242:37 [INFO] [stdout] | [INFO] [stdout] 242 | (Ty::Tuple(target), Ty::Tuple(pattern)) => todo!(), [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pattern` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `namespace` [INFO] [stdout] --> src/ty/namespace.rs:50:46 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn serialize_namespace_type(&mut self, namespace: &Ns<'a>) -> TSType<'a> { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_namespace` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `analyzer` [INFO] [stdout] --> src/ty/record.rs:125:33 [INFO] [stdout] | [INFO] [stdout] 125 | pub fn init_spread(&mut self, analyzer: &mut Analyzer<'a>, value: Ty<'a>) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_analyzer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/ty/record.rs:125:62 [INFO] [stdout] | [INFO] [stdout] 125 | pub fn init_spread(&mut self, analyzer: &mut Analyzer<'a>, value: Ty<'a>) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `analyzer` [INFO] [stdout] --> src/ty/record.rs:129:37 [INFO] [stdout] | [INFO] [stdout] 129 | pub fn remove_property(&mut self, analyzer: &mut Analyzer<'a>, key: PropertyKeyType<'a>) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_analyzer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/ty/record.rs:129:66 [INFO] [stdout] | [INFO] [stdout] 129 | pub fn remove_property(&mut self, analyzer: &mut Analyzer<'a>, key: PropertyKeyType<'a>) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/ty/record.rs:250:10 [INFO] [stdout] | [INFO] [stdout] 250 | for (key, property) in &record.symbol_keyed.0 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `property` [INFO] [stdout] --> src/ty/record.rs:250:15 [INFO] [stdout] | [INFO] [stdout] 250 | for (key, property) in &record.symbol_keyed.0 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_property` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/ty/tuple.rs:56:37 [INFO] [stdout] | [INFO] [stdout] 56 | PropertyKeyType::UniqueSymbol(s) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/ty/mod.rs:182:42 [INFO] [stdout] | [INFO] [stdout] 182 | pub fn iterate_result_union(&mut self, target: Ty<'a>) -> Ty<'a> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/ty/mod.rs:188:5 [INFO] [stdout] | [INFO] [stdout] 188 | target: Ty<'a>, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `len` [INFO] [stdout] --> src/ty/mod.rs:189:5 [INFO] [stdout] | [INFO] [stdout] 189 | len: usize, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `need_rest` [INFO] [stdout] --> src/ty/mod.rs:190:5 [INFO] [stdout] | [INFO] [stdout] 190 | need_rest: bool, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_need_rest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/ty/mod.rs:195:36 [INFO] [stdout] | [INFO] [stdout] 195 | pub fn get_to_numeric(&mut self, target: Ty<'a>) -> Ty<'a> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/ty/mod.rs:199:35 [INFO] [stdout] | [INFO] [stdout] 199 | pub fn get_to_string(&mut self, target: Ty<'a>) -> Ty<'a> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/ty/mod.rs:207:36 [INFO] [stdout] | [INFO] [stdout] 207 | pub fn get_to_awaited(&mut self, target: Ty<'a>) -> Ty<'a> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `root` is never read [INFO] [stdout] --> src/scope/type.rs:22:3 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct TypeScopeTree<'a> { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 21 | nodes: IndexVec>, [INFO] [stdout] 22 | root: TypeScopeId, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TypeScopeTree` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/scope/type.rs:95:23 [INFO] [stdout] | [INFO] [stdout] 95 | pub fn entry_on_top(&mut self, symbol: SymbolId) -> Entry> { [INFO] [stdout] | ^^^^^^^^^ ----------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 95 | pub fn entry_on_top(&mut self, symbol: SymbolId) -> Entry<'_, SymbolId, Ty<'a>> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 29.20s [INFO] running `Command { std: "docker" "inspect" "92fc14049c66b71ce29e254a4d94dae9998b1746572f79cce67fa94b396b9b49", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "92fc14049c66b71ce29e254a4d94dae9998b1746572f79cce67fa94b396b9b49", kill_on_drop: false }` [INFO] [stdout] 92fc14049c66b71ce29e254a4d94dae9998b1746572f79cce67fa94b396b9b49 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8ba847788dd7a4b81e5ea04556eb2570d4ff5f6727d8c2709175ed439a969557 [INFO] running `Command { std: "docker" "start" "-a" "8ba847788dd7a4b81e5ea04556eb2570d4ff5f6727d8c2709175ed439a969557", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling bstr v1.12.0 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling linked-hash-map v0.5.6 [INFO] [stderr] Compiling similar v2.7.0 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling console v0.15.11 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling oxc-miette-derive v2.1.2 [INFO] [stderr] Compiling phf_macros v0.11.3 [INFO] [stderr] Compiling oxc_ast_macros v0.64.0 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling phf v0.11.3 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling oxc-miette v2.2.1 [INFO] [stderr] Compiling globset v0.4.16 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling insta v1.42.2 [INFO] [stderr] Compiling oxc_span v0.64.0 [INFO] [stderr] Compiling oxc_diagnostics v0.64.0 [INFO] [stderr] Compiling oxc_syntax v0.64.0 [INFO] [stderr] Compiling oxc_regular_expression v0.64.0 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling oxc_ast v0.64.0 [INFO] [stderr] Compiling oxc_cfg v0.64.0 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling oxc_sourcemap v3.0.0 [INFO] [stderr] Compiling oxc_ecmascript v0.64.0 [INFO] [stderr] Compiling oxc_ast_visit v0.64.0 [INFO] [stderr] Compiling oxc_parser v0.64.0 [INFO] [stderr] Compiling oxc_semantic v0.64.0 [INFO] [stderr] Compiling oxc_traverse v0.64.0 [INFO] [stderr] Compiling oxc_mangler v0.64.0 [INFO] [stderr] Compiling oxc_codegen v0.64.0 [INFO] [stderr] Compiling oxc_minifier v0.64.0 [INFO] [stderr] Compiling oxc v0.64.0 [INFO] [stderr] Compiling simple_ts v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `intrinsics::IntrinsicType` [INFO] [stdout] --> src/nodes/ts/mod.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | ty::{Ty, intrinsics::IntrinsicType}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `r#enum::EnumMemberType` [INFO] [stdout] --> src/ty/match.rs:7:31 [INFO] [stdout] | [INFO] [stdout] 7 | Ty, callable::CallableType, r#enum::EnumMemberType, record::KeyedPropertyMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `namespace::Ns` [INFO] [stdout] --> src/ty/mod.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | use namespace::Ns; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/nodes/expr/tagged_template_expression.rs:17:25 [INFO] [stdout] | [INFO] [stdout] 17 | let mut arguments = vec![todo!()]; [INFO] [stdout] | ^^^^^-------^ [INFO] [stdout] | | | [INFO] [stdout] | | any code following this expression is unreachable [INFO] [stdout] | unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable call [INFO] [stdout] --> src/nodes/expr/tagged_template_expression.rs:20:24 [INFO] [stdout] | [INFO] [stdout] 20 | let value = self.exec_expression(expr, todo!()); [INFO] [stdout] | ^^^^^^^^^^^^^^^ ------- any code following this expression is unreachable [INFO] [stdout] | | [INFO] [stdout] | unreachable call [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/ty/operations.rs:81:89 [INFO] [stdout] | [INFO] [stdout] 81 | Ty::Unresolved(_) => self.create_generic_instance(todo!("builtins::NonNullable"), vec![ty]), [INFO] [stdout] | ------------------------------ ^^^^^^^^ unreachable expression [INFO] [stdout] | | [INFO] [stdout] | any code following this expression is unreachable [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/ty/record.rs:251:59 [INFO] [stdout] | [INFO] [stdout] 251 | members.push(self.serialize_keyed_property(todo!(), property)); [INFO] [stdout] | ------- ^^^^^^^^ unreachable expression [INFO] [stdout] | | [INFO] [stdout] | any code following this expression is unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `specifier` [INFO] [stdout] --> src/analyzer.rs:141:36 [INFO] [stdout] | [INFO] [stdout] 141 | pub fn resolve_module(&mut self, specifier: &'a str) -> Option<()> { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_specifier` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/analyzer.rs:145:45 [INFO] [stdout] | [INFO] [stdout] 145 | pub fn resolve_global_variable(&mut self, id: &'a str) -> Ty<'a> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/analyzer.rs:149:41 [INFO] [stdout] | [INFO] [stdout] 149 | pub fn resolve_global_type(&mut self, id: &'a str) -> Ty<'a> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/nodes/expr/arrow_function_expression.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | node: &'a ArrowFunctionExpression<'a>, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sat` [INFO] [stdout] --> src/nodes/expr/assignment_expression.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | sat: Option>, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sat` [INFO] [stdout] --> src/nodes/expr/await_expression.rs:12:53 [INFO] [stdout] | [INFO] [stdout] 12 | self.exec_expression(&node.argument, sat.map(|sat| todo!("sat | PromiseLike"))); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `source` [INFO] [stdout] --> src/nodes/expr/import_expression.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let source = self.exec_expression(&node.source, Some(Ty::String)); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_source` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/nodes/expr/meta_property.rs:6:40 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn exec_meta_property(&mut self, node: &'a MetaProperty<'a>, _sat: Option>) -> Ty<'a> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tag` [INFO] [stdout] --> src/nodes/expr/tagged_template_expression.rs:11:25 [INFO] [stdout] | [INFO] [stdout] 11 | let (indeterminate, tag, this) = self.exec_callee(&node.tag); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_tag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `this` [INFO] [stdout] --> src/nodes/expr/tagged_template_expression.rs:11:30 [INFO] [stdout] | [INFO] [stdout] 11 | let (indeterminate, tag, this) = self.exec_callee(&node.tag); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_this` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arguments` [INFO] [stdout] --> src/nodes/expr/tagged_template_expression.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | let mut arguments = vec![todo!()]; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_arguments` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/nodes/expr/tagged_template_expression.rs:20:11 [INFO] [stdout] | [INFO] [stdout] 20 | let value = self.exec_expression(expr, todo!()); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/nodes/expr/yield_expression.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | node: &'a YieldExpression<'a>, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sat` [INFO] [stdout] --> src/nodes/expr/yield_expression.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | sat: Option>, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `attributes` [INFO] [stdout] --> src/nodes/jsx/jsx_element.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let attributes = self.exec_jsx_attributes(&node.opening_element, attr_sat); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_attributes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `children` [INFO] [stdout] --> src/nodes/jsx/jsx_element.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let children = self.exec_jsx_children(&node.children); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_children` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/nodes/misc/class.rs:6:32 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn exec_class(&mut self, node: &'a Class<'a>, _sat: Option>) -> Ty<'a> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/nodes/misc/class.rs:14:32 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn init_class(&mut self, node: &'a Class<'a>) -> Ty<'a> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_async` [INFO] [stdout] --> src/nodes/misc/function_body.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | is_async: bool, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `known` [INFO] [stdout] --> src/nodes/stmt/module_declaration.rs:14:37 [INFO] [stdout] | [INFO] [stdout] 14 | let value = if let Some(known) = known { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_known` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/nodes/stmt/module_declaration.rs:112:55 [INFO] [stdout] | [INFO] [stdout] 112 | ModuleDeclaration::TSNamespaceExportDeclaration(node) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/nodes/stmt/switch_statement.rs:6:43 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn exec_switch_statement(&mut self, node: &'a SwitchStatement<'a>) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `params` [INFO] [stdout] --> src/nodes/ts/ts_interface_declaration.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let params = [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/nodes/ts/ts_literal.rs:12:34 [INFO] [stdout] | [INFO] [stdout] 12 | TSLiteral::UnaryExpression(node) => todo!(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/nodes/ts/ts_literal.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | TSLiteral::TemplateLiteral(node) => todo!(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rest` [INFO] [stdout] --> src/ty/callable.rs:100:23 [INFO] [stdout] | [INFO] [stdout] 100 | if let Some(rest) = callable.rest_param {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/ty/callable.rs:380:33 [INFO] [stdout] | [INFO] [stdout] 380 | Argument::SpreadElement(node) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `this_arg` [INFO] [stdout] --> src/ty/callable.rs:310:5 [INFO] [stdout] | [INFO] [stdout] 310 | this_arg: Ty<'a>, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_this_arg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `enum_class` [INFO] [stdout] --> src/ty/enum.rs:57:47 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn serialize_enum_class_type(&mut self, enum_class: &'a EnumClassType<'a>) -> TSType<'a> { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_enum_class` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `generic` [INFO] [stdout] --> src/ty/generic.rs:175:44 [INFO] [stdout] | [INFO] [stdout] 175 | pub fn serialize_generic_type(&mut self, generic: &GenericType<'a>) -> TSType<'a> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_generic` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/ty/interface.rs:25:18 [INFO] [stdout] | [INFO] [stdout] 25 | Ty::Record(r) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `interface` [INFO] [stdout] --> src/ty/interface.rs:77:46 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn serialize_interface_type(&mut self, interface: &InterfaceType<'a>) -> TSType<'a> { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_interface` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `intrinsic` [INFO] [stdout] --> src/ty/intrinsics.rs:62:46 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn serialize_intrinsic_type(&mut self, intrinsic: IntrinsicType) -> TSType<'a> { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_intrinsic` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> src/ty/lowest.rs:11:19 [INFO] [stdout] | [INFO] [stdout] 11 | Ty::Generic(g) => todo!(), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/ty/lowest.rs:12:21 [INFO] [stdout] | [INFO] [stdout] 12 | Ty::Intrinsic(i) => todo!(), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `symbol` [INFO] [stdout] --> src/ty/lowest.rs:20:38 [INFO] [stdout] | [INFO] [stdout] 20 | UnresolvedType::GenericParam(symbol) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_symbol` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/ty/match.rs:237:22 [INFO] [stdout] | [INFO] [stdout] 237 | (Ty::Interface(target), Ty::Interface(pattern)) => todo!(), [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pattern` [INFO] [stdout] --> src/ty/match.rs:237:45 [INFO] [stdout] | [INFO] [stdout] 237 | (Ty::Interface(target), Ty::Interface(pattern)) => todo!(), [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pattern` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/ty/match.rs:242:18 [INFO] [stdout] | [INFO] [stdout] 242 | (Ty::Tuple(target), Ty::Tuple(pattern)) => todo!(), [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pattern` [INFO] [stdout] --> src/ty/match.rs:242:37 [INFO] [stdout] | [INFO] [stdout] 242 | (Ty::Tuple(target), Ty::Tuple(pattern)) => todo!(), [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pattern` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `namespace` [INFO] [stdout] --> src/ty/namespace.rs:50:46 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn serialize_namespace_type(&mut self, namespace: &Ns<'a>) -> TSType<'a> { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_namespace` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `analyzer` [INFO] [stdout] --> src/ty/record.rs:125:33 [INFO] [stdout] | [INFO] [stdout] 125 | pub fn init_spread(&mut self, analyzer: &mut Analyzer<'a>, value: Ty<'a>) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_analyzer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/ty/record.rs:125:62 [INFO] [stdout] | [INFO] [stdout] 125 | pub fn init_spread(&mut self, analyzer: &mut Analyzer<'a>, value: Ty<'a>) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `analyzer` [INFO] [stdout] --> src/ty/record.rs:129:37 [INFO] [stdout] | [INFO] [stdout] 129 | pub fn remove_property(&mut self, analyzer: &mut Analyzer<'a>, key: PropertyKeyType<'a>) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_analyzer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/ty/record.rs:129:66 [INFO] [stdout] | [INFO] [stdout] 129 | pub fn remove_property(&mut self, analyzer: &mut Analyzer<'a>, key: PropertyKeyType<'a>) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/ty/record.rs:250:10 [INFO] [stdout] | [INFO] [stdout] 250 | for (key, property) in &record.symbol_keyed.0 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `property` [INFO] [stdout] --> src/ty/record.rs:250:15 [INFO] [stdout] | [INFO] [stdout] 250 | for (key, property) in &record.symbol_keyed.0 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_property` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/ty/tuple.rs:56:37 [INFO] [stdout] | [INFO] [stdout] 56 | PropertyKeyType::UniqueSymbol(s) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/ty/mod.rs:182:42 [INFO] [stdout] | [INFO] [stdout] 182 | pub fn iterate_result_union(&mut self, target: Ty<'a>) -> Ty<'a> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/ty/mod.rs:188:5 [INFO] [stdout] | [INFO] [stdout] 188 | target: Ty<'a>, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `len` [INFO] [stdout] --> src/ty/mod.rs:189:5 [INFO] [stdout] | [INFO] [stdout] 189 | len: usize, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `need_rest` [INFO] [stdout] --> src/ty/mod.rs:190:5 [INFO] [stdout] | [INFO] [stdout] 190 | need_rest: bool, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_need_rest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/ty/mod.rs:195:36 [INFO] [stdout] | [INFO] [stdout] 195 | pub fn get_to_numeric(&mut self, target: Ty<'a>) -> Ty<'a> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/ty/mod.rs:199:35 [INFO] [stdout] | [INFO] [stdout] 199 | pub fn get_to_string(&mut self, target: Ty<'a>) -> Ty<'a> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/ty/mod.rs:207:36 [INFO] [stdout] | [INFO] [stdout] 207 | pub fn get_to_awaited(&mut self, target: Ty<'a>) -> Ty<'a> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `root` is never read [INFO] [stdout] --> src/scope/type.rs:22:3 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct TypeScopeTree<'a> { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 21 | nodes: IndexVec>, [INFO] [stdout] 22 | root: TypeScopeId, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TypeScopeTree` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/scope/type.rs:95:23 [INFO] [stdout] | [INFO] [stdout] 95 | pub fn entry_on_top(&mut self, symbol: SymbolId) -> Entry> { [INFO] [stdout] | ^^^^^^^^^ ----------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 95 | pub fn entry_on_top(&mut self, symbol: SymbolId) -> Entry<'_, SymbolId, Ty<'a>> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `intrinsics::IntrinsicType` [INFO] [stdout] --> src/nodes/ts/mod.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | ty::{Ty, intrinsics::IntrinsicType}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `r#enum::EnumMemberType` [INFO] [stdout] --> src/ty/match.rs:7:31 [INFO] [stdout] | [INFO] [stdout] 7 | Ty, callable::CallableType, r#enum::EnumMemberType, record::KeyedPropertyMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `namespace::Ns` [INFO] [stdout] --> src/ty/mod.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | use namespace::Ns; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/nodes/expr/tagged_template_expression.rs:17:25 [INFO] [stdout] | [INFO] [stdout] 17 | let mut arguments = vec![todo!()]; [INFO] [stdout] | ^^^^^-------^ [INFO] [stdout] | | | [INFO] [stdout] | | any code following this expression is unreachable [INFO] [stdout] | unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable call [INFO] [stdout] --> src/nodes/expr/tagged_template_expression.rs:20:24 [INFO] [stdout] | [INFO] [stdout] 20 | let value = self.exec_expression(expr, todo!()); [INFO] [stdout] | ^^^^^^^^^^^^^^^ ------- any code following this expression is unreachable [INFO] [stdout] | | [INFO] [stdout] | unreachable call [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/ty/operations.rs:81:89 [INFO] [stdout] | [INFO] [stdout] 81 | Ty::Unresolved(_) => self.create_generic_instance(todo!("builtins::NonNullable"), vec![ty]), [INFO] [stdout] | ------------------------------ ^^^^^^^^ unreachable expression [INFO] [stdout] | | [INFO] [stdout] | any code following this expression is unreachable [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/ty/record.rs:251:59 [INFO] [stdout] | [INFO] [stdout] 251 | members.push(self.serialize_keyed_property(todo!(), property)); [INFO] [stdout] | ------- ^^^^^^^^ unreachable expression [INFO] [stdout] | | [INFO] [stdout] | any code following this expression is unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `specifier` [INFO] [stdout] --> src/analyzer.rs:141:36 [INFO] [stdout] | [INFO] [stdout] 141 | pub fn resolve_module(&mut self, specifier: &'a str) -> Option<()> { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_specifier` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/analyzer.rs:145:45 [INFO] [stdout] | [INFO] [stdout] 145 | pub fn resolve_global_variable(&mut self, id: &'a str) -> Ty<'a> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/analyzer.rs:149:41 [INFO] [stdout] | [INFO] [stdout] 149 | pub fn resolve_global_type(&mut self, id: &'a str) -> Ty<'a> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/nodes/expr/arrow_function_expression.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | node: &'a ArrowFunctionExpression<'a>, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sat` [INFO] [stdout] --> src/nodes/expr/assignment_expression.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | sat: Option>, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sat` [INFO] [stdout] --> src/nodes/expr/await_expression.rs:12:53 [INFO] [stdout] | [INFO] [stdout] 12 | self.exec_expression(&node.argument, sat.map(|sat| todo!("sat | PromiseLike"))); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `source` [INFO] [stdout] --> src/nodes/expr/import_expression.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let source = self.exec_expression(&node.source, Some(Ty::String)); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_source` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/nodes/expr/meta_property.rs:6:40 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn exec_meta_property(&mut self, node: &'a MetaProperty<'a>, _sat: Option>) -> Ty<'a> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tag` [INFO] [stdout] --> src/nodes/expr/tagged_template_expression.rs:11:25 [INFO] [stdout] | [INFO] [stdout] 11 | let (indeterminate, tag, this) = self.exec_callee(&node.tag); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_tag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `this` [INFO] [stdout] --> src/nodes/expr/tagged_template_expression.rs:11:30 [INFO] [stdout] | [INFO] [stdout] 11 | let (indeterminate, tag, this) = self.exec_callee(&node.tag); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_this` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arguments` [INFO] [stdout] --> src/nodes/expr/tagged_template_expression.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | let mut arguments = vec![todo!()]; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_arguments` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/nodes/expr/tagged_template_expression.rs:20:11 [INFO] [stdout] | [INFO] [stdout] 20 | let value = self.exec_expression(expr, todo!()); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/nodes/expr/yield_expression.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | node: &'a YieldExpression<'a>, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sat` [INFO] [stdout] --> src/nodes/expr/yield_expression.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | sat: Option>, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `attributes` [INFO] [stdout] --> src/nodes/jsx/jsx_element.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let attributes = self.exec_jsx_attributes(&node.opening_element, attr_sat); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_attributes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `children` [INFO] [stdout] --> src/nodes/jsx/jsx_element.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let children = self.exec_jsx_children(&node.children); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_children` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/nodes/misc/class.rs:6:32 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn exec_class(&mut self, node: &'a Class<'a>, _sat: Option>) -> Ty<'a> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/nodes/misc/class.rs:14:32 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn init_class(&mut self, node: &'a Class<'a>) -> Ty<'a> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_async` [INFO] [stdout] --> src/nodes/misc/function_body.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | is_async: bool, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `known` [INFO] [stdout] --> src/nodes/stmt/module_declaration.rs:14:37 [INFO] [stdout] | [INFO] [stdout] 14 | let value = if let Some(known) = known { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_known` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/nodes/stmt/module_declaration.rs:112:55 [INFO] [stdout] | [INFO] [stdout] 112 | ModuleDeclaration::TSNamespaceExportDeclaration(node) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/nodes/stmt/switch_statement.rs:6:43 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn exec_switch_statement(&mut self, node: &'a SwitchStatement<'a>) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `params` [INFO] [stdout] --> src/nodes/ts/ts_interface_declaration.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let params = [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/nodes/ts/ts_literal.rs:12:34 [INFO] [stdout] | [INFO] [stdout] 12 | TSLiteral::UnaryExpression(node) => todo!(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/nodes/ts/ts_literal.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | TSLiteral::TemplateLiteral(node) => todo!(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rest` [INFO] [stdout] --> src/ty/callable.rs:100:23 [INFO] [stdout] | [INFO] [stdout] 100 | if let Some(rest) = callable.rest_param {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/ty/callable.rs:380:33 [INFO] [stdout] | [INFO] [stdout] 380 | Argument::SpreadElement(node) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `this_arg` [INFO] [stdout] --> src/ty/callable.rs:310:5 [INFO] [stdout] | [INFO] [stdout] 310 | this_arg: Ty<'a>, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_this_arg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `enum_class` [INFO] [stdout] --> src/ty/enum.rs:57:47 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn serialize_enum_class_type(&mut self, enum_class: &'a EnumClassType<'a>) -> TSType<'a> { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_enum_class` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `generic` [INFO] [stdout] --> src/ty/generic.rs:175:44 [INFO] [stdout] | [INFO] [stdout] 175 | pub fn serialize_generic_type(&mut self, generic: &GenericType<'a>) -> TSType<'a> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_generic` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/ty/interface.rs:25:18 [INFO] [stdout] | [INFO] [stdout] 25 | Ty::Record(r) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `interface` [INFO] [stdout] --> src/ty/interface.rs:77:46 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn serialize_interface_type(&mut self, interface: &InterfaceType<'a>) -> TSType<'a> { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_interface` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `intrinsic` [INFO] [stdout] --> src/ty/intrinsics.rs:62:46 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn serialize_intrinsic_type(&mut self, intrinsic: IntrinsicType) -> TSType<'a> { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_intrinsic` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> src/ty/lowest.rs:11:19 [INFO] [stdout] | [INFO] [stdout] 11 | Ty::Generic(g) => todo!(), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/ty/lowest.rs:12:21 [INFO] [stdout] | [INFO] [stdout] 12 | Ty::Intrinsic(i) => todo!(), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `symbol` [INFO] [stdout] --> src/ty/lowest.rs:20:38 [INFO] [stdout] | [INFO] [stdout] 20 | UnresolvedType::GenericParam(symbol) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_symbol` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/ty/match.rs:237:22 [INFO] [stdout] | [INFO] [stdout] 237 | (Ty::Interface(target), Ty::Interface(pattern)) => todo!(), [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pattern` [INFO] [stdout] --> src/ty/match.rs:237:45 [INFO] [stdout] | [INFO] [stdout] 237 | (Ty::Interface(target), Ty::Interface(pattern)) => todo!(), [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pattern` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/ty/match.rs:242:18 [INFO] [stdout] | [INFO] [stdout] 242 | (Ty::Tuple(target), Ty::Tuple(pattern)) => todo!(), [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pattern` [INFO] [stdout] --> src/ty/match.rs:242:37 [INFO] [stdout] | [INFO] [stdout] 242 | (Ty::Tuple(target), Ty::Tuple(pattern)) => todo!(), [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pattern` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `namespace` [INFO] [stdout] --> src/ty/namespace.rs:50:46 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn serialize_namespace_type(&mut self, namespace: &Ns<'a>) -> TSType<'a> { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_namespace` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `analyzer` [INFO] [stdout] --> src/ty/record.rs:125:33 [INFO] [stdout] | [INFO] [stdout] 125 | pub fn init_spread(&mut self, analyzer: &mut Analyzer<'a>, value: Ty<'a>) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_analyzer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/ty/record.rs:125:62 [INFO] [stdout] | [INFO] [stdout] 125 | pub fn init_spread(&mut self, analyzer: &mut Analyzer<'a>, value: Ty<'a>) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `analyzer` [INFO] [stdout] --> src/ty/record.rs:129:37 [INFO] [stdout] | [INFO] [stdout] 129 | pub fn remove_property(&mut self, analyzer: &mut Analyzer<'a>, key: PropertyKeyType<'a>) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_analyzer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/ty/record.rs:129:66 [INFO] [stdout] | [INFO] [stdout] 129 | pub fn remove_property(&mut self, analyzer: &mut Analyzer<'a>, key: PropertyKeyType<'a>) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/ty/record.rs:250:10 [INFO] [stdout] | [INFO] [stdout] 250 | for (key, property) in &record.symbol_keyed.0 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `property` [INFO] [stdout] --> src/ty/record.rs:250:15 [INFO] [stdout] | [INFO] [stdout] 250 | for (key, property) in &record.symbol_keyed.0 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_property` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/ty/tuple.rs:56:37 [INFO] [stdout] | [INFO] [stdout] 56 | PropertyKeyType::UniqueSymbol(s) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/ty/mod.rs:182:42 [INFO] [stdout] | [INFO] [stdout] 182 | pub fn iterate_result_union(&mut self, target: Ty<'a>) -> Ty<'a> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/ty/mod.rs:188:5 [INFO] [stdout] | [INFO] [stdout] 188 | target: Ty<'a>, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `len` [INFO] [stdout] --> src/ty/mod.rs:189:5 [INFO] [stdout] | [INFO] [stdout] 189 | len: usize, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `need_rest` [INFO] [stdout] --> src/ty/mod.rs:190:5 [INFO] [stdout] | [INFO] [stdout] 190 | need_rest: bool, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_need_rest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/ty/mod.rs:195:36 [INFO] [stdout] | [INFO] [stdout] 195 | pub fn get_to_numeric(&mut self, target: Ty<'a>) -> Ty<'a> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/ty/mod.rs:199:35 [INFO] [stdout] | [INFO] [stdout] 199 | pub fn get_to_string(&mut self, target: Ty<'a>) -> Ty<'a> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/ty/mod.rs:207:36 [INFO] [stdout] | [INFO] [stdout] 207 | pub fn get_to_awaited(&mut self, target: Ty<'a>) -> Ty<'a> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `root` is never read [INFO] [stdout] --> src/scope/type.rs:22:3 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct TypeScopeTree<'a> { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 21 | nodes: IndexVec>, [INFO] [stdout] 22 | root: TypeScopeId, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TypeScopeTree` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/scope/type.rs:95:23 [INFO] [stdout] | [INFO] [stdout] 95 | pub fn entry_on_top(&mut self, symbol: SymbolId) -> Entry> { [INFO] [stdout] | ^^^^^^^^^ ----------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 95 | pub fn entry_on_top(&mut self, symbol: SymbolId) -> Entry<'_, SymbolId, Ty<'a>> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 30.78s [INFO] running `Command { std: "docker" "inspect" "8ba847788dd7a4b81e5ea04556eb2570d4ff5f6727d8c2709175ed439a969557", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8ba847788dd7a4b81e5ea04556eb2570d4ff5f6727d8c2709175ed439a969557", kill_on_drop: false }` [INFO] [stdout] 8ba847788dd7a4b81e5ea04556eb2570d4ff5f6727d8c2709175ed439a969557 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] cdcac9ca065cbd5c231802f42fe3305bf5ec28aceb3291da2cb9a715a3ca6276 [INFO] running `Command { std: "docker" "start" "-a" "cdcac9ca065cbd5c231802f42fe3305bf5ec28aceb3291da2cb9a715a3ca6276", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `intrinsics::IntrinsicType` [INFO] [stderr] --> src/nodes/ts/mod.rs:36:12 [INFO] [stderr] | [INFO] [stderr] 36 | ty::{Ty, intrinsics::IntrinsicType}, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `r#enum::EnumMemberType` [INFO] [stderr] --> src/ty/match.rs:7:31 [INFO] [stderr] | [INFO] [stderr] 7 | Ty, callable::CallableType, r#enum::EnumMemberType, record::KeyedPropertyMap, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `namespace::Ns` [INFO] [stderr] --> src/ty/mod.rs:31:5 [INFO] [stderr] | [INFO] [stderr] 31 | use namespace::Ns; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unreachable expression [INFO] [stderr] --> src/nodes/expr/tagged_template_expression.rs:17:25 [INFO] [stderr] | [INFO] [stderr] 17 | let mut arguments = vec![todo!()]; [INFO] [stderr] | ^^^^^-------^ [INFO] [stderr] | | | [INFO] [stderr] | | any code following this expression is unreachable [INFO] [stderr] | unreachable expression [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_code)]` on by default [INFO] [stderr] = note: this warning originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unreachable call [INFO] [stderr] --> src/nodes/expr/tagged_template_expression.rs:20:24 [INFO] [stderr] | [INFO] [stderr] 20 | let value = self.exec_expression(expr, todo!()); [INFO] [stderr] | ^^^^^^^^^^^^^^^ ------- any code following this expression is unreachable [INFO] [stderr] | | [INFO] [stderr] | unreachable call [INFO] [stderr] [INFO] [stderr] warning: unreachable expression [INFO] [stderr] --> src/ty/operations.rs:81:89 [INFO] [stderr] | [INFO] [stderr] 81 | Ty::Unresolved(_) => self.create_generic_instance(todo!("builtins::NonNullable"), vec![ty]), [INFO] [stderr] | ------------------------------ ^^^^^^^^ unreachable expression [INFO] [stderr] | | [INFO] [stderr] | any code following this expression is unreachable [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unreachable expression [INFO] [stderr] --> src/ty/record.rs:251:59 [INFO] [stderr] | [INFO] [stderr] 251 | members.push(self.serialize_keyed_property(todo!(), property)); [INFO] [stderr] | ------- ^^^^^^^^ unreachable expression [INFO] [stderr] | | [INFO] [stderr] | any code following this expression is unreachable [INFO] [stderr] [INFO] [stderr] warning: unused variable: `specifier` [INFO] [stderr] --> src/analyzer.rs:141:36 [INFO] [stderr] | [INFO] [stderr] 141 | pub fn resolve_module(&mut self, specifier: &'a str) -> Option<()> { [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_specifier` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `id` [INFO] [stderr] --> src/analyzer.rs:145:45 [INFO] [stderr] | [INFO] [stderr] 145 | pub fn resolve_global_variable(&mut self, id: &'a str) -> Ty<'a> { [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `id` [INFO] [stderr] --> src/analyzer.rs:149:41 [INFO] [stderr] | [INFO] [stderr] 149 | pub fn resolve_global_type(&mut self, id: &'a str) -> Ty<'a> { [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `node` [INFO] [stderr] --> src/nodes/expr/arrow_function_expression.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | node: &'a ArrowFunctionExpression<'a>, [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `sat` [INFO] [stderr] --> src/nodes/expr/assignment_expression.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | sat: Option>, [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_sat` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `sat` [INFO] [stderr] --> src/nodes/expr/await_expression.rs:12:53 [INFO] [stderr] | [INFO] [stderr] 12 | self.exec_expression(&node.argument, sat.map(|sat| todo!("sat | PromiseLike"))); [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_sat` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `source` [INFO] [stderr] --> src/nodes/expr/import_expression.rs:11:9 [INFO] [stderr] | [INFO] [stderr] 11 | let source = self.exec_expression(&node.source, Some(Ty::String)); [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_source` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `node` [INFO] [stderr] --> src/nodes/expr/meta_property.rs:6:40 [INFO] [stderr] | [INFO] [stderr] 6 | pub fn exec_meta_property(&mut self, node: &'a MetaProperty<'a>, _sat: Option>) -> Ty<'a> { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `tag` [INFO] [stderr] --> src/nodes/expr/tagged_template_expression.rs:11:25 [INFO] [stderr] | [INFO] [stderr] 11 | let (indeterminate, tag, this) = self.exec_callee(&node.tag); [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_tag` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `this` [INFO] [stderr] --> src/nodes/expr/tagged_template_expression.rs:11:30 [INFO] [stderr] | [INFO] [stderr] 11 | let (indeterminate, tag, this) = self.exec_callee(&node.tag); [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_this` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `arguments` [INFO] [stderr] --> src/nodes/expr/tagged_template_expression.rs:17:13 [INFO] [stderr] | [INFO] [stderr] 17 | let mut arguments = vec![todo!()]; [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_arguments` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `value` [INFO] [stderr] --> src/nodes/expr/tagged_template_expression.rs:20:11 [INFO] [stderr] | [INFO] [stderr] 20 | let value = self.exec_expression(expr, todo!()); [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `node` [INFO] [stderr] --> src/nodes/expr/yield_expression.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | node: &'a YieldExpression<'a>, [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `sat` [INFO] [stderr] --> src/nodes/expr/yield_expression.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | sat: Option>, [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_sat` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `attributes` [INFO] [stderr] --> src/nodes/jsx/jsx_element.rs:12:9 [INFO] [stderr] | [INFO] [stderr] 12 | let attributes = self.exec_jsx_attributes(&node.opening_element, attr_sat); [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_attributes` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `children` [INFO] [stderr] --> src/nodes/jsx/jsx_element.rs:13:9 [INFO] [stderr] | [INFO] [stderr] 13 | let children = self.exec_jsx_children(&node.children); [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_children` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `node` [INFO] [stderr] --> src/nodes/misc/class.rs:6:32 [INFO] [stderr] | [INFO] [stderr] 6 | pub fn exec_class(&mut self, node: &'a Class<'a>, _sat: Option>) -> Ty<'a> { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `node` [INFO] [stderr] --> src/nodes/misc/class.rs:14:32 [INFO] [stderr] | [INFO] [stderr] 14 | pub fn init_class(&mut self, node: &'a Class<'a>) -> Ty<'a> { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `is_async` [INFO] [stderr] --> src/nodes/misc/function_body.rs:42:5 [INFO] [stderr] | [INFO] [stderr] 42 | is_async: bool, [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_async` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `known` [INFO] [stderr] --> src/nodes/stmt/module_declaration.rs:14:37 [INFO] [stderr] | [INFO] [stderr] 14 | let value = if let Some(known) = known { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_known` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `node` [INFO] [stderr] --> src/nodes/stmt/module_declaration.rs:112:55 [INFO] [stderr] | [INFO] [stderr] 112 | ModuleDeclaration::TSNamespaceExportDeclaration(node) => { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `node` [INFO] [stderr] --> src/nodes/stmt/switch_statement.rs:6:43 [INFO] [stderr] | [INFO] [stderr] 6 | pub fn exec_switch_statement(&mut self, node: &'a SwitchStatement<'a>) { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `params` [INFO] [stderr] --> src/nodes/ts/ts_interface_declaration.rs:23:9 [INFO] [stderr] | [INFO] [stderr] 23 | let params = [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `node` [INFO] [stderr] --> src/nodes/ts/ts_literal.rs:12:34 [INFO] [stderr] | [INFO] [stderr] 12 | TSLiteral::UnaryExpression(node) => todo!(), [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `node` [INFO] [stderr] --> src/nodes/ts/ts_literal.rs:13:34 [INFO] [stderr] | [INFO] [stderr] 13 | TSLiteral::TemplateLiteral(node) => todo!(), [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `rest` [INFO] [stderr] --> src/ty/callable.rs:100:23 [INFO] [stderr] | [INFO] [stderr] 100 | if let Some(rest) = callable.rest_param {} [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rest` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `node` [INFO] [stderr] --> src/ty/callable.rs:380:33 [INFO] [stderr] | [INFO] [stderr] 380 | Argument::SpreadElement(node) => { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `this_arg` [INFO] [stderr] --> src/ty/callable.rs:310:5 [INFO] [stderr] | [INFO] [stderr] 310 | this_arg: Ty<'a>, [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_this_arg` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `enum_class` [INFO] [stderr] --> src/ty/enum.rs:57:47 [INFO] [stderr] | [INFO] [stderr] 57 | pub fn serialize_enum_class_type(&mut self, enum_class: &'a EnumClassType<'a>) -> TSType<'a> { [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_enum_class` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `generic` [INFO] [stderr] --> src/ty/generic.rs:175:44 [INFO] [stderr] | [INFO] [stderr] 175 | pub fn serialize_generic_type(&mut self, generic: &GenericType<'a>) -> TSType<'a> { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_generic` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `r` [INFO] [stderr] --> src/ty/interface.rs:25:18 [INFO] [stderr] | [INFO] [stderr] 25 | Ty::Record(r) => {} [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `interface` [INFO] [stderr] --> src/ty/interface.rs:77:46 [INFO] [stderr] | [INFO] [stderr] 77 | pub fn serialize_interface_type(&mut self, interface: &InterfaceType<'a>) -> TSType<'a> { [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_interface` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `intrinsic` [INFO] [stderr] --> src/ty/intrinsics.rs:62:46 [INFO] [stderr] | [INFO] [stderr] 62 | pub fn serialize_intrinsic_type(&mut self, intrinsic: IntrinsicType) -> TSType<'a> { [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_intrinsic` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `g` [INFO] [stderr] --> src/ty/lowest.rs:11:19 [INFO] [stderr] | [INFO] [stderr] 11 | Ty::Generic(g) => todo!(), [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/ty/lowest.rs:12:21 [INFO] [stderr] | [INFO] [stderr] 12 | Ty::Intrinsic(i) => todo!(), [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `symbol` [INFO] [stderr] --> src/ty/lowest.rs:20:38 [INFO] [stderr] | [INFO] [stderr] 20 | UnresolvedType::GenericParam(symbol) => { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_symbol` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `target` [INFO] [stderr] --> src/ty/match.rs:237:22 [INFO] [stderr] | [INFO] [stderr] 237 | (Ty::Interface(target), Ty::Interface(pattern)) => todo!(), [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `pattern` [INFO] [stderr] --> src/ty/match.rs:237:45 [INFO] [stderr] | [INFO] [stderr] 237 | (Ty::Interface(target), Ty::Interface(pattern)) => todo!(), [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pattern` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `target` [INFO] [stderr] --> src/ty/match.rs:242:18 [INFO] [stderr] | [INFO] [stderr] 242 | (Ty::Tuple(target), Ty::Tuple(pattern)) => todo!(), [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `pattern` [INFO] [stderr] --> src/ty/match.rs:242:37 [INFO] [stderr] | [INFO] [stderr] 242 | (Ty::Tuple(target), Ty::Tuple(pattern)) => todo!(), [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pattern` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `namespace` [INFO] [stderr] --> src/ty/namespace.rs:50:46 [INFO] [stderr] | [INFO] [stderr] 50 | pub fn serialize_namespace_type(&mut self, namespace: &Ns<'a>) -> TSType<'a> { [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_namespace` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `analyzer` [INFO] [stderr] --> src/ty/record.rs:125:33 [INFO] [stderr] | [INFO] [stderr] 125 | pub fn init_spread(&mut self, analyzer: &mut Analyzer<'a>, value: Ty<'a>) { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_analyzer` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `value` [INFO] [stderr] --> src/ty/record.rs:125:62 [INFO] [stderr] | [INFO] [stderr] 125 | pub fn init_spread(&mut self, analyzer: &mut Analyzer<'a>, value: Ty<'a>) { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `analyzer` [INFO] [stderr] --> src/ty/record.rs:129:37 [INFO] [stderr] | [INFO] [stderr] 129 | pub fn remove_property(&mut self, analyzer: &mut Analyzer<'a>, key: PropertyKeyType<'a>) { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_analyzer` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `key` [INFO] [stderr] --> src/ty/record.rs:129:66 [INFO] [stderr] | [INFO] [stderr] 129 | pub fn remove_property(&mut self, analyzer: &mut Analyzer<'a>, key: PropertyKeyType<'a>) { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `key` [INFO] [stderr] --> src/ty/record.rs:250:10 [INFO] [stderr] | [INFO] [stderr] 250 | for (key, property) in &record.symbol_keyed.0 { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `property` [INFO] [stderr] --> src/ty/record.rs:250:15 [INFO] [stderr] | [INFO] [stderr] 250 | for (key, property) in &record.symbol_keyed.0 { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_property` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `s` [INFO] [stderr] --> src/ty/tuple.rs:56:37 [INFO] [stderr] | [INFO] [stderr] 56 | PropertyKeyType::UniqueSymbol(s) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `target` [INFO] [stderr] --> src/ty/mod.rs:182:42 [INFO] [stderr] | [INFO] [stderr] 182 | pub fn iterate_result_union(&mut self, target: Ty<'a>) -> Ty<'a> { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `target` [INFO] [stderr] --> src/ty/mod.rs:188:5 [INFO] [stderr] | [INFO] [stderr] 188 | target: Ty<'a>, [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `len` [INFO] [stderr] --> src/ty/mod.rs:189:5 [INFO] [stderr] | [INFO] [stderr] 189 | len: usize, [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `need_rest` [INFO] [stderr] --> src/ty/mod.rs:190:5 [INFO] [stderr] | [INFO] [stderr] 190 | need_rest: bool, [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_need_rest` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `target` [INFO] [stderr] --> src/ty/mod.rs:195:36 [INFO] [stderr] | [INFO] [stderr] 195 | pub fn get_to_numeric(&mut self, target: Ty<'a>) -> Ty<'a> { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `target` [INFO] [stderr] --> src/ty/mod.rs:199:35 [INFO] [stderr] | [INFO] [stderr] 199 | pub fn get_to_string(&mut self, target: Ty<'a>) -> Ty<'a> { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `target` [INFO] [stderr] --> src/ty/mod.rs:207:36 [INFO] [stderr] | [INFO] [stderr] 207 | pub fn get_to_awaited(&mut self, target: Ty<'a>) -> Ty<'a> { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stderr] [INFO] [stderr] warning: field `root` is never read [INFO] [stderr] --> src/scope/type.rs:22:3 [INFO] [stderr] | [INFO] [stderr] 20 | pub struct TypeScopeTree<'a> { [INFO] [stderr] | ------------- field in this struct [INFO] [stderr] 21 | nodes: IndexVec>, [INFO] [stderr] 22 | root: TypeScopeId, [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `TypeScopeTree` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/scope/type.rs:95:23 [INFO] [stderr] | [INFO] [stderr] 95 | pub fn entry_on_top(&mut self, symbol: SymbolId) -> Entry> { [INFO] [stderr] | ^^^^^^^^^ ----------------------- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 95 | pub fn entry_on_top(&mut self, symbol: SymbolId) -> Entry<'_, SymbolId, Ty<'a>> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: `simple_ts` (lib) generated 64 warnings (run `cargo fix --lib -p simple_ts` to apply 3 suggestions) [INFO] [stderr] warning: `simple_ts` (lib test) generated 64 warnings (64 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.25s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/simple_ts-655db3789a2f36a3) [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] [stderr] Running tests/mod.rs (/opt/rustwide/target/debug/deps/mod-b7341a4854bc3083) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test test ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- test stdout ---- [INFO] [stdout] Testing /opt/rustwide/workdir/tests/fixtures/basic.ts [INFO] [stdout] Testing /opt/rustwide/workdir/tests/fixtures/box.ts [INFO] [stdout] Testing /opt/rustwide/workdir/tests/fixtures/conditional.ts [INFO] [stdout] Testing /opt/rustwide/workdir/tests/fixtures/enum.ts [INFO] [stdout] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ [INFO] [stdout] Snapshot file: tests/snapshots/test@enum.ts.snap [INFO] [stdout] Snapshot: test@enum.ts [INFO] [stdout] Source: tests/mod.rs:62 [INFO] [stdout] Input file: tests/fixtures/enum.ts [INFO] [stdout] ──────────────────────────────────────────────────────────────────────────────── [INFO] [stdout] -old snapshot [INFO] [stdout] +new results [INFO] [stdout] ────────────┬─────────────────────────────────────────────────────────────────── [INFO] [stdout] 0 0 │ type A2 = A; [INFO] [stdout] 1 │-type T1 = A.X | A.Y; [INFO] [stdout] 1 │+type T1 = A.Y | A.X; [INFO] [stdout] 2 2 │ type T2 = false; [INFO] [stdout] ────────────┴─────────────────────────────────────────────────────────────────── [INFO] [stdout] [INFO] [stdout] thread 'test' panicked at tests/mod.rs:62:7: [INFO] [stdout] called `Result::unwrap()` on an `Err` value: FileIo(Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" }, "/opt/rustwide/workdir/tests/snapshots/test@enum.ts.snap.new") [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x58b7c8ae2292 - std::backtrace_rs::backtrace::libunwind::trace::h5edb72cc539d8d33 [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x58b7c8ae2292 - std::backtrace_rs::backtrace::trace_unsynchronized::h73d186ef976c5ae2 [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x58b7c8ae2292 - std::sys::backtrace::_print_fmt::h4410012d384fde01 [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x58b7c8ae2292 - ::fmt::h281a579a27d691d5 [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x58b7c8b0c903 - core::fmt::rt::Argument::fmt::h4c31bb6a3f4e4ed6 [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x58b7c8b0c903 - core::fmt::write::hd1f1283e971fbb36 [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/core/src/fmt/mod.rs:1465:25 [INFO] [stdout] 6: 0x58b7c8ade4c3 - std::io::default_write_fmt::h6d6cb3ff48bb6394 [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x58b7c8ade4c3 - std::io::Write::write_fmt::h976b7a346c630898 [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x58b7c8ae20e2 - std::sys::backtrace::BacktraceLock::print::h7cc2f8a0b7549773 [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x58b7c8ae3c9c - std::panicking::default_hook::{{closure}}::hc18f11ca3cc980d1 [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/std/src/panicking.rs:300:27 [INFO] [stdout] 10: 0x58b7c8ae3af2 - std::panicking::default_hook::h5207cd5928e5a9d2 [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/std/src/panicking.rs:324:9 [INFO] [stdout] 11: 0x58b7c83193e4 - as core::ops::function::Fn>::call::h53735dbb2fff5e8e [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/alloc/src/boxed.rs:1980:9 [INFO] [stdout] 12: 0x58b7c83193e4 - test::test_main_with_exit_callback::{{closure}}::h8629ce54f7c62158 [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x58b7c8ae477b - as core::ops::function::Fn>::call::hdd01dfa4f5d59fd2 [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/alloc/src/boxed.rs:1980:9 [INFO] [stdout] 14: 0x58b7c8ae477b - std::panicking::rust_panic_with_hook::he2975323910480e2 [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/std/src/panicking.rs:841:13 [INFO] [stdout] 15: 0x58b7c8ae444a - std::panicking::begin_panic_handler::{{closure}}::hf6a73f8f68d2901d [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/std/src/panicking.rs:706:13 [INFO] [stdout] 16: 0x58b7c8ae2799 - std::sys::backtrace::__rust_end_short_backtrace::h91c7517b8fba4182 [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/std/src/sys/backtrace.rs:168:18 [INFO] [stdout] 17: 0x58b7c8ae40dd - __rustc[c30fa7112bbf6ac0]::rust_begin_unwind [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/std/src/panicking.rs:697:5 [INFO] [stdout] 18: 0x58b7c8b09fb0 - core::panicking::panic_fmt::h1dc18eebb9b6550e [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x58b7c8b0a456 - core::result::unwrap_failed::hf0cc4753dff8b804 [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/core/src/result.rs:1761:5 [INFO] [stdout] 20: 0x58b7c82dcfed - core::result::Result::unwrap::hb23cda3975e1a248 [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/core/src/result.rs:1167:23 [INFO] [stdout] 21: 0x58b7c82dcfed - mod::test::{{closure}}::{{closure}}::h849e335b0fb29ff2 [INFO] [stdout] at /opt/rustwide/workdir/tests/mod.rs:62:7 [INFO] [stdout] 22: 0x58b7c82d6e64 - insta::settings::Settings::bind::h4a321458f3ba068c [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.42.2/src/settings.rs:509:9 [INFO] [stdout] 23: 0x58b7c82dcb62 - mod::test::{{closure}}::h9927a7b47b0ecfdc [INFO] [stdout] at /opt/rustwide/workdir/tests/mod.rs:61:14 [INFO] [stdout] 24: 0x58b7c82d6c5d - insta::glob::glob_exec::{{closure}}::h18693fcf9650ae34 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.42.2/src/glob.rs:103:13 [INFO] [stdout] 25: 0x58b7c82d6f1e - insta::settings::Settings::bind::ha649e21c48cd3d9b [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.42.2/src/settings.rs:509:9 [INFO] [stdout] 26: 0x58b7c82d6931 - insta::glob::glob_exec::hd0de67ad6a78c49d [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.42.2/src/glob.rs:102:18 [INFO] [stdout] 27: 0x58b7c82dc85c - mod::test::h65ee302a7d798b8b [INFO] [stdout] at /opt/rustwide/workdir/tests/mod.rs:55:3 [INFO] [stdout] 28: 0x58b7c82dc357 - mod::test::{{closure}}::hd26ba0f1d8cfc11b [INFO] [stdout] at /opt/rustwide/workdir/tests/mod.rs:54:10 [INFO] [stdout] 29: 0x58b7c82d2986 - core::ops::function::FnOnce::call_once::h4238bbc9e20bb73d [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 30: 0x58b7c831eadb - core::ops::function::FnOnce::call_once::hdd80366119caeff9 [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 31: 0x58b7c831eadb - test::__rust_begin_short_backtrace::h60798cb0fdc462bd [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/test/src/lib.rs:648:18 [INFO] [stdout] 32: 0x58b7c831dd5e - test::run_test_in_process::{{closure}}::h81bd62fe0ddb1cae [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/test/src/lib.rs:671:74 [INFO] [stdout] 33: 0x58b7c831dd5e - as core::ops::function::FnOnce<()>>::call_once::h6ee6466477e4c0dc [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 34: 0x58b7c831dd5e - std::panicking::catch_unwind::do_call::h01a79315147a2ca1 [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/std/src/panicking.rs:589:40 [INFO] [stdout] 35: 0x58b7c831dd5e - std::panicking::catch_unwind::h831c87e90ef4f2d8 [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/std/src/panicking.rs:552:19 [INFO] [stdout] 36: 0x58b7c831dd5e - std::panic::catch_unwind::h50e9876bcbc7c37f [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/std/src/panic.rs:359:14 [INFO] [stdout] 37: 0x58b7c831dd5e - test::run_test_in_process::hd57ee4367ef533b2 [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/test/src/lib.rs:671:27 [INFO] [stdout] 38: 0x58b7c831dd5e - test::run_test::{{closure}}::hd180abfe8d10b90d [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/test/src/lib.rs:592:43 [INFO] [stdout] 39: 0x58b7c82e1954 - test::run_test::{{closure}}::hadea4433d10ac366 [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/test/src/lib.rs:622:41 [INFO] [stdout] 40: 0x58b7c82e1954 - std::sys::backtrace::__rust_begin_short_backtrace::hb136c48ddd0ced72 [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/std/src/sys/backtrace.rs:152:18 [INFO] [stdout] 41: 0x58b7c82e524a - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h9e392173a704e81a [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 42: 0x58b7c82e524a - as core::ops::function::FnOnce<()>>::call_once::h858a87db574d2ff4 [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 43: 0x58b7c82e524a - std::panicking::catch_unwind::do_call::hff7ec4d4a59ca346 [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/std/src/panicking.rs:589:40 [INFO] [stdout] 44: 0x58b7c82e524a - std::panicking::catch_unwind::h74378fed914955a4 [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/std/src/panicking.rs:552:19 [INFO] [stdout] 45: 0x58b7c82e524a - std::panic::catch_unwind::hd644e75c809e87ce [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/std/src/panic.rs:359:14 [INFO] [stdout] 46: 0x58b7c82e524a - std::thread::Builder::spawn_unchecked_::{{closure}}::h5c4ce65e6ea67c65 [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 47: 0x58b7c82e524a - core::ops::function::FnOnce::call_once{{vtable.shim}}::h2c391219c93831ae [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 48: 0x58b7c8ae7767 - as core::ops::function::FnOnce>::call_once::ha02f1268c87bf8cb [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/alloc/src/boxed.rs:1966:9 [INFO] [stdout] 49: 0x58b7c8ae7767 - as core::ops::function::FnOnce>::call_once::ha9964535c0565e6a [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/alloc/src/boxed.rs:1966:9 [INFO] [stdout] 50: 0x58b7c8ae7767 - std::sys::pal::unix::thread::Thread::new::thread_start::hd6a2768613f757f7 [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/std/src/sys/pal/unix/thread.rs:97:17 [INFO] [stdout] 51: 0x7ed28a946aa4 - [INFO] [stdout] 52: 0x7ed28a9d3a34 - clone [INFO] [stdout] 53: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] test [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.11s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--test mod` [INFO] running `Command { std: "docker" "inspect" "cdcac9ca065cbd5c231802f42fe3305bf5ec28aceb3291da2cb9a715a3ca6276", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cdcac9ca065cbd5c231802f42fe3305bf5ec28aceb3291da2cb9a715a3ca6276", kill_on_drop: false }` [INFO] [stdout] cdcac9ca065cbd5c231802f42fe3305bf5ec28aceb3291da2cb9a715a3ca6276