From patchwork Mon Sep 30 16:36:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 34731 Received: (qmail 45772 invoked by alias); 30 Sep 2019 16:36:40 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 45735 invoked by uid 89); 30 Sep 2019 16:36:39 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-23.6 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy=UD:rs, HContent-Transfer-Encoding:8bit X-HELO: rock.gnat.com Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 30 Sep 2019 16:36:37 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 44AB1117EE1; Mon, 30 Sep 2019 12:36:33 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id J8ylfgqRkBjO; Mon, 30 Sep 2019 12:36:33 -0400 (EDT) Received: from murgatroyd.Home (75-166-72-156.hlrn.qwest.net [75.166.72.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by rock.gnat.com (Postfix) with ESMTPSA id E46BF11789E; Mon, 30 Sep 2019 12:36:32 -0400 (EDT) From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [FYI] Disable all warnings in gdb.rust/traits.rs Date: Mon, 30 Sep 2019 10:36:29 -0600 Message-Id: <20190930163629.9824-1-tromey@adacore.com> MIME-Version: 1.0 With rustc 1.37, I started seeing compiler warnings from the traits.rs test case: warning: trait objects without an explicit `dyn` are deprecated It seems to me that we generally do not want warnings in these test cases. At some point, we'll probably have to patch traits.rs to use the "dyn" keyword; by that time I expect that all the Rust compilers in common use will support it. In the meantime it seemed simplest to simply disable all warnings in this file. gdb/testsuite/ChangeLog 2019-09-30 Tom Tromey * gdb.rust/traits.rs: Disable all warnings. --- gdb/testsuite/ChangeLog | 4 ++++ gdb/testsuite/gdb.rust/traits.rs | 4 +--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/gdb/testsuite/gdb.rust/traits.rs b/gdb/testsuite/gdb.rust/traits.rs index 3908a5c58f9..c8d61156b35 100644 --- a/gdb/testsuite/gdb.rust/traits.rs +++ b/gdb/testsuite/gdb.rust/traits.rs @@ -13,9 +13,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#![allow(dead_code)] -#![allow(unused_variables)] -#![allow(unused_assignments)] +#![allow(warnings)] pub trait T { }