From: Tom Tromey Date: Wed, 1 Apr 2020 20:02:08 +0000 (-0600) Subject: Remove local variable from simple.rs test case X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e033dfa92f844849cc528649eee24d2b0b3f22e5;p=binutils-gdb.git 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 * gdb.rust/simple.rs (main): Remove "y0". --- 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 + + * gdb.rust/simple.rs (main): Remove "y0". + 2020-04-01 Tankut Baris Aktemur * 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);