pub fn verify_script_dependencies(
    script: CompiledScript,
    dependencies: &[CompiledModule],
) -> (CompiledScript, Vec<VerificationError>) {
    let fake_module = script.into_module();
    let (fake_module, errors) = verify_module_dependencies(fake_module, dependencies);
    let script = fake_module.into_script();
    (script, errors)
}
/// Verifying the dependencies of a script follows the same recipe as `VerifiedScript::new`
/// ---convert to a module and invoke verify_module_dependencies. Each dependency of 'script' is
/// looked up in 'dependencies'.  If not found, an error is included in the returned list of errors.
/// If found, usage of types and functions of the dependency in 'script' is checked against the
/// declarations in the found module and mismatch errors are returned.
Verifying the dependencies of a script follows the same recipe as `VerifiedScript::new`
convert to a module and invoke verify_module_dependencies. Each dependency of 'script' is
looked up in 'dependencies'.  If not found, an error is included in the returned list of errors.
If found, usage of types and functions of the dependency in 'script' is checked against the
declarations in the found module and mismatch errors are returned.
Verifying the dependencies of a script follows the same recipe as ` VerifiedScript :: new ` convert to a module and invoke verify_module_dependencies . Each dependency of ' script ' is looked up in ' dependencies ' . If not found an error is included in the returned list of errors . If found usage of types and functions of the dependency in ' script ' is checked against the declarations in the found module and mismatch errors are returned .
pub fn verify_script_dependencies(
    script: CompiledScript,
    dependencies: &[CompiledModule],
) -> (CompiledScript, Vec<VerificationError>) {
    let fake_module = script.into_module();
    let (fake_module, errors) = verify_module_dependencies(fake_module, dependencies);
    let script = fake_module.into_script();
    (script, errors)
}
pub fn verify_script_dependencies ( script : CompiledScript , dependencies : & [ CompiledModule ] , ) -> ( CompiledScript , Vec < VerificationError > ) { let fake_module = script . into_module ( ) ; let ( fake_module , errors ) = verify_module_dependencies ( fake_module , dependencies ) ; let script = fake_module . into_script ( ) ; ( script , errors ) }
Verifying the dependencies of a script follows the same recipe as `VerifiedScript::new`
convert to a module and invoke verify_module_dependencies.
Verifying the dependencies of a script follows the same recipe as ` VerifiedScript :: new ` convert to a module and invoke verify_module_dependencies .
script
CompiledScript
dependencies
&[CompiledModule]
script
CompiledScript
dependencies
&[CompiledModule]