Skip to content

Commit d320c93

Browse files
committed
Remove pub(crate) from some FuncEnvironment fields
These we `pub(crate)` just so that the `gc` module could access them, but that is now a submodule of `FuncEnvironment`'s module, so the `pub(crate)`s are no longer needed.
1 parent 60595b9 commit d320c93

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

crates/cranelift/src/func_environ.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,13 @@ wasmtime_environ::foreach_builtin_function!(declare_function_signatures);
9494
pub struct FuncEnvironment<'module_environment> {
9595
compiler: &'module_environment Compiler,
9696
isa: &'module_environment (dyn TargetIsa + 'module_environment),
97-
pub(crate) module: &'module_environment Module,
98-
pub(crate) types: &'module_environment ModuleTypesBuilder,
97+
module: &'module_environment Module,
98+
types: &'module_environment ModuleTypesBuilder,
9999
wasm_func_ty: &'module_environment WasmFuncType,
100100
sig_ref_to_ty: SecondaryMap<ir::SigRef, Option<&'module_environment WasmFuncType>>,
101101

102102
#[cfg(feature = "gc")]
103-
pub(crate) ty_to_gc_layout: std::collections::HashMap<
103+
ty_to_gc_layout: std::collections::HashMap<
104104
wasmtime_environ::ModuleInternedTypeIndex,
105105
wasmtime_environ::GcLayout,
106106
>,
@@ -122,12 +122,12 @@ pub struct FuncEnvironment<'module_environment> {
122122
pcc_vmctx_memtype: Option<ir::MemoryType>,
123123

124124
/// Caches of signatures for builtin functions.
125-
pub(crate) builtin_functions: BuiltinFunctions,
125+
builtin_functions: BuiltinFunctions,
126126

127127
/// Offsets to struct fields accessed by JIT code.
128128
pub(crate) offsets: VMOffsets<u8>,
129129

130-
pub(crate) tunables: &'module_environment Tunables,
130+
tunables: &'module_environment Tunables,
131131

132132
/// A function-local variable which stores the cached value of the amount of
133133
/// fuel remaining to execute. If used this is modified frequently so it's

0 commit comments

Comments
 (0)