diff options
author | Tom Tromey <tromey@adacore.com> | 2020-04-01 14:02:08 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2020-04-01 14:08:17 -0600 |
commit | e033dfa92f844849cc528649eee24d2b0b3f22e5 (patch) | |
tree | b30535f60317bee6b8f70f5bb29f85d24fc7e8d9 | |
parent | 53cccef118b80913d76c0737108f6c32471cd09e (diff) | |
download | fsf-binutils-gdb-e033dfa92f844849cc528649eee24d2b0b3f22e5.zip fsf-binutils-gdb-e033dfa92f844849cc528649eee24d2b0b3f22e5.tar.gz fsf-binutils-gdb-e033dfa92f844849cc528649eee24d2b0b3f22e5.tar.bz2 |
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".
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.rust/simple.rs | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 28d1bcf..7819e39 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -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. diff --git a/gdb/testsuite/gdb.rust/simple.rs b/gdb/testsuite/gdb.rust/simple.rs index 36448ec..f44e4af 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); |