public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Remove local variable from simple.rs test case
@ 2020-04-01 20:08 Tom Tromey
0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2020-04-01 20:08 UTC (permalink / raw)
To: gdb-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=e033dfa92f844849cc528649eee24d2b0b3f22e5
commit e033dfa92f844849cc528649eee24d2b0b3f22e5
Author: Tom Tromey <tromey@adacore.com>
Date: Wed Apr 1 14:02:08 2020 -0600
Remove local variable from simple.rs test case
This removes the "y0" variable from simple.rs:main. This variable
isn't needed by the test case, and it uses a form of initialization
that was added in rust 1.17. Removing this makes it simpler to run
the gdb.rust tests against older versions of rustc.
gdb/testsuite/ChangeLog
2020-04-01 Tom Tromey <tromey@adacore.com>
* gdb.rust/simple.rs (main): Remove "y0".
Diff:
---
gdb/testsuite/ChangeLog | 4 ++++
gdb/testsuite/gdb.rust/simple.rs | 1 -
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 28d1bcfb1b0..7819e39b972 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2020-04-01 Tom Tromey <tromey@adacore.com>
+
+ * gdb.rust/simple.rs (main): Remove "y0".
+
2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
* gdb.multi/stop-all-on-exit.c: New test.
diff --git a/gdb/testsuite/gdb.rust/simple.rs b/gdb/testsuite/gdb.rust/simple.rs
index 36448ec45c6..f44e4affebd 100644
--- a/gdb/testsuite/gdb.rust/simple.rs
+++ b/gdb/testsuite/gdb.rust/simple.rs
@@ -144,7 +144,6 @@ fn main () {
let field1 = 77;
let field2 = 88;
- let y0 = HiBob { field1, field2 };
let univariant = Univariant::Foo {a : 1};
let univariant_anon = UnivariantAnon::Foo(1);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-04-01 20:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-01 20:08 [binutils-gdb] Remove local variable from simple.rs test case 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).