]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix a small bug in gdb.rust/simple.rs
authorTom Tromey <tom@tromey.com>
Wed, 29 Aug 2018 17:08:46 +0000 (11:08 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 31 Aug 2018 19:01:44 +0000 (13:01 -0600)
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.

2018-08-31  Tom Tromey  <tom@tromey.com>

* gdb.rust/simple.rs: Rename second variable "v".

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.rust/simple.rs

index d4510bcad97f882188452833815df720a43577b7..35173f0df58b4251e5d7e199c03fa99956576807 100644 (file)
@@ -1,3 +1,7 @@
+2018-08-31  Tom Tromey  <tom@tromey.com>
+
+       * gdb.rust/simple.rs: Rename second variable "v".
+
 2018-08-24  Kevin Buettner  <kevinb@redhat.com>
 
        * gdb.dwarf2/dw2-ranges-func.c: New file.
index 9d89361b75391b5da07b8526f7e7f67c8f652be7..1bcc030d608cfc9d9844f88a684d0261b641019c 100644 (file)
@@ -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));