From 5e879962757e1f00545f25a502d9c3de5b97bdf5 Mon Sep 17 00:00:00 2001 From: Benjamin Bouvier Date: Thu, 10 Oct 2019 21:19:53 +0200 Subject: [PATCH] [wasm] Make the WasmTypeMap constructor public; (#1125) --- cranelift/wasm/src/environ/spec.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cranelift/wasm/src/environ/spec.rs b/cranelift/wasm/src/environ/spec.rs index 87607755e4..499483116f 100644 --- a/cranelift/wasm/src/environ/spec.rs +++ b/cranelift/wasm/src/environ/spec.rs @@ -115,8 +115,9 @@ pub struct WasmTypesMap { } impl WasmTypesMap { - pub(crate) fn new() -> Self { - WasmTypesMap { + /// Creates a new type map. + pub fn new() -> Self { + Self { inner: PrimaryMap::new(), } }