about summary refs log tree commit diff
path: root/src/libstd/thread
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-09-13 13:09:22 +0000
committerbors <bors@rust-lang.org>2015-09-13 13:09:22 +0000
commit9040b06ed28d37022d7c5135a6809aba951a243e (patch)
treea149621f28ca9bc64f653523421b664585177a77 /src/libstd/thread
parentfd230ff12481ebeba720fb1ac1f610d93bb74920 (diff)
parentc87a58fe4b5c2f64ecd1ad3697bdb0403c76af4c (diff)
downloadrust-9040b06ed28d37022d7c5135a6809aba951a243e.tar.gz
rust-9040b06ed28d37022d7c5135a6809aba951a243e.zip
Auto merge of #28286 - matklad:remove-dead-code, r=eddyb
There is a dead code in libsyntax/parser/parse.rs, when parsing structs.

Two functions are involved:

* [parse_item_struct](https://github.com/rust-lang/rust/blob/cd9c9f048f6aa0be091cd9835771ba0712bead4e/src/libsyntax/parse/parser.rs#L4691)
* [parse_tuple_struct_body](https://github.com/rust-lang/rust/blob/cd9c9f048f6aa0be091cd9835771ba0712bead4e/src/libsyntax/parse/parser.rs#L4769)

The problem is that both functions handle the case with unit structs. But because
`parse_tuple_struct_body` is called from `parse_item_struct`, it never faces
this case.

This PR removes unit struct case from `parse_tuple_struct_body` function. I tested with `make -j8 check-statge1`.
Diffstat (limited to 'src/libstd/thread')
0 files changed, 0 insertions, 0 deletions