Caio
299d696b91
Stabilize param_attrs
in Rust 1.39.0
2019-09-11 10:13:43 -03:00
Caio
63a5f399ae
Resolve attributes in several places
...
Arm, Field, FieldPat, GenericParam, Param, StructField and Variant
2019-09-09 09:27:15 -03:00
Alexander Regueiro
553a56dd98
Apply suggestions from code review
2019-09-07 16:29:04 +01:00
Alexander Regueiro
49d2fd1725
Aggregation of cosmetic changes made during work on REPL PRs: libsyntax
2019-09-07 16:29:04 +01:00
Mazdak Farrokhzad
fae7bc756e
Rollup merge of #64192 - estebank:turbofish-madness, r=petrochenkov
...
Bail out when encountering likely missing turbofish in parser
When encountering a likely intended turbofish without `::`, bubble
up the diagnostic instead of emitting it to allow the parser to recover
more gracefully and avoid uneccessary type errors that are likely to be
wrong.
Fix #61329 .
2019-09-07 08:06:09 +02:00
Mazdak Farrokhzad
afb6a7002d
Rollup merge of #64202 - alexreg:rush-pr-1, r=Centril
...
Fixed grammar/style in some error messages
Factored out from hacking on rustc for work on the REPL.
r? @Centril
2019-09-06 19:00:49 +02:00
Alexander Regueiro
022d9c8eb5
Fixed grammar/style in error messages and reblessed tests.
2019-09-06 03:46:08 +01:00
Esteban Küber
afcf9b262d
Bail out when encountering likely missing turbofish in parser
...
When encountering a likely intended turbofish without `::`, bubble
up the diagnostic instead of emitting it to allow the parser to recover
more gracefully and avoid uneccessary type errors that are likely to be
wrong.
2019-09-05 13:18:05 -07:00
Mazdak Farrokhzad
ad3db726d1
or-patterns: syntax: adjust parser removing a hack.
...
Fuse `parse_top_pat` and `parse_top_pat_unpack` into just `parse_top_pat`.
2019-09-05 08:33:09 +02:00
Nicholas Nethercote
8c74eb7790
Move path parsing earlier.
...
It's a hot enough path that moving it slightly earlier gives a tiny but
easy speedup.
2019-09-03 20:15:07 +10:00
Kevin Per
e0ce9f8c0a
Cleanup: Consistently use Param
instead of Arg
#62426
2019-08-27 14:07:41 +02:00
Mazdak Farrokhzad
1caaa40768
parser: gracefully handle fn foo(A | B: type)
.
2019-08-25 05:45:19 +02:00
Mazdak Farrokhzad
b2966e651d
parser: bool -> GateOr.
2019-08-24 22:29:57 +02:00
Mazdak Farrokhzad
95792b4d5a
parser: let
stmts & for
exprs: allow or-patterns.
2019-08-24 21:53:55 +02:00
Mazdak Farrokhzad
b7178ef983
parser: parse_pats
-> parse_top_pat{_unpack}
.
2019-08-24 21:53:55 +02:00
Mazdak Farrokhzad
777a12c3a4
Use dedicated type for spans in pre-expansion gating.
2019-08-20 20:26:37 +02:00
Mazdak Farrokhzad
4087fc583e
Feature gate 'yield ?' pre-expansion.
2019-08-16 19:24:15 +02:00
Vadim Petrochenkov
433b1e36e1
Remove Spanned
from ast::Mac
2019-08-15 11:45:28 +03:00
Mazdak Farrokhzad
d4ecc6f5c0
Rollup merge of #63542 - c410-f3r:node_ids, r=petrochenkov
...
Add NodeId for Arm, Field and FieldPat
Extracted from #63468
2019-08-14 22:56:28 +02:00
Mazdak Farrokhzad
a8bb3756b6
Rollup merge of #63530 - ehuss:typo-statemement, r=centril
...
Fix typo in error message.
2019-08-14 04:18:57 +02:00
Caio
9348af8396
Add NodeId for Arm, Field and FieldPat
2019-08-13 22:42:10 -03:00
Eric Huss
643ddfaaa8
Apply Centril's suggestion
...
Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
2019-08-13 15:09:11 -07:00
Eric Huss
ea1a9a0e2b
Fix typo in error message.
2019-08-13 11:21:09 -07:00
Ilija Tovilo
91af5c2daf
Bring back suggestion for splitting <-
into < -
...
Closes #62632
2019-08-12 10:46:34 +02:00
Mazdak Farrokhzad
d6d93b3d82
parser: move into stmt.rs
2019-08-11 20:32:29 +02:00
Mazdak Farrokhzad
28db7c5968
parser: move parse_fn_block_decl into expr.rs
2019-08-11 20:04:09 +02:00
Mazdak Farrokhzad
81e6b5094e
parser: split into expr.rs
2019-08-11 13:14:30 +02:00