Make WasmError and WasmResult public types.

This commit is contained in:
Dan Gohman
2018-05-22 09:37:33 -07:00
parent f835a1b662
commit b855184ae1
2 changed files with 4 additions and 1 deletions

View File

@@ -35,7 +35,9 @@ pub enum WasmError {
/// code. This should never happen for validated WebAssembly code.
#[fail(display = "Invalid input WebAssembly code at offset {}: {}", _1, _0)]
InvalidWebAssembly {
/// A string describing the validation error.
message: &'static str,
/// The bytecode offset where the error occurred.
offset: usize,
},