Skip to content

Commit

Permalink
Fix build of adapter verifier
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Oct 8, 2024
1 parent 2812ce6 commit 0a8c90c
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions crates/wasi-preview1-component-adapter/verify/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,29 +56,9 @@ fn main() -> Result<()> {

// sections that shouldn't appear in the specially-crafted core wasm
// adapter self we're processing
Payload::DataCountSection { .. }
| Payload::ElementSection(_)
| Payload::DataSection(_)
| Payload::StartSection { .. }
| Payload::TagSection(_)
| Payload::UnknownSection { .. } => {
_ => {
bail!("unsupported section {payload:?} found in preview1.wasm")
}

// component-model related things that shouldn't show up
Payload::ModuleSection { .. }
| Payload::ComponentSection { .. }
| Payload::InstanceSection(_)
| Payload::ComponentInstanceSection(_)
| Payload::ComponentAliasSection(_)
| Payload::ComponentCanonicalSection(_)
| Payload::ComponentStartSection { .. }
| Payload::ComponentImportSection(_)
| Payload::CoreTypeSection(_)
| Payload::ComponentExportSection(_)
| Payload::ComponentTypeSection(_) => {
bail!("component section found in preview1.wasm")
}
}
}

Expand Down

0 comments on commit 0a8c90c

Please sign in to comment.