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".
This commit is contained in:
Tom Tromey 2020-04-01 14:02:08 -06:00
parent 53cccef118
commit e033dfa92f
2 changed files with 4 additions and 1 deletions

View file

@ -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.

View file

@ -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);