Mazdak Farrokhzad
e43a7ef1d4
simplify parse_prefix_range_expr
2019-12-23 13:55:10 +01:00
Mazdak Farrokhzad
8456c403e1
extract parse_not_expr
2019-12-23 13:55:04 +01:00
Mazdak Farrokhzad
efdea63c43
extract parse_prefix_expr
2019-12-23 13:51:21 +01:00
Mazdak Farrokhzad
4cfcfe9e20
extract parse_neg_expr
2019-12-23 13:51:02 +01:00
Mazdak Farrokhzad
f6ab439436
extract parse_deref_expr
2019-12-23 13:50:56 +01:00
Mazdak Farrokhzad
ada388b2b8
extract is_mistaken_not_ident_negation
2019-12-23 13:50:50 +01:00
Mazdak Farrokhzad
80eeefb05f
extract recover_not_expr
2019-12-23 13:49:14 +01:00
Mazdak Farrokhzad
00cc8a1b0c
simplify parse_assoc_op_cast
2019-12-23 13:48:47 +01:00
Mazdak Farrokhzad
84f9bf1a06
refactor parse_address_of -> parse_borrow_expr
2019-12-23 13:48:45 +01:00
Mazdak Farrokhzad
af5ac23a23
simplify parse_dot_call_or_expr
2019-12-23 13:47:52 +01:00
Mazdak Farrokhzad
7ae12c9385
extract parse_dot_base_expr
2019-12-23 13:47:44 +01:00
Mazdak Farrokhzad
bc95228f1b
extract parse_dot_suffix_expr
2019-12-23 13:45:45 +01:00
Mazdak Farrokhzad
9c6bbf1252
extract error_unexpected_after_dot and de-fatalize
2019-12-23 13:45:13 +01:00
Mazdak Farrokhzad
ff5762b78a
extract recover_field_access_by_float_lit
2019-12-23 13:44:38 +01:00
Mazdak Farrokhzad
a15d0cde57
extract parse_tuple_field_access_expr
2019-12-23 13:44:12 +01:00
Mazdak Farrokhzad
287ba5d0c8
extract parse_fn_call_expr
2019-12-23 13:44:06 +01:00
Mazdak Farrokhzad
98701b2c61
extract parse_index_expr & refactor parse_dot_suffix
2019-12-23 13:44:02 +01:00
Mazdak Farrokhzad
0bb3dad5a6
extract error_float_lits-must_have_int_part
2019-12-23 13:43:35 +01:00
Mazdak Farrokhzad
aa8adba8fb
simplify parse_literal_maybe_minus
2019-12-23 13:43:28 +01:00
Mazdak Farrokhzad
f647c11121
simplify parse_fn_block_decl
2019-12-23 13:43:21 +01:00
Mazdak Farrokhzad
ad6f91a422
refactor parse_fn_block_param
2019-12-23 13:42:55 +01:00
Mazdak Farrokhzad
7bcc325034
refactor parse_if_expr
2019-12-23 13:42:49 +01:00
Mazdak Farrokhzad
44ff4df49d
more recovery in if-parsing
2019-12-23 13:42:25 +01:00
Mazdak Farrokhzad
7262dcc4a7
refactor loop parsing a bit
2019-12-23 13:42:21 +01:00
Mazdak Farrokhzad
de2e443bc6
make parse_async_block conventional
2019-12-23 13:41:59 +01:00
Mazdak Farrokhzad
f6e2bdc341
extract is_certainly_not_a_block
2019-12-23 13:41:55 +01:00
varkor
9e5081394c
Fix reformatting rebase issues
2019-12-23 12:39:48 +00:00
Mazdak Farrokhzad
66b8ae4bce
extract error_struct_lit_not_allowed_here
2019-12-23 13:34:06 +01:00
Mazdak Farrokhzad
701b974eb9
extract find_struct_error_after_field_looking_code
2019-12-23 13:32:55 +01:00
Mazdak Farrokhzad
8480b31ba9
extract recover_struct_comma_after_dotdot
2019-12-23 13:27:44 +01:00
Mazdak Farrokhzad
e77b9d36ca
refactor parse_field
2019-12-23 13:27:44 +01:00
Mazdak Farrokhzad
4bb83468a2
is_range_literal: leave FIXME
2019-12-23 13:11:15 +01:00
Mazdak Farrokhzad
dd7f49301e
is_range_literal: fix fallout
2019-12-23 13:11:10 +01:00
varkor
9a602243c4
Add new folder for destructuring assignment tests
2019-12-23 11:20:13 +00:00
varkor
35979a92bf
Add span information to ExprKind::Assign
2019-12-23 11:20:13 +00:00
varkor
5ab4735559
Recognise nested tuples/arrays/structs
2019-12-23 11:17:55 +00:00
varkor
5fa02ecc29
Add note about destructuring assignments
2019-12-23 11:17:55 +00:00
varkor
b7bfdbe681
Improve invalid assignment error
2019-12-23 11:16:51 +00:00
varkor
a5991c57cf
Add the full issue reference to equality constraints in where
clauses
2019-12-23 11:15:55 +00:00
Mazdak Farrokhzad
45acee3090
Move {hir::lowering -> hir}::is_range_literal
.
...
The function is never used inside lowering,
but only ever in external crates.
By moving it, we faciliate lowering as its own crate.
2019-12-23 12:03:22 +01:00
Oliver Scherer
5b8df34203
Update src/librustc_mir/interpret/place.rs
...
Co-Authored-By: Ralf Jung <post@ralfj.de>
2019-12-23 11:27:34 +01:00
Dylan DPC
256eec4ae0
Update E0124.md
2019-12-23 12:55:33 +05:30
Mark Mansi
05e3d20080
Refactor region error handling to be done by mirborrowckctx
2019-12-23 00:32:00 -06:00
Mark Rousskov
c205f6a06a
Remove mem::uninitalized from tests
...
This purges uses of uninitialized where possible from test cases. Some
are merely moved over to the equally bad pattern of
MaybeUninit::uninit().assume_init() but with an annotation that this is
"the best we can do".
2019-12-22 21:58:12 -05:00
bors
a916ac22b9
Auto merge of #67540 - Mark-Simulacrum:fmt-the-world, r=Centril
...
Format the world
This PR modifies the formatting infrastructure a bit in the first commit (to enable the forgotten 2018 edition), as well as removes most directories from the ignore list in rustfmt.toml. It then follows that up with the second commit which runs `x.py fmt` and formats the entire repository.
We continue to not format the test directory (`src/test`) because of interactions with pretty printing and, in part, because re-blessing all of those files is somewhat harder to review, so is best suited for a follow up PR in my opinion.
2019-12-23 02:47:52 +00:00
Mark Rousskov
0f24ccd21d
Change bound order in rustfmt test
...
It is unclear why this changed, but since it seems like a harmless
change, we're going to move forward with reformatting.
2019-12-22 21:46:51 -05:00
Mark Rousskov
3a6cd8e42b
temporary retry around msys2 install
2019-12-22 20:17:00 -05:00
Oliver Scherer
056dff5748
Fix ICE in mir interpretation
2019-12-23 01:24:11 +01:00
Mark Rousskov
86f12c110b
test fallout
2019-12-22 19:04:10 -05:00
Mark Rousskov
a06baa56b9
Format the world
2019-12-22 17:42:47 -05:00