[INFO] fetching crate wasm-ast 0.0.2... [INFO] checking wasm-ast-0.0.2 against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] extracting crate wasm-ast 0.0.2 into /workspace/builds/worker-73/source [INFO] validating manifest of crates.io crate wasm-ast 0.0.2 on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate wasm-ast 0.0.2 [INFO] finished tweaking crates.io crate wasm-ast 0.0.2 [INFO] tweaked toml for crates.io crate wasm-ast 0.0.2 written to /workspace/builds/worker-73/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded radium v0.5.3 [INFO] [stderr] Downloaded bstr v0.2.15 [INFO] [stderr] Downloaded bitvec v0.19.5 [INFO] [stderr] Downloaded nom v6.2.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-73/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-73/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5576540dc29151bcfe5b832530aa70ac8e7f52ebbc7ce778811f714a2ef64945 [INFO] running `Command { std: "docker" "start" "-a" "5576540dc29151bcfe5b832530aa70ac8e7f52ebbc7ce778811f714a2ef64945", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5576540dc29151bcfe5b832530aa70ac8e7f52ebbc7ce778811f714a2ef64945", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5576540dc29151bcfe5b832530aa70ac8e7f52ebbc7ce778811f714a2ef64945", kill_on_drop: false }` [INFO] [stdout] 5576540dc29151bcfe5b832530aa70ac8e7f52ebbc7ce778811f714a2ef64945 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-73/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-73/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cb0d551e1c6ee93f8c8d2ba9df007544d91ec2472e89a64d8c259197972d1217 [INFO] running `Command { std: "docker" "start" "-a" "cb0d551e1c6ee93f8c8d2ba9df007544d91ec2472e89a64d8c259197972d1217", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling radium v0.5.3 [INFO] [stderr] Checking wyz v0.2.0 [INFO] [stderr] Checking funty v1.1.0 [INFO] [stderr] Checking regex-automata v0.1.10 [INFO] [stderr] Checking tap v1.0.1 [INFO] [stderr] Compiling nom v6.2.1 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Checking serde_json v1.0.66 [INFO] [stderr] Compiling serde_derive v1.0.129 [INFO] [stderr] Checking crossbeam-utils v0.8.5 [INFO] [stderr] Checking crossbeam-channel v0.5.1 [INFO] [stderr] Compiling memoffset v0.6.4 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling rayon v1.5.1 [INFO] [stderr] Checking bitvec v0.19.5 [INFO] [stderr] Checking bstr v0.2.15 [INFO] [stderr] Checking csv-core v0.1.10 [INFO] [stderr] Checking crossbeam-epoch v0.9.5 [INFO] [stderr] Checking tinytemplate v1.2.1 [INFO] [stderr] Checking crossbeam-deque v0.8.1 [INFO] [stderr] Checking csv v1.1.6 [INFO] [stderr] Checking rayon-core v1.9.1 [INFO] [stderr] Checking plotters v0.3.1 [INFO] [stderr] Checking wasm-ast v0.0.2 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2018 edition to 2021 [INFO] [stderr] Checking criterion v0.3.5 [INFO] [stdout] warning: struct is never constructed: `Indexed` [INFO] [stdout] --> src/model/builder.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Indexed { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `value` [INFO] [stdout] --> src/model/builder.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn value(self) -> T { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `ModuleBuilder` [INFO] [stdout] --> src/model/builder.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct ModuleBuilder { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/model/builder.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `build` [INFO] [stdout] --> src/model/builder.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn build(self) -> Module { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating benches/emit_module.rs from 2018 edition to 2021 [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tortuga` [INFO] [stdout] --> benches/emit_module.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use tortuga::compiler::emitter::{emit_module, CountingWrite}; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `tortuga` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tortuga` [INFO] [stdout] --> benches/emit_module.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tortuga::model::{ [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `tortuga` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CountingWrite` [INFO] [stdout] --> benches/emit_module.rs:15:29 [INFO] [stdout] | [INFO] [stdout] 15 | let mut write = CountingWrite::new(); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `CountingWrite` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CountingWrite` [INFO] [stdout] --> benches/emit_module.rs:24:29 [INFO] [stdout] | [INFO] [stdout] 24 | let mut write = CountingWrite::new(); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `CountingWrite` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NumberType` [INFO] [stdout] --> benches/emit_module.rs:36:49 [INFO] [stdout] | [INFO] [stdout] 36 | ResultType::from(vec![ValueType::Number(NumberType::I64)]), [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `NumberType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NumberType` [INFO] [stdout] --> benches/emit_module.rs:37:49 [INFO] [stdout] | [INFO] [stdout] 37 | ResultType::from(vec![ValueType::Number(NumberType::F64)]), [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `NumberType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NumberType` [INFO] [stdout] --> benches/emit_module.rs:43:49 [INFO] [stdout] | [INFO] [stdout] 43 | ResultType::from(vec![ValueType::Number(NumberType::I32)]), [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `NumberType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ReferenceType` [INFO] [stdout] --> benches/emit_module.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | ReferenceType::Function, [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `ReferenceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ElementMode` [INFO] [stdout] --> benches/emit_module.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | ElementMode::Passive, [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `ElementMode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DataMode` [INFO] [stdout] --> benches/emit_module.rs:67:26 [INFO] [stdout] | [INFO] [stdout] 67 | let data = Data::new(DataMode::Passive, vec![42]); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `DataMode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ReferenceType` [INFO] [stdout] --> benches/emit_module.rs:70:64 [INFO] [stdout] | [INFO] [stdout] 70 | let table = Table::new(TableType::new(Limit::new(1, None), ReferenceType::Function)); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `ReferenceType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NumberType` [INFO] [stdout] --> benches/emit_module.rs:86:50 [INFO] [stdout] | [INFO] [stdout] 86 | GlobalType::new(false, ValueType::Number(NumberType::I64)), [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `NumberType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Module` [INFO] [stdout] --> benches/emit_module.rs:12:28 [INFO] [stdout] | [INFO] [stdout] 12 | let empty_module = Module::new(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use wasm_ast::Module; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `emit_module` in this scope [INFO] [stdout] --> benches/emit_module.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | emit_module(&empty_module, &mut write).expect("An error occurred emitting the module."); [INFO] [stdout] | ^^^^^^^^^^^ help: a local variable with a similar name exists: `empty_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `emit_module` in this scope [INFO] [stdout] --> benches/emit_module.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | emit_module(&singular_module, &mut write) [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Module` in this scope [INFO] [stdout] --> benches/emit_module.rs:33:29 [INFO] [stdout] | [INFO] [stdout] 33 | fn new_singular_module() -> Module { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use wasm_ast::Module; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Module` [INFO] [stdout] --> benches/emit_module.rs:34:22 [INFO] [stdout] | [INFO] [stdout] 34 | let mut module = Module::new(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use wasm_ast::Module; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FunctionType` [INFO] [stdout] --> benches/emit_module.rs:35:25 [INFO] [stdout] | [INFO] [stdout] 35 | let function_type = FunctionType::new( [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use wasm_ast::FunctionType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ResultType` [INFO] [stdout] --> benches/emit_module.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | ResultType::from(vec![ValueType::Number(NumberType::I64)]), [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use wasm_ast::ResultType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ValueType` [INFO] [stdout] --> benches/emit_module.rs:36:31 [INFO] [stdout] | [INFO] [stdout] 36 | ResultType::from(vec![ValueType::Number(NumberType::I64)]), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 | use wasm_ast::ValueType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ResultType` [INFO] [stdout] --> benches/emit_module.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | ResultType::from(vec![ValueType::Number(NumberType::F64)]), [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use wasm_ast::ResultType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ValueType` [INFO] [stdout] --> benches/emit_module.rs:37:31 [INFO] [stdout] | [INFO] [stdout] 37 | ResultType::from(vec![ValueType::Number(NumberType::F64)]), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 | use wasm_ast::ValueType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Function` [INFO] [stdout] --> benches/emit_module.rs:41:20 [INFO] [stdout] | [INFO] [stdout] 41 | let function = Function::new( [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use wasm_ast::Function; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ResultType` [INFO] [stdout] --> benches/emit_module.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | ResultType::from(vec![ValueType::Number(NumberType::I32)]), [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use wasm_ast::ResultType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ValueType` [INFO] [stdout] --> benches/emit_module.rs:43:31 [INFO] [stdout] | [INFO] [stdout] 43 | ResultType::from(vec![ValueType::Number(NumberType::I32)]), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 | use wasm_ast::ValueType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Expression` [INFO] [stdout] --> benches/emit_module.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | Expression::new(vec![Instruction::Numeric(NumericInstruction::F64Constant( [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use wasm_ast::Expression; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Instruction` [INFO] [stdout] --> benches/emit_module.rs:44:30 [INFO] [stdout] | [INFO] [stdout] 44 | Expression::new(vec![Instruction::Numeric(NumericInstruction::F64Constant( [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 | use wasm_ast::Instruction; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NumericInstruction` [INFO] [stdout] --> benches/emit_module.rs:44:51 [INFO] [stdout] | [INFO] [stdout] 44 | Expression::new(vec![Instruction::Numeric(NumericInstruction::F64Constant( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 | use wasm_ast::NumericInstruction; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FunctionType` [INFO] [stdout] --> benches/emit_module.rs:50:31 [INFO] [stdout] | [INFO] [stdout] 50 | let start_function_type = FunctionType::new(ResultType::from(vec![]), ResultType::from(vec![])); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use wasm_ast::FunctionType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ResultType` [INFO] [stdout] --> benches/emit_module.rs:50:49 [INFO] [stdout] | [INFO] [stdout] 50 | let start_function_type = FunctionType::new(ResultType::from(vec![]), ResultType::from(vec![])); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use wasm_ast::ResultType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ResultType` [INFO] [stdout] --> benches/emit_module.rs:50:75 [INFO] [stdout] | [INFO] [stdout] 50 | let start_function_type = FunctionType::new(ResultType::from(vec![]), ResultType::from(vec![])); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use wasm_ast::ResultType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Import` [INFO] [stdout] --> benches/emit_module.rs:53:18 [INFO] [stdout] | [INFO] [stdout] 53 | let import = Import::new( [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use wasm_ast::Import; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Name` [INFO] [stdout] --> benches/emit_module.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | Name::new("test".to_string()), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use wasm_ast::Name; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Name` [INFO] [stdout] --> benches/emit_module.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | Name::new("foobar".to_string()), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use wasm_ast::Name; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ImportDescription` [INFO] [stdout] --> benches/emit_module.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | ImportDescription::Function(1), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 | use wasm_ast::ImportDescription; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Element` [INFO] [stdout] --> benches/emit_module.rs:60:19 [INFO] [stdout] | [INFO] [stdout] 60 | let element = Element::new( [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use wasm_ast::Element; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ElementInitializer` [INFO] [stdout] --> benches/emit_module.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | ElementInitializer::FunctionIndex(vec![0]), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 | use wasm_ast::ElementInitializer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Data` [INFO] [stdout] --> benches/emit_module.rs:67:16 [INFO] [stdout] | [INFO] [stdout] 67 | let data = Data::new(DataMode::Passive, vec![42]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use wasm_ast::Data; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Table` [INFO] [stdout] --> benches/emit_module.rs:70:17 [INFO] [stdout] | [INFO] [stdout] 70 | let table = Table::new(TableType::new(Limit::new(1, None), ReferenceType::Function)); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use wasm_ast::Table; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TableType` [INFO] [stdout] --> benches/emit_module.rs:70:28 [INFO] [stdout] | [INFO] [stdout] 70 | let table = Table::new(TableType::new(Limit::new(1, None), ReferenceType::Function)); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use wasm_ast::TableType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Limit` [INFO] [stdout] --> benches/emit_module.rs:70:43 [INFO] [stdout] | [INFO] [stdout] 70 | let table = Table::new(TableType::new(Limit::new(1, None), ReferenceType::Function)); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use wasm_ast::Limit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Memory` [INFO] [stdout] --> benches/emit_module.rs:73:18 [INFO] [stdout] | [INFO] [stdout] 73 | let memory = Memory::new(MemoryType::new(Limit::new(1, None))); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use wasm_ast::Memory; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MemoryType` [INFO] [stdout] --> benches/emit_module.rs:73:30 [INFO] [stdout] | [INFO] [stdout] 73 | let memory = Memory::new(MemoryType::new(Limit::new(1, None))); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use wasm_ast::MemoryType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Limit` [INFO] [stdout] --> benches/emit_module.rs:73:46 [INFO] [stdout] | [INFO] [stdout] 73 | let memory = Memory::new(MemoryType::new(Limit::new(1, None))); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use wasm_ast::Limit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Export` [INFO] [stdout] --> benches/emit_module.rs:76:18 [INFO] [stdout] | [INFO] [stdout] 76 | let export = Export::new( [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use wasm_ast::Export; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Name` [INFO] [stdout] --> benches/emit_module.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | Name::new("foobar".to_string()), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use wasm_ast::Name; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ExportDescription` [INFO] [stdout] --> benches/emit_module.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | ExportDescription::Function(0), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 | use wasm_ast::ExportDescription; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Start` [INFO] [stdout] --> benches/emit_module.rs:82:17 [INFO] [stdout] | [INFO] [stdout] 82 | let start = Start::new(0); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use wasm_ast::Start; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Global` [INFO] [stdout] --> benches/emit_module.rs:85:18 [INFO] [stdout] | [INFO] [stdout] 85 | let global = Global::new( [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use nom::lib::std::alloc::Global; [INFO] [stdout] | [INFO] [stdout] 1 | use std::alloc::Global; [INFO] [stdout] | [INFO] [stdout] 1 | use wasm_ast::Global; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `GlobalType` [INFO] [stdout] --> benches/emit_module.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | GlobalType::new(false, ValueType::Number(NumberType::I64)), [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use wasm_ast::GlobalType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ValueType` [INFO] [stdout] --> benches/emit_module.rs:86:32 [INFO] [stdout] | [INFO] [stdout] 86 | GlobalType::new(false, ValueType::Number(NumberType::I64)), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 | use wasm_ast::ValueType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Expression` [INFO] [stdout] --> benches/emit_module.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | Expression::new(vec![Instruction::Numeric(NumericInstruction::I64Constant( [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use wasm_ast::Expression; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Instruction` [INFO] [stdout] --> benches/emit_module.rs:87:30 [INFO] [stdout] | [INFO] [stdout] 87 | Expression::new(vec![Instruction::Numeric(NumericInstruction::I64Constant( [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 | use wasm_ast::Instruction; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NumericInstruction` [INFO] [stdout] --> benches/emit_module.rs:87:51 [INFO] [stdout] | [INFO] [stdout] 87 | Expression::new(vec![Instruction::Numeric(NumericInstruction::I64Constant( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 | use wasm_ast::NumericInstruction; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 54 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `wasm-ast` due to 55 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: struct is never constructed: `Indexed` [INFO] [stdout] --> src/model/builder.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Indexed { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `value` [INFO] [stdout] --> src/model/builder.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn value(self) -> T { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `ModuleBuilder` [INFO] [stdout] --> src/model/builder.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct ModuleBuilder { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/model/builder.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `build` [INFO] [stdout] --> src/model/builder.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn build(self) -> Module { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "cb0d551e1c6ee93f8c8d2ba9df007544d91ec2472e89a64d8c259197972d1217", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cb0d551e1c6ee93f8c8d2ba9df007544d91ec2472e89a64d8c259197972d1217", kill_on_drop: false }` [INFO] [stdout] cb0d551e1c6ee93f8c8d2ba9df007544d91ec2472e89a64d8c259197972d1217