gdb: simplify vector construction in eval_op_rust_array
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 30 Aug 2023 15:21:20 +0000 (11:21 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Wed, 30 Aug 2023 18:32:11 +0000 (14:32 -0400)
commit7c651c5fe6de738b0ce9b5b89568fde84eade807
tree38ff0d783f3a9f0fe7783f588b0cd10977bda35e
parent0c164d29d11cdb71e29aca3e6bf352100ce6b6b6
gdb: simplify vector construction in eval_op_rust_array

Replace the manual fill of the vector with the appropriate std::vector
constructor that makes N copies of the provided value.

Change-Id: I579570748c48f53d35024105269d83c716294746
Approved-By: Tom Tromey <tom@tromey.com>
gdb/rust-lang.c