rust-analyzer/crates
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
..
base_db Expose version string of crates fom HIR 2021-11-03 15:40:06 +01:00
cfg Replace some String usages with SmolStr in completions 2021-11-05 12:30:39 +01:00
flycheck Set MSRV 2021-10-23 15:07:11 +03:00
hir Simplify 2021-11-10 18:26:18 +01:00
hir_def Do not search through all three namespaces in ItemScope::name_of 2021-11-10 16:08:40 +01:00
hir_expand Merge #10704 2021-11-05 15:06:37 +00:00
hir_ty Merge #10739 2021-11-10 17:27:24 +00:00
ide Fix proc-macro attributes being shadowed by their functions in IDE layer 2021-11-08 14:49:50 +01:00
ide_assists Merge #10691 2021-11-04 05:52:05 +00:00
ide_completion Simplify 2021-11-10 18:26:18 +01:00
ide_db Fix proc-macro attributes being shadowed by their functions in IDE layer 2021-11-08 14:49:50 +01:00
ide_diagnostics Replace more Name::to_string usages with Name::to_smol_str 2021-11-04 18:12:05 +01:00
ide_ssr Merge #10698 2021-11-07 11:02:39 +00:00
limit Drop resolver and authors manifest entries 2021-10-25 18:12:40 +03:00
mbe internal: replace L_DOLLAR/R_DOLLAR with parenthesis hack 2021-10-23 20:44:31 +03:00
parser Handle pub tuple fields in tuple structs 2021-11-10 21:29:50 +01:00
paths Set MSRV 2021-10-23 15:07:11 +03:00
proc_macro_api Bump object avoid a duplicate dependency 2021-10-30 09:02:45 +03:00
proc_macro_srv Merge #10680 2021-11-03 16:19:42 +00:00
proc_macro_test Set MSRV 2021-10-23 15:07:11 +03:00
profile Set MSRV 2021-10-23 15:07:11 +03:00
project_model Merge #10691 2021-11-04 05:52:05 +00:00
rust-analyzer fix: show the right check-command 2021-11-09 21:52:55 +01:00
sourcegen Set MSRV 2021-10-23 15:07:11 +03:00
stdx Set MSRV 2021-10-23 15:07:11 +03:00
syntax Merge #10689 2021-11-10 21:08:51 +00:00
test_utils Set MSRV 2021-10-23 15:07:11 +03:00
text_edit Update crates/text_edit/src/lib.rs 2021-11-03 15:44:46 +01:00
toolchain Set MSRV 2021-10-23 15:07:11 +03:00
tt Set MSRV 2021-10-23 15:07:11 +03:00
vfs Set MSRV 2021-10-23 15:07:11 +03:00
vfs-notify Set MSRV 2021-10-23 15:07:11 +03:00