From 7a1ddc0b5a7e33ee7aef77307c012dcba6ab808b Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Mon, 29 Jul 2019 12:01:16 -0700 Subject: [PATCH] Rename validate to validate_with_features. --- lib/runtime-core/src/codegen.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/runtime-core/src/codegen.rs b/lib/runtime-core/src/codegen.rs index 0641fae84..66fe50c41 100644 --- a/lib/runtime-core/src/codegen.rs +++ b/lib/runtime-core/src/codegen.rs @@ -150,7 +150,7 @@ pub fn validating_parser_config(features: &Features) -> wasmparser::ValidatingPa } } -fn validate(bytes: &[u8], features: &Features) -> CompileResult<()> { +fn validate_with_features(bytes: &[u8], features: &Features) -> CompileResult<()> { let mut parser = wasmparser::ValidatingParser::new(bytes, Some(validating_parser_config(features))); loop { @@ -180,7 +180,7 @@ impl< _: Token, ) -> CompileResult { if requires_pre_validation(MCG::backend_id()) { - validate(wasm, &compiler_config.features)?; + validate_with_features(wasm, &compiler_config.features)?; } let mut mcg = MCG::new();