This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [FYI] Allow empty struct expressions in Rust


>>>>> "Tom" == Tom Tromey <tom@tromey.com> writes:

Tom> I learned recently that empty struct expressions, like "X{}", have been
Tom> promoted from experimental to stable in Rust.  This patch changes the
Tom> Rust expression parser to allow this case.

Tom> New test case included.
Tom> Built and regtested on x86-64 Fedora 23, using Rust 1.11 beta.

Tom> I plan to check this in after a reasonable interval.

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

Tom> 	* rust-lang.c (rust_tuple_struct_type_p): Return false for empty
Tom> 	structs.
Tom> 	* rust-exp.y (struct_expr_list): Allow empty elements.

I'm checking this in now.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]