From: Tom Tromey Date: Wed, 29 Aug 2018 17:08:46 +0000 (-0600) Subject: Fix a small bug in gdb.rust/simple.rs X-Git-Tag: gdb-8.2-release~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7b93bc4c624821352ce32734c89589102eaded87;p=thirdparty%2Fbinutils-gdb.git Fix a small bug in gdb.rust/simple.rs 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 * gdb.rust/simple.rs: Rename second variable "v". --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index d4510bcad97..35173f0df58 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2018-08-31 Tom Tromey + + * gdb.rust/simple.rs: Rename second variable "v". + 2018-08-24 Kevin Buettner * gdb.dwarf2/dw2-ranges-func.c: New file. diff --git a/gdb/testsuite/gdb.rust/simple.rs b/gdb/testsuite/gdb.rust/simple.rs index 9d89361b753..1bcc030d608 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));