[Rust] Add length checks to arrays and vectors. (#7130)

* [Rust] Add length checks to arrays and vectors.

The previous behavior allowed for out of bounds access in
the public API (#7011).

* bump semver and test warning

Co-authored-by: Casper Neo <cneo@google.com>
This commit is contained in:
Casper
2022-02-24 13:49:59 -05:00
committed by GitHub
parent c9571d9897
commit 3d903302c3
4 changed files with 6 additions and 5 deletions

View File

@@ -61,7 +61,8 @@ mod optional_scalars_generated;
#[path = "../../arrays_test/mod.rs"]
mod arrays_test_generated;
#[allow(dead_code, unused_imports)]
// We use incorrect casing to test keywords.
#[allow(dead_code, unused_imports, non_camel_case_types, non_snake_case)]
#[path = "../../keyword_test/mod.rs"]
mod keyword_test_generated;