This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 8.2+trunk 1/2] Fix a small bug in gdb.rust/simple.rs
- From: Tom Tromey <tom at tromey dot com>
- To: gdb-patches at sourceware dot org
- Cc: Tom Tromey <tom at tromey dot com>
- Date: Fri, 31 Aug 2018 08:53:01 -0600
- Subject: [PATCH 8.2+trunk 1/2] Fix a small bug in gdb.rust/simple.rs
- References: <20180831145302.14493-1-tom@tromey.com>
I noticed that gdb.rust/simple.rs had two local variables named "v".
This didn't previous cause problems, but with a newer rust compiler
this resulted in a test failure. (It should have failed all along, so
I suppose earlier passes were due to a compiler bug.)
This patch renames the second variable.
gdb/testsuite/ChangeLog
2018-08-31 Tom Tromey <tom@tromey.com>
* gdb.rust/simple.rs: Rename second variable "v".
---
gdb/testsuite/ChangeLog | 4 ++++
gdb/testsuite/gdb.rust/simple.rs | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 23a41d4bd7..91ab0da1f2 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2018-08-31 Tom Tromey <tom@tromey.com>
+
+ * gdb.rust/simple.rs: Rename second variable "v".
+
2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
* gdb.base/funcargs.c (use_a): New function.
diff --git a/gdb/testsuite/gdb.rust/simple.rs b/gdb/testsuite/gdb.rust/simple.rs
index 9d89361b75..1bcc030d60 100644
--- a/gdb/testsuite/gdb.rust/simple.rs
+++ b/gdb/testsuite/gdb.rust/simple.rs
@@ -166,7 +166,7 @@ fn main () {
};
let u = Union { f2: 255 };
- let v = SimpleLayout { f1: 8, f2: 9 };
+ let simplelayout = SimpleLayout { f1: 8, f2: 9 };
println!("{}, {}", x.0, x.1); // set breakpoint here
println!("{}", diff2(92, 45));
--
2.17.1