cranelift: Small documentation fixes (#5377)
* `translate_operator` doesn't return a boolean. * `from_base_offset` doesn't panic if offset is smaller than base.
This commit is contained in:
@@ -100,8 +100,7 @@ use wasmparser::{FuncValidator, MemArg, Operator, WasmModuleResources};
|
||||
feature = "cargo-clippy",
|
||||
allow(clippy::unneeded_field_pattern, clippy::cognitive_complexity)
|
||||
)]
|
||||
/// Translates wasm operators into Cranelift IR instructions. Returns `true` if it inserted
|
||||
/// a return.
|
||||
/// Translates wasm operators into Cranelift IR instructions.
|
||||
pub fn translate_operator<FE: FuncEnvironment + ?Sized>(
|
||||
validator: &mut FuncValidator<impl WasmModuleResources>,
|
||||
op: &Operator,
|
||||
|
||||
Reference in New Issue
Block a user