Lukas Wirth
|
2c94c4964a
|
Parse const effect block
|
2020-12-23 02:15:44 +01:00 |
|
Lukas Wirth
|
03a9bbacf2
|
Parse ConstBlockPat
|
2020-12-23 01:49:43 +01:00 |
|
bors[bot]
|
9bb9fbab3a
|
Merge #6965
6965: Properly attach attributes to Param instead of parent ParamList r=matklad a=Veykril
Fixes #2783, fixes #2781
The problem with `let _a = [0,#[cfg(feature = "L")]0];` has already been fixed some time ago it seems:
<details>
<summary>Syntax Tree for the const item</summary>
```
LET_STMT@200..236
LET_KW@200..203 "let"
WHITESPACE@203..204 " "
IDENT_PAT@204..206
NAME@204..206
IDENT@204..206 "_a"
WHITESPACE@206..207 " "
EQ@207..208 "="
WHITESPACE@208..209 " "
ARRAY_EXPR@209..235
L_BRACK@209..210 "["
LITERAL@210..211
INT_NUMBER@210..211 "0"
COMMA@211..212 ","
LITERAL@212..234
ATTR@212..233
POUND@212..213 "#"
L_BRACK@213..214 "["
PATH@214..217
PATH_SEGMENT@214..217
NAME_REF@214..217
IDENT@214..217 "cfg"
TOKEN_TREE@217..232
L_PAREN@217..218 "("
IDENT@218..225 "feature"
WHITESPACE@225..226 " "
EQ@226..227 "="
WHITESPACE@227..228 " "
STRING@228..231 "\"L\""
R_PAREN@231..232 ")"
R_BRACK@232..233 "]"
INT_NUMBER@233..234 "0"
R_BRACK@234..235 "]"
SEMICOLON@235..236 ";"
```
</details>
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
|
2020-12-21 08:54:31 +00:00 |
|
Lukas Wirth
|
3ea4d43850
|
Properly parse legacy trait objects with leading ForType
|
2020-12-20 21:53:55 +01:00 |
|
Lukas Wirth
|
64caa027b8
|
Parse attributes in tuple expressions
|
2020-12-20 21:01:36 +01:00 |
|
Lukas Wirth
|
4be9ed675e
|
Properly attach attributes to Param instead of parent ParamList
|
2020-12-20 20:30:18 +01:00 |
|
Lukas Wirth
|
dd496223f5
|
Node-ify lifetimes
|
2020-12-16 14:16:09 +01:00 |
|
Jonas Schievink
|
c1cb595382
|
Move to upstream macro_rules! model
|
2020-12-15 15:37:37 +01:00 |
|
Lukas Wirth
|
a1c8bdecfd
|
Use items can also have doc comments
|
2020-12-04 17:09:40 +01:00 |
|
David Tolnay
|
8a11da40a7
|
Parse unsafe extern block
|
2020-11-22 20:44:56 -08:00 |
|
Aleksey Kladov
|
a27186636d
|
Fix attachment of inner doc comments
|
2020-11-12 12:09:12 +01:00 |
|
Aleksey Kladov
|
5ba4f949c2
|
Kill RAW_ literals
Syntactically, they are indistinguishable from non-raw versions, so it
doesn't make sense to separate then *at the syntax* level.
|
2020-11-06 22:23:14 +01:00 |
|
Arif Roktim
|
0a9ff04270
|
Don't interpret type path as part of visibility.
|
2020-10-24 02:20:45 -04:00 |
|
Lukas Wirth
|
6f38552edb
|
Add validation check for ambiguous trait objects
|
2020-10-06 23:52:00 +02:00 |
|
Pavan Kumar Sunkara
|
4d97f5f037
|
Rename record_field_pat to record_pat_field
|
2020-09-10 18:56:04 +02:00 |
|
Aleksey Kladov
|
18b667cfcb
|
Complete pub in fields
|
2020-08-25 17:22:23 +02:00 |
|
Aleksey Kladov
|
ef462ed6af
|
Better recovery in use foo::;
|
2020-08-13 18:50:21 +02:00 |
|
Aleksey Kladov
|
6bc2633c90
|
Align parser names with grammar
|
2020-08-13 17:59:27 +02:00 |
|
Aleksey Kladov
|
a1c187eef3
|
Rename ra_syntax -> syntax
|
2020-08-12 18:30:53 +02:00 |
|