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 /gdb/testsuite/gdb.rust/simple.rs | |
parent | 53cccef118b80913d76c0737108f6c32471cd09e (diff) | |
download | binutils-e033dfa92f844849cc528649eee24d2b0b3f22e5.zip binutils-e033dfa92f844849cc528649eee24d2b0b3f22e5.tar.gz binutils-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".
Diffstat (limited to 'gdb/testsuite/gdb.rust/simple.rs')
-rw-r--r-- | gdb/testsuite/gdb.rust/simple.rs | 1 |
1 files changed, 0 insertions, 1 deletions
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); |