diff options
| author | bors <bors@rust-lang.org> | 2015-09-13 13:09:22 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-09-13 13:09:22 +0000 |
| commit | 9040b06ed28d37022d7c5135a6809aba951a243e (patch) | |
| tree | a149621f28ca9bc64f653523421b664585177a77 /src/libstd/thread | |
| parent | fd230ff12481ebeba720fb1ac1f610d93bb74920 (diff) | |
| parent | c87a58fe4b5c2f64ecd1ad3697bdb0403c76af4c (diff) | |
| download | rust-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
