This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [FYI] Allow empty struct expressions in Rust
- From: Tom Tromey <tom at tromey dot com>
- To: Tom Tromey <tom at tromey dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 21 Jul 2016 15:14:30 -0600
- Subject: Re: [FYI] Allow empty struct expressions in Rust
- Authentication-results: sourceware.org; auth=none
- References: <1468271438-5389-1-git-send-email-tom@tromey.com>
>>>>> "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