bors[bot] 1e8d1e84b2
Merge #10689
10689: Handle pub tuple fields in tuple structs r=Veykril a=adamrk

The current implementation will throw a parser error for tuple structs
that contain a pub tuple field. For example,
```rust
struct Foo(pub (u32, u32));
```
is valid Rust, but rust-analyzer will throw a parser error.  This is
because the parens after `pub` is treated as a visibility context.
Allowing a tuple type to follow `pub` in the special case when we are
defining fields in a tuple struct can fix the issue.

I guess this is a really minor case because there's not much reason
for having a tuple type within a struct tuple, but it is valid rust syntax...

Co-authored-by: Adam Bratschi-Kaye <ark.email@gmail.com>
2021-11-10 21:08:51 +00:00
..
2021-10-23 15:07:11 +03:00
2021-11-10 18:26:18 +01:00
2021-11-05 15:06:37 +00:00
2021-11-10 17:27:24 +00:00
2021-11-04 05:52:05 +00:00
2021-11-10 18:26:18 +01:00
2021-11-07 11:02:39 +00:00
2021-10-23 15:07:11 +03:00
2021-11-03 16:19:42 +00:00
2021-10-23 15:07:11 +03:00
2021-10-23 15:07:11 +03:00
2021-11-04 05:52:05 +00:00
2021-10-23 15:07:11 +03:00
2021-10-23 15:07:11 +03:00
2021-11-10 21:08:51 +00:00
2021-10-23 15:07:11 +03:00
2021-10-23 15:07:11 +03:00
2021-10-23 15:07:11 +03:00
2021-10-23 15:07:11 +03:00
2021-10-23 15:07:11 +03:00