]> git.ipfire.org Git - thirdparty/gcc.git/commit
Avoid accidental insertion into map
authorOwen Avery <powerboat9.gamer@gmail.com>
Thu, 5 Sep 2024 23:44:55 +0000 (19:44 -0400)
committerP-E-P <32375388+P-E-P@users.noreply.github.com>
Sat, 7 Sep 2024 20:49:52 +0000 (20:49 +0000)
commit14528a8cf094ac4bc79a86d75d409e9afebe37ff
tree4a2783f9c32e9666b6553e9c97fb5c6c531bf466
parent84f772c15bca5f0ac589be5df67918b5fc141bc8
Avoid accidental insertion into map

gcc/rust/ChangeLog:

* resolve/rust-ast-resolve-pattern.cc
(PatternDeclaration::check_bindings_consistency): Check if
outer_bindings_map contains an entry before indexing.

Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
gcc/rust/resolve/rust-ast-resolve-pattern.cc