Remove some cleanups from the rust code
authorTom Tromey <tom@tromey.com>
Wed, 9 Nov 2016 03:32:50 +0000 (20:32 -0700)
committerTom Tromey <tom@tromey.com>
Sat, 12 Nov 2016 17:34:47 +0000 (10:34 -0700)
commit8001f1183f32d674fa3e9af1cca16856afdffc3e
treee6a20d7f11303ceb1c3bd6825d80ec5d13a61e78
parentd93f4d96bb0fb307db9e2dade38ddb3c6bc469ca
Remove some cleanups from the rust code

This removes some cleanups from the rust code, in favor of C++ objects
with destructors.

2016-11-12  Tom Tromey  <tom@tromey.com>

* rust-exp.y (super_name): Use std::vector.
(lex_number): Use std::string.
(convert_params_to_types): Return std::vector.
(convert_ast_to_type, convert_name): Update.
* rust-lang.c (rust_get_disr_info): Use unique_xmalloc_ptr.
gdb/ChangeLog
gdb/rust-exp.y
gdb/rust-lang.c