public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Disable all warnings in gdb.rust/traits.rs
@ 2019-09-30 16:36 Tom Tromey
  0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2019-09-30 16:36 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=4a56a5200793f7476991952afa61be11a6d2ed41

commit 4a56a5200793f7476991952afa61be11a6d2ed41
Author: Tom Tromey <tromey@adacore.com>
Date:   Mon Sep 30 10:33:39 2019 -0600

    Disable all warnings in gdb.rust/traits.rs
    
    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  <tromey@adacore.com>
    
    	* gdb.rust/traits.rs: Disable all warnings.

Diff:
---
 gdb/testsuite/ChangeLog          | 4 ++++
 gdb/testsuite/gdb.rust/traits.rs | 4 +---
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 104303f..8420c39 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2019-09-30  Tom Tromey  <tromey@adacore.com>
+
+	* gdb.rust/traits.rs: Disable all warnings.
+
 2019-09-29  Tom de Vries  <tdevries@suse.de>
 
         * gdb.dwarf2/gdb-index.exp: Handle new location of .dwz file.
diff --git a/gdb/testsuite/gdb.rust/traits.rs b/gdb/testsuite/gdb.rust/traits.rs
index 3908a5c..c8d6115 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 <http://www.gnu.org/licenses/>.
 
-#![allow(dead_code)]
-#![allow(unused_variables)]
-#![allow(unused_assignments)]
+#![allow(warnings)]
 
 pub trait T {
 }


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-09-30 16:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-30 16:36 [binutils-gdb] Disable all warnings in gdb.rust/traits.rs Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).