From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1921 invoked by alias); 21 Jul 2016 21:14:52 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 1903 invoked by uid 89); 21 Jul 2016 21:14:51 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=learned, beta X-HELO: gproxy5-pub.mail.unifiedlayer.com Received: from gproxy5-pub.mail.unifiedlayer.com (HELO gproxy5-pub.mail.unifiedlayer.com) (67.222.38.55) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with SMTP; Thu, 21 Jul 2016 21:14:41 +0000 Received: (qmail 26260 invoked by uid 0); 21 Jul 2016 21:14:39 -0000 Received: from unknown (HELO cmgw2) (10.0.90.83) by gproxy5.mail.unifiedlayer.com with SMTP; 21 Jul 2016 21:14:39 -0000 Received: from box522.bluehost.com ([74.220.219.122]) by cmgw2 with id MZEa1t0082f2jeq01ZEdxb; Thu, 21 Jul 2016 15:14:37 -0600 X-Authority-Analysis: v=2.1 cv=KaJB72oD c=1 sm=1 tr=0 a=GsOEXm/OWkKvwdLVJsfwcA==:117 a=GsOEXm/OWkKvwdLVJsfwcA==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=PnD2wP_eR3oA:10 a=C6ZbYQPAFpEA:10 a=cAmyUtKerLwA:10 a=zstS-IiYAAAA:8 a=LMV5OOnI-z4sXl1DlYkA:9 a=4G6NA9xxw8l3yy4pmD5M:22 Received: from [75.171.160.169] (port=46550 helo=pokyo) by box522.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.86_2) (envelope-from ) id 1bQLIh-0004rQ-UW; Thu, 21 Jul 2016 15:14:36 -0600 From: Tom Tromey To: Tom Tromey Cc: gdb-patches@sourceware.org Subject: Re: [FYI] Allow empty struct expressions in Rust References: <1468271438-5389-1-git-send-email-tom@tromey.com> Date: Thu, 21 Jul 2016 21:14:00 -0000 In-Reply-To: <1468271438-5389-1-git-send-email-tom@tromey.com> (Tom Tromey's message of "Mon, 11 Jul 2016 15:10:38 -0600") Message-ID: <87lh0ulmmh.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.95 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Identified-User: {36111:box522.bluehost.com:elynrobi:tromey.com} {sentby:smtp auth 75.171.160.169 authed with tom+tromey.com} X-Exim-ID: 1bQLIh-0004rQ-UW X-Source-Sender: (pokyo) [75.171.160.169]:46550 X-Source-Auth: tom+tromey.com X-Email-Count: 0 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTIyLmJsdWVob3N0LmNvbQ== X-SW-Source: 2016-07/txt/msg00270.txt.bz2 >>>>> "Tom" == Tom Tromey 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> * 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