rust/crates/ra_syntax/tests/data/parser/inline/ok
Ryan Cumming b01496538c Support attributes on array members
Array members are allow to have attributes such as `#[cfg]`.

This is a bit tricky as we don't know if the first expression is an
initializer or a member until we encounter a `;`. This reuses a trick
from `stmt` where we remember if we saw an attribute and then raise an
error if the first expression ends up being an initializer.

This isn't perfect as the error isn't correctly located on the attribute
or initializer; it ends up immediately after the `;`.
2019-06-30 18:36:54 +10:00
..
0001_trait_item_list.rs
0001_trait_item_list.txt always show token text 2019-04-02 14:49:46 +03:00
0002_use_tree_list.rs
0002_use_tree_list.txt always show token text 2019-04-02 14:49:46 +03:00
0003_where_pred_for.rs
0003_where_pred_for.txt always show token text 2019-04-02 14:49:46 +03:00
0004_value_parameters_no_patterns.rs
0004_value_parameters_no_patterns.txt always show token text 2019-04-02 14:49:46 +03:00
0005_function_type_params.rs
0005_function_type_params.txt always show token text 2019-04-02 14:49:46 +03:00
0006_self_param.rs
0006_self_param.txt always show token text 2019-04-02 14:49:46 +03:00
0007_type_param_bounds.rs
0007_type_param_bounds.txt always show token text 2019-04-02 14:49:46 +03:00
0008_path_part.rs
0008_path_part.txt always show token text 2019-04-02 14:49:46 +03:00
0009_loop_expr.rs
0009_loop_expr.txt always show token text 2019-04-02 14:49:46 +03:00
0010_extern_block.rs
0010_extern_block.txt always show token text 2019-04-02 14:49:46 +03:00
0011_field_expr.rs Parse and infer tuple indices 2019-04-06 01:07:35 +02:00
0011_field_expr.txt Parse and infer tuple indices 2019-04-06 01:07:35 +02:00
0012_type_item_where_clause.rs
0012_type_item_where_clause.txt always show token text 2019-04-02 14:49:46 +03:00
0013_pointer_type_mut.rs
0013_pointer_type_mut.txt always show token text 2019-04-02 14:49:46 +03:00
0014_never_type.rs
0014_never_type.txt always show token text 2019-04-02 14:49:46 +03:00
0015_continue_expr.rs
0015_continue_expr.txt always show token text 2019-04-02 14:49:46 +03:00
0016_unsafe_trait.rs
0016_unsafe_trait.txt always show token text 2019-04-02 14:49:46 +03:00
0017_array_type.rs
0017_array_type.txt always show token text 2019-04-02 14:49:46 +03:00
0018_arb_self_types.rs
0018_arb_self_types.txt always show token text 2019-04-02 14:49:46 +03:00
0019_unary_expr.rs
0019_unary_expr.txt always show token text 2019-04-02 14:49:46 +03:00
0020_use_star.rs
0020_use_star.txt always show token text 2019-04-02 14:49:46 +03:00
0021_impl_item_list.rs
0021_impl_item_list.txt always show token text 2019-04-02 14:49:46 +03:00
0022_crate_visibility.rs
0022_crate_visibility.txt always show token text 2019-04-02 14:49:46 +03:00
0023_placeholder_type.rs
0023_placeholder_type.txt always show token text 2019-04-02 14:49:46 +03:00
0024_slice_pat.rs
0024_slice_pat.txt always show token text 2019-04-02 14:49:46 +03:00
0025_slice_type.rs
0025_slice_type.txt always show token text 2019-04-02 14:49:46 +03:00
0026_tuple_pat_fields.rs
0026_tuple_pat_fields.txt always show token text 2019-04-02 14:49:46 +03:00
0027_ref_pat.rs
0027_ref_pat.txt always show token text 2019-04-02 14:49:46 +03:00
0028_impl_trait_type.rs
0028_impl_trait_type.txt always show token text 2019-04-02 14:49:46 +03:00
0029_cast_expr.rs Fix parsing <= in type_args 2019-03-30 13:52:47 +02:00
0029_cast_expr.txt always show token text 2019-04-02 14:49:46 +03:00
0030_cond.rs Add support for parsing multiple if and while-let patterns 2019-03-04 19:10:14 +02:00
0030_cond.txt always show token text 2019-04-02 14:49:46 +03:00
0031_while_expr.rs
0031_while_expr.txt always show token text 2019-04-02 14:49:46 +03:00
0032_fn_pointer_type.rs Add ... parsing for fn pointer type 2019-04-23 11:10:41 +08:00
0032_fn_pointer_type.txt Add ... parsing for fn pointer type 2019-04-23 11:10:41 +08:00
0033_reference_type;.rs
0033_reference_type;.txt always show token text 2019-04-02 14:49:46 +03:00
0034_break_expr.rs
0034_break_expr.txt always show token text 2019-04-02 14:49:46 +03:00
0036_unsafe_extern_fn.rs
0036_unsafe_extern_fn.txt always show token text 2019-04-02 14:49:46 +03:00
0037_qual_paths.rs
0037_qual_paths.txt always show token text 2019-04-02 14:49:46 +03:00
0038_full_range_expr.rs
0038_full_range_expr.txt always show token text 2019-04-02 14:49:46 +03:00
0039_type_arg.rs
0039_type_arg.txt always show token text 2019-04-02 14:49:46 +03:00
0040_crate_keyword_vis.rs Use Marker argument for item parsers 2019-03-18 14:34:08 +09:00
0040_crate_keyword_vis.txt always show token text 2019-04-02 14:49:46 +03:00
0041_trait_item.rs Update tests 2019-03-30 17:11:46 +02:00
0041_trait_item.txt always show token text 2019-04-02 14:49:46 +03:00
0042_call_expr.rs Support universal function call syntax in function calls 2019-01-24 21:19:16 +00:00
0042_call_expr.txt always show token text 2019-04-02 14:49:46 +03:00
0043_use_alias.rs allow aliases in underscores 2019-03-04 16:40:08 +03:00
0043_use_alias.txt always show token text 2019-04-02 14:49:46 +03:00
0044_block_items.rs
0044_block_items.txt always show token text 2019-04-02 14:49:46 +03:00
0045_param_list_opt_patterns.rs
0045_param_list_opt_patterns.txt always show token text 2019-04-02 14:49:46 +03:00
0046_singleton_tuple_type.rs
0046_singleton_tuple_type.txt always show token text 2019-04-02 14:49:46 +03:00
0047_unsafe_default_impl.rs
0047_unsafe_default_impl.txt always show token text 2019-04-02 14:49:46 +03:00
0048_path_type_with_bounds.rs Update tests 2019-03-31 10:39:23 +03:00
0048_path_type_with_bounds.txt always show token text 2019-04-02 14:49:46 +03:00
0050_fn_decl.rs
0050_fn_decl.txt always show token text 2019-04-02 14:49:46 +03:00
0051_unit_type.rs
0051_unit_type.txt always show token text 2019-04-02 14:49:46 +03:00
0052_path_type.rs
0052_path_type.txt always show token text 2019-04-02 14:49:46 +03:00
0053_path_expr.rs
0053_path_expr.txt always show token text 2019-04-02 14:49:46 +03:00
0054_field_attrs.rs
0054_field_attrs.txt always show token text 2019-04-02 14:49:46 +03:00
0055_literal_pattern.rs
0055_literal_pattern.txt always show token text 2019-04-02 14:49:46 +03:00
0056_where_clause.rs
0056_where_clause.txt always show token text 2019-04-02 14:49:46 +03:00
0057_const_fn.rs
0057_const_fn.txt always show token text 2019-04-02 14:49:46 +03:00
0058_range_pat.rs
0058_range_pat.txt always show token text 2019-04-02 14:49:46 +03:00
0059_match_arms_commas.rs
0059_match_arms_commas.txt always show token text 2019-04-02 14:49:46 +03:00
0060_extern_crate.rs
0060_extern_crate.txt always show token text 2019-04-02 14:49:46 +03:00
0061_struct_lit.rs
0061_struct_lit.txt always show token text 2019-04-02 14:49:46 +03:00
0062_mod_contents.rs
0062_mod_contents.txt always show token text 2019-04-02 14:49:46 +03:00
0063_impl_block_neg.rs
0063_impl_block_neg.txt always show token text 2019-04-02 14:49:46 +03:00
0064_if_expr.rs
0064_if_expr.txt always show token text 2019-04-02 14:49:46 +03:00
0065_dyn_trait_type.rs
0065_dyn_trait_type.txt always show token text 2019-04-02 14:49:46 +03:00
0066_match_arm.rs
0066_match_arm.txt always show token text 2019-04-02 14:49:46 +03:00
0067_crate_path.rs
0067_crate_path.txt always show token text 2019-04-02 14:49:46 +03:00
0068_union_items.rs
0068_union_items.txt always show token text 2019-04-02 14:49:46 +03:00
0069_use_tree_list_after_path.rs
0069_use_tree_list_after_path.txt always show token text 2019-04-02 14:49:46 +03:00
0070_stmt_bin_expr_ambiguity.rs
0070_stmt_bin_expr_ambiguity.txt always show token text 2019-04-02 14:49:46 +03:00
0071_match_expr.rs
0071_match_expr.txt always show token text 2019-04-02 14:49:46 +03:00
0072_return_expr.rs
0072_return_expr.txt always show token text 2019-04-02 14:49:46 +03:00
0073_type_item_type_params.rs
0073_type_item_type_params.txt always show token text 2019-04-02 14:49:46 +03:00
0074_stmt_postfix_expr_ambiguity.rs
0074_stmt_postfix_expr_ambiguity.txt always show token text 2019-04-02 14:49:46 +03:00
0075_block.rs
0075_block.txt always show token text 2019-04-02 14:49:46 +03:00
0076_function_where_clause.rs
0076_function_where_clause.txt always show token text 2019-04-02 14:49:46 +03:00
0077_try_expr.rs
0077_try_expr.txt always show token text 2019-04-02 14:49:46 +03:00
0078_type_item.rs
0078_type_item.txt always show token text 2019-04-02 14:49:46 +03:00
0079_impl_block.rs
0079_impl_block.txt always show token text 2019-04-02 14:49:46 +03:00
0080_postfix_range.rs
0080_postfix_range.txt always show token text 2019-04-02 14:49:46 +03:00
0081_for_type.rs Support references in higher-ranked trait bounds 2019-03-24 20:51:55 +02:00
0081_for_type.txt always show token text 2019-04-02 14:49:46 +03:00
0082_ref_expr.rs
0082_ref_expr.txt always show token text 2019-04-02 14:49:46 +03:00
0083_struct_items.rs
0083_struct_items.txt always show token text 2019-04-02 14:49:46 +03:00
0084_paren_type.rs
0084_paren_type.txt always show token text 2019-04-02 14:49:46 +03:00
0085_expr_literals.rs
0085_expr_literals.txt always show token text 2019-04-02 14:49:46 +03:00
0086_function_ret_type.rs
0086_function_ret_type.txt always show token text 2019-04-02 14:49:46 +03:00
0087_unsafe_impl.rs
0087_unsafe_impl.txt always show token text 2019-04-02 14:49:46 +03:00
0088_break_ambiguity.rs
0088_break_ambiguity.txt always show token text 2019-04-02 14:49:46 +03:00
0089_extern_fn.rs
0089_extern_fn.txt always show token text 2019-04-02 14:49:46 +03:00
0090_type_param_default.rs
0090_type_param_default.txt always show token text 2019-04-02 14:49:46 +03:00
0091_auto_trait.rs
0091_auto_trait.txt always show token text 2019-04-02 14:49:46 +03:00
0092_fn_pointer_type_with_ret.rs
0092_fn_pointer_type_with_ret.txt always show token text 2019-04-02 14:49:46 +03:00
0093_index_expr.rs
0093_index_expr.txt always show token text 2019-04-02 14:49:46 +03:00
0094_unsafe_auto_trait.rs
0094_unsafe_auto_trait.txt always show token text 2019-04-02 14:49:46 +03:00
0095_placeholder_pat.rs
0095_placeholder_pat.txt always show token text 2019-04-02 14:49:46 +03:00
0096_no_semi_after_block.rs
0096_no_semi_after_block.txt Refactor parser handle mult-char punct internally 2019-04-28 23:46:03 +08:00
0097_default_impl.rs
0097_default_impl.txt always show token text 2019-04-02 14:49:46 +03:00
0098_const_unsafe_fn.rs
0098_const_unsafe_fn.txt always show token text 2019-04-02 14:49:46 +03:00
0099_param_list.rs
0099_param_list.txt always show token text 2019-04-02 14:49:46 +03:00
0100_for_expr.rs
0100_for_expr.txt always show token text 2019-04-02 14:49:46 +03:00
0101_unsafe_fn.rs
0101_unsafe_fn.txt always show token text 2019-04-02 14:49:46 +03:00
0102_field_pat_list.rs
0102_field_pat_list.txt always show token text 2019-04-02 14:49:46 +03:00
0103_array_expr.rs
0103_array_expr.txt always show token text 2019-04-02 14:49:46 +03:00
0104_path_fn_trait_args.rs
0104_path_fn_trait_args.txt always show token text 2019-04-02 14:49:46 +03:00
0105_block_expr.rs
0105_block_expr.txt always show token text 2019-04-02 14:49:46 +03:00
0106_lambda_expr.rs Async closure syntax 2019-03-31 16:35:22 +02:00
0106_lambda_expr.txt always show token text 2019-04-02 14:49:46 +03:00
0107_method_call_expr.rs
0107_method_call_expr.txt always show token text 2019-04-02 14:49:46 +03:00
0108_tuple_expr.rs
0108_tuple_expr.txt always show token text 2019-04-02 14:49:46 +03:00
0109_label.rs
0109_label.txt always show token text 2019-04-02 14:49:46 +03:00
0110_use_path.rs
0110_use_path.txt always show token text 2019-04-02 14:49:46 +03:00
0111_tuple_pat.rs
0111_tuple_pat.txt always show token text 2019-04-02 14:49:46 +03:00
0112_bind_pat.rs fix: box_pattern 2019-06-19 14:28:50 +08:00
0112_bind_pat.txt fix: box_pattern 2019-06-19 14:28:50 +08:00
0113_nocontentexpr.rs
0113_nocontentexpr.txt always show token text 2019-04-02 14:49:46 +03:00
0114_tuple_struct_where.rs
0114_tuple_struct_where.txt always show token text 2019-04-02 14:49:46 +03:00
0115_pos_field_attrs.rs
0115_pos_field_attrs.txt always show token text 2019-04-02 14:49:46 +03:00
0116_trait_fn_placeholder_parameter.rs allow mut ident patterns in trait methods 2019-03-04 17:47:02 +03:00
0116_trait_fn_placeholder_parameter.txt always show token text 2019-04-02 14:49:46 +03:00
0117_macro_call_type.rs Support macro calls in type position 2019-01-25 23:56:31 +01:00
0117_macro_call_type.txt always show token text 2019-04-02 14:49:46 +03:00
0118_impl_inner_attributes.rs Correctly parse inner attributes of impl blocks 2019-01-27 14:55:03 +00:00
0118_impl_inner_attributes.txt always show token text 2019-04-02 14:49:46 +03:00
0118_match_guard.rs Infer type of match guard 2019-01-28 23:09:14 +01:00
0118_match_guard.txt always show token text 2019-04-02 14:49:46 +03:00
0120_match_arms_inner_attribute.rs Enable parsing of attributes inside a match block 2019-02-17 19:26:57 +02:00
0120_match_arms_inner_attribute.txt always show token text 2019-04-02 14:49:46 +03:00
0121_match_arms_outer_attributes.rs Enable parsing of attributes inside a match block 2019-02-17 19:26:57 +02:00
0121_match_arms_outer_attributes.txt always show token text 2019-04-02 14:49:46 +03:00
0122_generic_lifetime_type_attribute.rs Enable parsing attributes for generic lifetimes and type parameters 2019-02-17 23:32:10 +02:00
0122_generic_lifetime_type_attribute.txt always show token text 2019-04-02 14:49:46 +03:00
0123_param_list_vararg.rs allow vararg functions 2019-03-04 14:34:59 +03:00
0123_param_list_vararg.txt always show token text 2019-04-02 14:49:46 +03:00
0124_async_fn.rs Add async keyword 2019-03-09 20:40:22 -03:00
0124_async_fn.txt always show token text 2019-04-02 14:49:46 +03:00
0125_crate_keyword_path.rs Use Marker argument for item parsers 2019-03-18 14:34:08 +09:00
0125_crate_keyword_path.txt always show token text 2019-04-02 14:49:46 +03:00
0125_struct_literal_field_with_attr.rs Allow attribute on struct literal field 2019-03-17 19:08:35 +09:00
0125_struct_literal_field_with_attr.txt always show token text 2019-04-02 14:49:46 +03:00
0126_attr_on_expr_stmt.rs Allow attributes on top level expression 2019-03-19 17:24:02 +09:00
0126_attr_on_expr_stmt.txt always show token text 2019-04-02 14:49:46 +03:00
0127_attr_on_last_expr_in_block.rs Allow attributes on top level expression 2019-03-19 17:24:02 +09:00
0127_attr_on_last_expr_in_block.txt always show token text 2019-04-02 14:49:46 +03:00
0128_combined_fns.rs Parse unsafe async / const unsafe fns properly 2019-04-03 17:11:56 +02:00
0128_combined_fns.txt Parse unsafe async / const unsafe fns properly 2019-04-03 17:11:56 +02:00
0129_marco_pat.rs Add macro pat parsing 2019-04-30 23:22:48 +08:00
0129_marco_pat.txt Add macro pat parsing 2019-04-30 23:22:48 +08:00
0130_let_stmt.rs fix: never type with binding 2019-06-07 19:49:49 +08:00
0130_let_stmt.txt fix: never type with binding 2019-06-07 19:49:49 +08:00
0130_try_block_expr.rs [#1083] Try block syntax: fix tests 2019-06-06 16:26:54 +04:00
0130_try_block_expr.txt [#1083] Try block syntax: fix tests 2019-06-06 16:26:54 +04:00
0131_existential_type.rs fix: support existential type 2019-06-12 14:32:39 +00:00
0131_existential_type.txt fix: support existential type 2019-06-12 14:32:39 +00:00
0132_box_expr.rs fix: box_pattern 2019-06-19 14:28:50 +08:00
0132_box_expr.txt fix: box_pattern 2019-06-19 14:28:50 +08:00
0132_default_fn_type.rs fix: specialization(with blindly parsing) 2019-06-19 18:37:38 +08:00
0132_default_fn_type.txt fix: specialization(with blindly parsing) 2019-06-19 18:37:38 +08:00
0134_nocontentexpr_after_item.rs fixed #1384 2019-06-28 15:22:17 +08:00
0134_nocontentexpr_after_item.txt fixed #1384 2019-06-28 15:22:17 +08:00
0135_first_array_member_attributes.rs Support attributes on array members 2019-06-30 18:36:54 +10:00
0135_first_array_member_attributes.txt Support attributes on array members 2019-06-30 18:36:54 +10:00
0136_subsequent_array_member_attributes.rs Support attributes on array members 2019-06-30 18:36:54 +10:00
0136_subsequent_array_member_attributes.txt Support attributes on array members 2019-06-30 18:36:54 +10:00