[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-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKermanX%2Fecma_analyzer" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-1-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-1-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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] 818e57660595da5a1bb728602097e44df23e6e9bd560f4c48ac531d86d8b5b2a [INFO] running `Command { std: "docker" "start" "-a" "818e57660595da5a1bb728602097e44df23e6e9bd560f4c48ac531d86d8b5b2a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "818e57660595da5a1bb728602097e44df23e6e9bd560f4c48ac531d86d8b5b2a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "818e57660595da5a1bb728602097e44df23e6e9bd560f4c48ac531d86d8b5b2a", kill_on_drop: false }` [INFO] [stdout] 818e57660595da5a1bb728602097e44df23e6e9bd560f4c48ac531d86d8b5b2a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] 8b67d741bdafcfd54bcfd892ea0bf56c20b554d3a9769be7b45b4d5c2b5db7e4 [INFO] running `Command { std: "docker" "start" "-a" "8b67d741bdafcfd54bcfd892ea0bf56c20b554d3a9769be7b45b4d5c2b5db7e4", 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 foldhash v0.1.5 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling rustversion v1.0.20 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling siphasher v1.0.1 [INFO] [stderr] Compiling owo-colors v4.2.0 [INFO] [stderr] Compiling unicode-width v0.2.0 [INFO] [stderr] Compiling unicode-linebreak v0.1.5 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling smawk v0.3.2 [INFO] [stderr] Compiling rustc-hash v2.1.1 [INFO] [stderr] Compiling oxc_data_structures v0.64.0 [INFO] [stderr] Compiling cow-utils v0.1.3 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling simdutf8 v0.1.5 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling oxc_estree v0.64.0 [INFO] [stderr] Compiling unicode-id-start v1.3.1 [INFO] [stderr] Compiling phf_shared v0.11.3 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling ryu-js v1.0.2 [INFO] [stderr] Compiling nonmax v0.5.5 [INFO] [stderr] Compiling bitflags v2.9.0 [INFO] [stderr] Compiling oxc_index v3.0.0 [INFO] [stderr] Compiling fixedbitset v0.5.7 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling textwrap v0.16.2 [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Compiling bumpalo v3.17.0 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling self_cell v1.2.0 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling oxc_sourcemap v3.0.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling itertools v0.14.0 [INFO] [stderr] Compiling outref v0.5.2 [INFO] [stderr] Compiling vsimd v0.8.0 [INFO] [stderr] Compiling seq-macro v0.3.6 [INFO] [stderr] Compiling nohash-hasher v0.2.0 [INFO] [stderr] Compiling text-size v1.1.1 [INFO] [stderr] Compiling phf_generator v0.11.3 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling line-index v0.1.2 [INFO] [stderr] Compiling castaway v0.2.3 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling compact_str v0.9.0 [INFO] [stderr] Compiling base64-simd v0.8.0 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling oxc_allocator v0.64.0 [INFO] [stderr] Compiling indexmap v2.9.0 [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 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 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_ast v0.64.0 [INFO] [stderr] Compiling oxc_cfg 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_codegen v0.64.0 [INFO] [stderr] Compiling oxc_mangler v0.64.0 [INFO] [stderr] Compiling oxc_traverse 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 32.34s [INFO] running `Command { std: "docker" "inspect" "8b67d741bdafcfd54bcfd892ea0bf56c20b554d3a9769be7b45b4d5c2b5db7e4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8b67d741bdafcfd54bcfd892ea0bf56c20b554d3a9769be7b45b4d5c2b5db7e4", kill_on_drop: false }` [INFO] [stdout] 8b67d741bdafcfd54bcfd892ea0bf56c20b554d3a9769be7b45b4d5c2b5db7e4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] d5c38670123cd025969b84ba600b3163f1ca8dc77b0ea7c2cbd128235ef200e7 [INFO] running `Command { std: "docker" "start" "-a" "d5c38670123cd025969b84ba600b3163f1ca8dc77b0ea7c2cbd128235ef200e7", 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 similar v2.7.0 [INFO] [stderr] Compiling linked-hash-map v0.5.6 [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 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 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 globset v0.4.16 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling oxc-miette v2.2.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 oxc_ast v0.64.0 [INFO] [stderr] Compiling oxc_cfg v0.64.0 [INFO] [stderr] Compiling serde v1.0.219 [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 20.36s [INFO] running `Command { std: "docker" "inspect" "d5c38670123cd025969b84ba600b3163f1ca8dc77b0ea7c2cbd128235ef200e7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d5c38670123cd025969b84ba600b3163f1ca8dc77b0ea7c2cbd128235ef200e7", kill_on_drop: false }` [INFO] [stdout] d5c38670123cd025969b84ba600b3163f1ca8dc77b0ea7c2cbd128235ef200e7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] 583c4fb4269c7622371915ff9699916a11ddbb3501ee11002d679f9bf7ccc258 [INFO] running `Command { std: "docker" "start" "-a" "583c4fb4269c7622371915ff9699916a11ddbb3501ee11002d679f9bf7ccc258", 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.10s [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 ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s [INFO] [stdout] [INFO] [stderr] Doc-tests simple_ts [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "583c4fb4269c7622371915ff9699916a11ddbb3501ee11002d679f9bf7ccc258", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "583c4fb4269c7622371915ff9699916a11ddbb3501ee11002d679f9bf7ccc258", kill_on_drop: false }` [INFO] [stdout] 583c4fb4269c7622371915ff9699916a11ddbb3501ee11002d679f9bf7ccc258