Rename VMCallerCheckedAnyfunc to VMCallerCheckedFuncRef (#5738)
At some point what is now `funcref` was called `anyfunc` and the spec changed, but we didn't update our internal names. This does that. Co-authored-by: Jamey Sharp <jsharp@fastly.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
use crate::vmcontext::{
|
||||
VMCallerCheckedAnyfunc, VMContext, VMGlobalDefinition, VMMemoryDefinition, VMTableDefinition,
|
||||
VMCallerCheckedFuncRef, VMContext, VMGlobalDefinition, VMMemoryDefinition, VMTableDefinition,
|
||||
};
|
||||
use std::ptr::NonNull;
|
||||
use wasmtime_environ::{DefinedMemoryIndex, Global, MemoryPlan, TablePlan};
|
||||
@@ -22,11 +22,11 @@ pub enum Export {
|
||||
/// A function export value.
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
pub struct ExportFunction {
|
||||
/// The `VMCallerCheckedAnyfunc` for this exported function.
|
||||
/// The `VMCallerCheckedFuncRef` for this exported function.
|
||||
///
|
||||
/// Note that exported functions cannot be a null funcref, so this is a
|
||||
/// non-null pointer.
|
||||
pub anyfunc: NonNull<VMCallerCheckedAnyfunc>,
|
||||
pub anyfunc: NonNull<VMCallerCheckedFuncRef>,
|
||||
}
|
||||
|
||||
// It's part of the contract of using `ExportFunction` that synchronization
|
||||
|
||||
Reference in New Issue
Block a user