From da091b130347c4d6d8c75acb8e65c30a17dc1f5e Mon Sep 17 00:00:00 2001 From: veetaha Date: Mon, 6 Apr 2020 14:04:26 +0300 Subject: [PATCH] Migrate tests .txt -> .rast The sytax tree output files now use .rast extension (rust-analyzer syntax tree or rust abstract syntax tree (whatever)). This format has a editors/code/ra_syntax_tree.tmGrammar.json declaration that supplies nice syntax highlighting for .rast files. --- crates/ra_syntax/src/tests.rs | 14 ++++---- ...t => 0000_struct_field_missing_comma.rast} | 0 ...le.txt => 0001_item_recovery_in_file.rast} | 0 ...hebang.txt => 0002_duplicate_shebang.rast} | 0 ..._semicolon.txt => 0003_C++_semicolon.rast} | 0 ...ent.txt => 0004_use_path_bad_segment.rast} | 0 ...ecover.txt => 0005_attribute_recover.rast} | 0 ...ery.txt => 0006_named_field_recovery.rast} | 0 ...file.txt => 0007_stray_curly_in_file.rast} | 0 ...very.txt => 0008_item_block_recovery.rast} | 0 ...=> 0009_broken_struct_type_parameter.rast} | 0 ...lock.txt => 0010_unsafe_lambda_block.rast} | 0 ...ern_struct.txt => 0011_extern_struct.rast} | 0 ...ken_lambda.txt => 0012_broken_lambda.rast} | 0 ...nvalid_type.txt => 0013_invalid_type.rast} | 0 ...o_bounds.txt => 0014_where_no_bounds.rast} | 0 ...n_params.txt => 0015_curly_in_params.rast} | 0 ...issing_semi.txt => 0016_missing_semi.rast} | 0 ...nexpr.txt => 0017_incomplete_binexpr.rast} | 0 ...omplete_fn.txt => 0018_incomplete_fn.rast} | 0 ..._let_recover.txt => 0019_let_recover.rast} | 0 ...20_fn_recover.txt => 0020_fn_recover.rast} | 0 ...e_param.txt => 0021_incomplete_param.rast} | 0 ...0022_bad_exprs.txt => 0022_bad_exprs.rast} | 0 ...d_paren.txt => 0023_mismatched_paren.rast} | 0 ..._parens.txt => 0024_many_type_parens.rast} | 0 .../err/{0025_nope.txt => 0025_nope.rast} | 0 ...mp_recovery.txt => 0026_imp_recovery.rast} | 0 ...for.txt => 0027_incomplere_where_for.rast} | 0 ...pletion.txt => 0029_field_completion.rast} | 0 ..._attrs.txt => 0031_block_inner_attrs.rast} | 0 ...s.txt => 0032_match_arms_inner_attrs.rast} | 0 ...s.txt => 0033_match_arms_outer_attrs.rast} | 0 ..._pattern.txt => 0034_bad_box_pattern.rast} | 0 ..._use_recover.txt => 0035_use_recover.rast} | 0 ..._partial_use.txt => 0036_partial_use.rast} | 0 ...its.txt => 0037_visibility_in_traits.rast} | 0 ....txt => 0038_endless_inclusive_range.rast} | 0 ...recovery.txt => 0039_lambda_recovery.rast} | 0 ....txt => 0001_array_type_missing_semi.rast} | 0 ..._err.txt => 0002_misplaced_label_err.rast} | 0 ...t => 0003_pointer_type_no_mutability.rast} | 0 ...0004_impl_type.txt => 0004_impl_type.rast} | 0 ...t => 0005_fn_pointer_type_missing_fn.rast} | 0 ..._mod.txt => 0006_unsafe_block_in_mod.rast} | 0 ....txt => 0007_async_without_semicolon.rast} | 0 .../{0008_pub_expr.txt => 0008_pub_expr.rast} | 0 ...txt => 0009_attr_on_expr_not_allowed.rast} | 0 ...xpr.txt => 0010_bad_tuple_index_expr.rast} | 0 ...rder_fns.txt => 0010_wrong_order_fns.rast} | 0 ...rscore.txt => 0013_static_underscore.rast} | 0 ..._fn_type.txt => 0014_default_fn_type.rast} | 0 ...tem_list.txt => 0001_trait_item_list.rast} | 0 ..._tree_list.txt => 0002_use_tree_list.rast} | 0 ..._pred_for.txt => 0003_where_pred_for.rast} | 0 ...=> 0004_value_parameters_no_patterns.rast} | 0 ...ams.txt => 0005_function_type_params.rast} | 0 ...06_self_param.txt => 0006_self_param.rast} | 0 ...bounds.txt => 0007_type_param_bounds.rast} | 0 ...0008_path_part.txt => 0008_path_part.rast} | 0 ...0009_loop_expr.txt => 0009_loop_expr.rast} | 0 ...xtern_block.txt => 0010_extern_block.rast} | 0 ...11_field_expr.txt => 0011_field_expr.rast} | 0 ...e.txt => 0012_type_item_where_clause.rast} | 0 ...ype_mut.txt => 0013_pointer_type_mut.rast} | 0 ...14_never_type.txt => 0014_never_type.rast} | 0 ...tinue_expr.txt => 0015_continue_expr.rast} | 0 ...nsafe_trait.txt => 0016_unsafe_trait.rast} | 0 ...17_array_type.txt => 0017_array_type.rast} | 0 ...elf_types.txt => 0018_arb_self_types.rast} | 0 ...19_unary_expr.txt => 0019_unary_expr.rast} | 0 .../{0020_use_star.txt => 0020_use_star.rast} | 0 ...item_list.txt => 0021_impl_item_list.rast} | 0 ...ibility.txt => 0022_crate_visibility.rast} | 0 ...er_type.txt => 0023_placeholder_type.rast} | 0 ...0024_slice_pat.txt => 0024_slice_pat.rast} | 0 ...25_slice_type.txt => 0025_slice_type.rast} | 0 ..._fields.txt => 0026_tuple_pat_fields.rast} | 0 .../{0027_ref_pat.txt => 0027_ref_pat.rast} | 0 ...ait_type.txt => 0028_impl_trait_type.rast} | 0 ...0029_cast_expr.txt => 0029_cast_expr.rast} | 0 .../ok/{0030_cond.txt => 0030_cond.rast} | 0 ...31_while_expr.txt => 0031_while_expr.rast} | 0 ...ter_type.txt => 0032_fn_pointer_type.rast} | 0 ...ce_type;.txt => 0033_reference_type;.rast} | 0 ...34_break_expr.txt => 0034_break_expr.rast} | 0 ...tern_fn.txt => 0036_unsafe_extern_fn.rast} | 0 ...37_qual_paths.txt => 0037_qual_paths.rast} | 0 ...nge_expr.txt => 0038_full_range_expr.rast} | 0 .../{0039_type_arg.txt => 0039_type_arg.rast} | 0 ...rd_vis.txt => 0040_crate_keyword_vis.rast} | 0 ...41_trait_item.txt => 0041_trait_item.rast} | 0 ...0042_call_expr.txt => 0042_call_expr.rast} | 0 ...0043_use_alias.txt => 0043_use_alias.rast} | 0 ..._block_items.txt => 0044_block_items.rast} | 0 ....txt => 0045_param_list_opt_patterns.rast} | 0 ...ype.txt => 0046_singleton_tuple_type.rast} | 0 ...impl.txt => 0047_unsafe_default_impl.rast} | 0 ...ds.txt => 0048_path_type_with_bounds.rast} | 0 .../{0050_fn_decl.txt => 0050_fn_decl.rast} | 0 ...0051_unit_type.txt => 0051_unit_type.rast} | 0 ...0052_path_type.txt => 0052_path_type.rast} | 0 ...0053_path_expr.txt => 0053_path_expr.rast} | 0 ...attrs.txt => 0054_record_field_attrs.rast} | 0 ..._pattern.txt => 0055_literal_pattern.rast} | 0 ...here_clause.txt => 0056_where_clause.rast} | 0 .../{0057_const_fn.txt => 0057_const_fn.rast} | 0 ...0058_range_pat.txt => 0058_range_pat.rast} | 0 ...commas.txt => 0059_match_arms_commas.rast} | 0 ...xtern_crate.txt => 0060_extern_crate.rast} | 0 ...61_record_lit.txt => 0061_record_lit.rast} | 0 ...od_contents.txt => 0062_mod_contents.rast} | 0 ...mpl_def_neg.txt => 0063_impl_def_neg.rast} | 0 .../{0064_if_expr.txt => 0064_if_expr.rast} | 0 ...rait_type.txt => 0065_dyn_trait_type.rast} | 0 ...0066_match_arm.txt => 0066_match_arm.rast} | 0 ...67_crate_path.txt => 0067_crate_path.rast} | 0 ..._union_items.txt => 0068_union_items.rast} | 0 ...txt => 0069_use_tree_list_after_path.rast} | 0 ....txt => 0070_stmt_bin_expr_ambiguity.rast} | 0 ...71_match_expr.txt => 0071_match_expr.rast} | 0 ..._return_expr.txt => 0072_return_expr.rast} | 0 ...ms.txt => 0073_type_item_type_params.rast} | 0 ... => 0074_stmt_postfix_expr_ambiguity.rast} | 0 .../ok/{0075_block.txt => 0075_block.rast} | 0 ...se.txt => 0076_function_where_clause.rast} | 0 .../{0077_try_expr.txt => 0077_try_expr.rast} | 0 ...0078_type_item.txt => 0078_type_item.rast} | 0 .../{0079_impl_def.txt => 0079_impl_def.rast} | 0 ...tfix_range.txt => 0080_postfix_range.rast} | 0 .../{0081_for_type.txt => 0081_for_type.rast} | 0 .../{0082_ref_expr.txt => 0082_ref_expr.rast} | 0 ...truct_items.txt => 0083_struct_items.rast} | 0 ...84_paren_type.txt => 0084_paren_type.rast} | 0 ...r_literals.txt => 0085_expr_literals.rast} | 0 ...t_type.txt => 0086_function_ret_type.rast} | 0 ..._unsafe_impl.txt => 0087_unsafe_impl.rast} | 0 ...mbiguity.txt => 0088_break_ambiguity.rast} | 0 ...0089_extern_fn.txt => 0089_extern_fn.rast} | 0 ...fault.txt => 0090_type_param_default.rast} | 0 ...91_auto_trait.txt => 0091_auto_trait.rast} | 0 ...txt => 0092_fn_pointer_type_with_ret.rast} | 0 ...93_index_expr.txt => 0093_index_expr.rast} | 0 ..._trait.txt => 0094_unsafe_auto_trait.rast} | 0 ...lder_pat.txt => 0095_placeholder_pat.rast} | 0 ...lock.txt => 0096_no_semi_after_block.rast} | 0 ...efault_impl.txt => 0097_default_impl.rast} | 0 ...nsafe_fn.txt => 0098_const_unsafe_fn.rast} | 0 ...99_param_list.txt => 0099_param_list.rast} | 0 .../{0100_for_expr.txt => 0100_for_expr.rast} | 0 ...0101_unsafe_fn.txt => 0101_unsafe_fn.rast} | 0 ...st.txt => 0102_record_field_pat_list.rast} | 0 ...03_array_expr.txt => 0103_array_expr.rast} | 0 ..._args.txt => 0104_path_fn_trait_args.rast} | 0 ...05_block_expr.txt => 0105_block_expr.rast} | 0 ..._lambda_expr.txt => 0106_lambda_expr.rast} | 0 ...ll_expr.txt => 0107_method_call_expr.rast} | 0 ...08_tuple_expr.txt => 0108_tuple_expr.rast} | 0 .../ok/{0109_label.txt => 0109_label.rast} | 0 .../{0110_use_path.txt => 0110_use_path.rast} | 0 ...0111_tuple_pat.txt => 0111_tuple_pat.rast} | 0 .../{0112_bind_pat.txt => 0112_bind_pat.rast} | 0 ...ontentexpr.txt => 0113_nocontentexpr.rast} | 0 ...where.txt => 0114_tuple_struct_where.rast} | 0 ..._attrs.txt => 0115_tuple_field_attrs.rast} | 0 ...all_type.txt => 0117_macro_call_type.rast} | 0 ...es.txt => 0118_impl_inner_attributes.rast} | 0 ..._match_guard.txt => 0118_match_guard.rast} | 0 ...t => 0120_match_arms_inner_attribute.rast} | 0 ... => 0121_match_arms_outer_attributes.rast} | 0 ...0122_generic_lifetime_type_attribute.rast} | 0 ...vararg.txt => 0123_param_list_vararg.rast} | 0 .../{0124_async_fn.txt => 0124_async_fn.rast} | 0 ..._path.txt => 0125_crate_keyword_path.rast} | 0 ... 0125_record_literal_field_with_attr.rast} | 0 ...r_stmt.txt => 0126_attr_on_expr_stmt.rast} | 0 ...t => 0127_attr_on_last_expr_in_block.rast} | 0 ...ombined_fns.txt => 0128_combined_fns.rast} | 0 ...0129_marco_pat.txt => 0129_marco_pat.rast} | 0 .../{0130_let_stmt.txt => 0130_let_stmt.rast} | 0 ...lock_expr.txt => 0130_try_block_expr.rast} | 0 ...al_type.txt => 0131_existential_type.rast} | 0 .../{0132_box_expr.txt => 0132_box_expr.rast} | 0 ..._fn_type.txt => 0132_default_fn_type.rast} | 0 ...txt => 0134_nocontentexpr_after_item.rast} | 0 ...37_await_expr.txt => 0137_await_expr.rast} | 0 ...s.txt => 0138_associated_type_bounds.rast} | 0 ...k.txt => 0138_expression_after_block.rast} | 0 ...tr.txt => 0138_self_param_outer_attr.rast} | 0 ...uter_arg.txt => 0139_param_outer_arg.rast} | 0 ...ange_from.txt => 0142_for_range_from.rast} | 0 .../{0143_box_pat.txt => 0143_box_pat.rast} | 0 ..._dot_dot_pat.txt => 0144_dot_dot_pat.rast} | 0 ...eld_pat.txt => 0145_record_field_pat.rast} | 0 ...precedence.txt => 0146_as_precedence.rast} | 0 ..._const_param.txt => 0147_const_param.rast} | 0 ...0147_macro_def.txt => 0147_macro_def.rast} | 0 ..._macro_def.txt => 0148_pub_macro_def.rast} | 0 ..._array_attrs.txt => 0150_array_attrs.rast} | 0 ..._params.txt => 0150_impl_type_params.rast} | 0 ..._trait_alias.txt => 0151_trait_alias.rast} | 0 ..._with_attr.txt => 0152_arg_with_attr.rast} | 0 ... => 0154_fn_pointer_param_ident_path.rast} | 0 ...re_params.txt => 0155_closure_params.rast} | 0 ...n_def_param.txt => 0156_fn_def_param.rast} | 0 ...56_or_pattern.txt => 0156_or_pattern.rast} | 0 ...g.txt => 0157_fn_pointer_unnamed_arg.rast} | 0 ...ant.txt => 0157_variant_discriminant.rast} | 0 ...t => 0158_binop_resets_statementness.rast} | 0 ...t_block.txt => 0158_lambda_ret_block.rast} | 0 .../ok/{0000_empty.txt => 0000_empty.rast} | 0 ..._struct_item.txt => 0001_struct_item.rast} | 0 ..._field.txt => 0002_struct_item_field.rast} | 0 ...ile_shebang.txt => 0004_file_shebang.rast} | 0 .../{0005_fn_item.txt => 0005_fn_item.rast} | 0 ...ributes.txt => 0006_inner_attributes.rast} | 0 ...xtern_crate.txt => 0007_extern_crate.rast} | 0 .../{0008_mod_item.txt => 0008_mod_item.rast} | 0 .../{0009_use_item.txt => 0009_use_item.rast} | 0 ...gments.txt => 0010_use_path_segments.rast} | 0 ...ttribute.txt => 0011_outer_attribute.rast} | 0 ...12_visibility.txt => 0012_visibility.rast} | 0 ...uper.txt => 0013_use_path_self_super.rast} | 0 .../{0014_use_tree.txt => 0014_use_tree.rast} | 0 .../{0015_use_tree.txt => 0015_use_tree.rast} | 0 ...t_flavors.txt => 0016_struct_flavors.rast} | 0 ...omma.txt => 0017_attr_trailing_comma.rast} | 0 ...arams.txt => 0018_struct_type_params.rast} | 0 .../ok/{0019_enums.txt => 0019_enums.rast} | 0 ...bounds.txt => 0020_type_param_bounds.rast} | 0 ...0021_extern_fn.txt => 0021_extern_fn.rast} | 0 ...block.txt => 0022_empty_extern_block.rast} | 0 ...tatic_items.txt => 0023_static_items.rast} | 0 ...24_const_item.txt => 0024_const_item.rast} | 0 ...block.txt => 0025_extern_fn_in_block.rast} | 0 ..._block.txt => 0026_const_fn_in_block.rast} | 0 ...block.txt => 0027_unsafe_fn_in_block.rast} | 0 ...r.txt => 0028_operator_binding_power.rast} | 0 ..._range_forms.txt => 0029_range_forms.rast} | 0 ...suffixes.txt => 0030_string_suffixes.rast} | 0 .../ok/{0030_traits.txt => 0030_traits.rast} | 0 .../ok/{0031_extern.txt => 0031_extern.rast} | 0 ...0032_where_for.txt => 0032_where_for.rast} | 0 ..._label_break.txt => 0033_label_break.rast} | 0 ..._call.txt => 0034_crate_path_in_call.rast} | 0 ..._weird_exprs.txt => 0035_weird_exprs.rast} | 0 ...ualified.txt => 0036_fully_qualified.rast} | 0 .../parser/ok/{0037_mod.txt => 0037_mod.rast} | 0 ...red_type.txt => 0038_where_pred_type.rast} | 0 ..._raw_fn_item.txt => 0039_raw_fn_item.rast} | 0 ...ld.txt => 0040_raw_struct_item_field.rast} | 0 ...aw_keywords.txt => 0041_raw_keywords.rast} | 0 ...call_list.txt => 0042_ufcs_call_list.rast} | 0 ...nment.txt => 0043_complex_assignment.rast} | 0 ...0044_let_attrs.txt => 0044_let_attrs.rast} | 0 ..._attrs.txt => 0045_block_inner_attrs.rast} | 0 ....txt => 0046_extern_inner_attributes.rast} | 0 ...n.txt => 0047_minus_in_inner_pattern.rast} | 0 ...ment.txt => 0048_compound_assignment.rast} | 0 ..._async_block.txt => 0049_async_block.rast} | 0 ....txt => 0050_async_block_as_argument.rast} | 0 ...er_attrs.txt => 0051_parameter_attrs.rast} | 0 ...ge_block.txt => 0052_for_range_block.rast} | 0 ... 0053_outer_attribute_on_macro_rules.rast} | 0 ...rg.txt => 0054_qual_path_in_type_arg.rast} | 0 ..._dot_dot_dot.txt => 0055_dot_dot_dot.rast} | 0 ..._neq_in_type.txt => 0056_neq_in_type.rast} | 0 ...oop_in_call.txt => 0057_loop_in_call.rast} | 0 ...ce.txt => 0058_unary_expr_precedence.rast} | 0 ...n_parens.txt => 0059_loops_in_parens.rast} | 0 .../{0060_as_range.txt => 0060_as_range.rast} | 0 ...l_range.txt => 0061_match_full_range.rast} | 0 ...0062_macro_2.0.txt => 0062_macro_2.0.rast} | 0 ...tterns.txt => 0063_trait_fn_patterns.rast} | 0 ...ariadic_fun.txt => 0063_variadic_fun.rast} | 0 ...fn_params.txt => 0064_impl_fn_params.rast} | 0 ..._newline.txt => 0065_comment_newline.rast} | 0 crates/test_utils/src/lib.rs | 34 +++++++++---------- 278 files changed, 23 insertions(+), 25 deletions(-) rename crates/ra_syntax/test_data/parser/err/{0000_struct_field_missing_comma.txt => 0000_struct_field_missing_comma.rast} (100%) rename crates/ra_syntax/test_data/parser/err/{0001_item_recovery_in_file.txt => 0001_item_recovery_in_file.rast} (100%) rename crates/ra_syntax/test_data/parser/err/{0002_duplicate_shebang.txt => 0002_duplicate_shebang.rast} (100%) rename crates/ra_syntax/test_data/parser/err/{0003_C++_semicolon.txt => 0003_C++_semicolon.rast} (100%) rename crates/ra_syntax/test_data/parser/err/{0004_use_path_bad_segment.txt => 0004_use_path_bad_segment.rast} (100%) rename crates/ra_syntax/test_data/parser/err/{0005_attribute_recover.txt => 0005_attribute_recover.rast} (100%) rename crates/ra_syntax/test_data/parser/err/{0006_named_field_recovery.txt => 0006_named_field_recovery.rast} (100%) rename crates/ra_syntax/test_data/parser/err/{0007_stray_curly_in_file.txt => 0007_stray_curly_in_file.rast} (100%) rename crates/ra_syntax/test_data/parser/err/{0008_item_block_recovery.txt => 0008_item_block_recovery.rast} (100%) rename crates/ra_syntax/test_data/parser/err/{0009_broken_struct_type_parameter.txt => 0009_broken_struct_type_parameter.rast} (100%) rename crates/ra_syntax/test_data/parser/err/{0010_unsafe_lambda_block.txt => 0010_unsafe_lambda_block.rast} (100%) rename crates/ra_syntax/test_data/parser/err/{0011_extern_struct.txt => 0011_extern_struct.rast} (100%) rename crates/ra_syntax/test_data/parser/err/{0012_broken_lambda.txt => 0012_broken_lambda.rast} (100%) rename crates/ra_syntax/test_data/parser/err/{0013_invalid_type.txt => 0013_invalid_type.rast} (100%) rename crates/ra_syntax/test_data/parser/err/{0014_where_no_bounds.txt => 0014_where_no_bounds.rast} (100%) rename crates/ra_syntax/test_data/parser/err/{0015_curly_in_params.txt => 0015_curly_in_params.rast} (100%) rename crates/ra_syntax/test_data/parser/err/{0016_missing_semi.txt => 0016_missing_semi.rast} (100%) rename crates/ra_syntax/test_data/parser/err/{0017_incomplete_binexpr.txt => 0017_incomplete_binexpr.rast} (100%) rename crates/ra_syntax/test_data/parser/err/{0018_incomplete_fn.txt => 0018_incomplete_fn.rast} (100%) rename crates/ra_syntax/test_data/parser/err/{0019_let_recover.txt => 0019_let_recover.rast} (100%) rename crates/ra_syntax/test_data/parser/err/{0020_fn_recover.txt => 0020_fn_recover.rast} (100%) rename crates/ra_syntax/test_data/parser/err/{0021_incomplete_param.txt => 0021_incomplete_param.rast} (100%) rename crates/ra_syntax/test_data/parser/err/{0022_bad_exprs.txt => 0022_bad_exprs.rast} (100%) rename crates/ra_syntax/test_data/parser/err/{0023_mismatched_paren.txt => 0023_mismatched_paren.rast} (100%) rename crates/ra_syntax/test_data/parser/err/{0024_many_type_parens.txt => 0024_many_type_parens.rast} (100%) rename crates/ra_syntax/test_data/parser/err/{0025_nope.txt => 0025_nope.rast} (100%) rename crates/ra_syntax/test_data/parser/err/{0026_imp_recovery.txt => 0026_imp_recovery.rast} (100%) rename crates/ra_syntax/test_data/parser/err/{0027_incomplere_where_for.txt => 0027_incomplere_where_for.rast} (100%) rename crates/ra_syntax/test_data/parser/err/{0029_field_completion.txt => 0029_field_completion.rast} (100%) rename crates/ra_syntax/test_data/parser/err/{0031_block_inner_attrs.txt => 0031_block_inner_attrs.rast} (100%) rename crates/ra_syntax/test_data/parser/err/{0032_match_arms_inner_attrs.txt => 0032_match_arms_inner_attrs.rast} (100%) rename crates/ra_syntax/test_data/parser/err/{0033_match_arms_outer_attrs.txt => 0033_match_arms_outer_attrs.rast} (100%) rename crates/ra_syntax/test_data/parser/err/{0034_bad_box_pattern.txt => 0034_bad_box_pattern.rast} (100%) rename crates/ra_syntax/test_data/parser/err/{0035_use_recover.txt => 0035_use_recover.rast} (100%) rename crates/ra_syntax/test_data/parser/err/{0036_partial_use.txt => 0036_partial_use.rast} (100%) rename crates/ra_syntax/test_data/parser/err/{0037_visibility_in_traits.txt => 0037_visibility_in_traits.rast} (100%) rename crates/ra_syntax/test_data/parser/err/{0038_endless_inclusive_range.txt => 0038_endless_inclusive_range.rast} (100%) rename crates/ra_syntax/test_data/parser/err/{0039_lambda_recovery.txt => 0039_lambda_recovery.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/err/{0001_array_type_missing_semi.txt => 0001_array_type_missing_semi.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/err/{0002_misplaced_label_err.txt => 0002_misplaced_label_err.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/err/{0003_pointer_type_no_mutability.txt => 0003_pointer_type_no_mutability.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/err/{0004_impl_type.txt => 0004_impl_type.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/err/{0005_fn_pointer_type_missing_fn.txt => 0005_fn_pointer_type_missing_fn.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/err/{0006_unsafe_block_in_mod.txt => 0006_unsafe_block_in_mod.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/err/{0007_async_without_semicolon.txt => 0007_async_without_semicolon.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/err/{0008_pub_expr.txt => 0008_pub_expr.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/err/{0009_attr_on_expr_not_allowed.txt => 0009_attr_on_expr_not_allowed.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/err/{0010_bad_tuple_index_expr.txt => 0010_bad_tuple_index_expr.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/err/{0010_wrong_order_fns.txt => 0010_wrong_order_fns.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/err/{0013_static_underscore.txt => 0013_static_underscore.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/err/{0014_default_fn_type.txt => 0014_default_fn_type.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0001_trait_item_list.txt => 0001_trait_item_list.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0002_use_tree_list.txt => 0002_use_tree_list.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0003_where_pred_for.txt => 0003_where_pred_for.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0004_value_parameters_no_patterns.txt => 0004_value_parameters_no_patterns.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0005_function_type_params.txt => 0005_function_type_params.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0006_self_param.txt => 0006_self_param.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0007_type_param_bounds.txt => 0007_type_param_bounds.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0008_path_part.txt => 0008_path_part.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0009_loop_expr.txt => 0009_loop_expr.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0010_extern_block.txt => 0010_extern_block.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0011_field_expr.txt => 0011_field_expr.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0012_type_item_where_clause.txt => 0012_type_item_where_clause.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0013_pointer_type_mut.txt => 0013_pointer_type_mut.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0014_never_type.txt => 0014_never_type.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0015_continue_expr.txt => 0015_continue_expr.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0016_unsafe_trait.txt => 0016_unsafe_trait.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0017_array_type.txt => 0017_array_type.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0018_arb_self_types.txt => 0018_arb_self_types.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0019_unary_expr.txt => 0019_unary_expr.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0020_use_star.txt => 0020_use_star.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0021_impl_item_list.txt => 0021_impl_item_list.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0022_crate_visibility.txt => 0022_crate_visibility.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0023_placeholder_type.txt => 0023_placeholder_type.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0024_slice_pat.txt => 0024_slice_pat.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0025_slice_type.txt => 0025_slice_type.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0026_tuple_pat_fields.txt => 0026_tuple_pat_fields.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0027_ref_pat.txt => 0027_ref_pat.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0028_impl_trait_type.txt => 0028_impl_trait_type.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0029_cast_expr.txt => 0029_cast_expr.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0030_cond.txt => 0030_cond.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0031_while_expr.txt => 0031_while_expr.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0032_fn_pointer_type.txt => 0032_fn_pointer_type.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0033_reference_type;.txt => 0033_reference_type;.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0034_break_expr.txt => 0034_break_expr.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0036_unsafe_extern_fn.txt => 0036_unsafe_extern_fn.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0037_qual_paths.txt => 0037_qual_paths.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0038_full_range_expr.txt => 0038_full_range_expr.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0039_type_arg.txt => 0039_type_arg.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0040_crate_keyword_vis.txt => 0040_crate_keyword_vis.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0041_trait_item.txt => 0041_trait_item.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0042_call_expr.txt => 0042_call_expr.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0043_use_alias.txt => 0043_use_alias.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0044_block_items.txt => 0044_block_items.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0045_param_list_opt_patterns.txt => 0045_param_list_opt_patterns.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0046_singleton_tuple_type.txt => 0046_singleton_tuple_type.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0047_unsafe_default_impl.txt => 0047_unsafe_default_impl.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0048_path_type_with_bounds.txt => 0048_path_type_with_bounds.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0050_fn_decl.txt => 0050_fn_decl.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0051_unit_type.txt => 0051_unit_type.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0052_path_type.txt => 0052_path_type.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0053_path_expr.txt => 0053_path_expr.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0054_record_field_attrs.txt => 0054_record_field_attrs.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0055_literal_pattern.txt => 0055_literal_pattern.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0056_where_clause.txt => 0056_where_clause.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0057_const_fn.txt => 0057_const_fn.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0058_range_pat.txt => 0058_range_pat.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0059_match_arms_commas.txt => 0059_match_arms_commas.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0060_extern_crate.txt => 0060_extern_crate.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0061_record_lit.txt => 0061_record_lit.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0062_mod_contents.txt => 0062_mod_contents.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0063_impl_def_neg.txt => 0063_impl_def_neg.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0064_if_expr.txt => 0064_if_expr.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0065_dyn_trait_type.txt => 0065_dyn_trait_type.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0066_match_arm.txt => 0066_match_arm.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0067_crate_path.txt => 0067_crate_path.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0068_union_items.txt => 0068_union_items.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0069_use_tree_list_after_path.txt => 0069_use_tree_list_after_path.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0070_stmt_bin_expr_ambiguity.txt => 0070_stmt_bin_expr_ambiguity.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0071_match_expr.txt => 0071_match_expr.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0072_return_expr.txt => 0072_return_expr.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0073_type_item_type_params.txt => 0073_type_item_type_params.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0074_stmt_postfix_expr_ambiguity.txt => 0074_stmt_postfix_expr_ambiguity.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0075_block.txt => 0075_block.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0076_function_where_clause.txt => 0076_function_where_clause.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0077_try_expr.txt => 0077_try_expr.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0078_type_item.txt => 0078_type_item.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0079_impl_def.txt => 0079_impl_def.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0080_postfix_range.txt => 0080_postfix_range.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0081_for_type.txt => 0081_for_type.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0082_ref_expr.txt => 0082_ref_expr.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0083_struct_items.txt => 0083_struct_items.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0084_paren_type.txt => 0084_paren_type.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0085_expr_literals.txt => 0085_expr_literals.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0086_function_ret_type.txt => 0086_function_ret_type.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0087_unsafe_impl.txt => 0087_unsafe_impl.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0088_break_ambiguity.txt => 0088_break_ambiguity.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0089_extern_fn.txt => 0089_extern_fn.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0090_type_param_default.txt => 0090_type_param_default.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0091_auto_trait.txt => 0091_auto_trait.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0092_fn_pointer_type_with_ret.txt => 0092_fn_pointer_type_with_ret.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0093_index_expr.txt => 0093_index_expr.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0094_unsafe_auto_trait.txt => 0094_unsafe_auto_trait.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0095_placeholder_pat.txt => 0095_placeholder_pat.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0096_no_semi_after_block.txt => 0096_no_semi_after_block.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0097_default_impl.txt => 0097_default_impl.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0098_const_unsafe_fn.txt => 0098_const_unsafe_fn.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0099_param_list.txt => 0099_param_list.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0100_for_expr.txt => 0100_for_expr.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0101_unsafe_fn.txt => 0101_unsafe_fn.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0102_record_field_pat_list.txt => 0102_record_field_pat_list.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0103_array_expr.txt => 0103_array_expr.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0104_path_fn_trait_args.txt => 0104_path_fn_trait_args.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0105_block_expr.txt => 0105_block_expr.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0106_lambda_expr.txt => 0106_lambda_expr.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0107_method_call_expr.txt => 0107_method_call_expr.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0108_tuple_expr.txt => 0108_tuple_expr.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0109_label.txt => 0109_label.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0110_use_path.txt => 0110_use_path.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0111_tuple_pat.txt => 0111_tuple_pat.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0112_bind_pat.txt => 0112_bind_pat.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0113_nocontentexpr.txt => 0113_nocontentexpr.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0114_tuple_struct_where.txt => 0114_tuple_struct_where.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0115_tuple_field_attrs.txt => 0115_tuple_field_attrs.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0117_macro_call_type.txt => 0117_macro_call_type.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0118_impl_inner_attributes.txt => 0118_impl_inner_attributes.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0118_match_guard.txt => 0118_match_guard.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0120_match_arms_inner_attribute.txt => 0120_match_arms_inner_attribute.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0121_match_arms_outer_attributes.txt => 0121_match_arms_outer_attributes.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0122_generic_lifetime_type_attribute.txt => 0122_generic_lifetime_type_attribute.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0123_param_list_vararg.txt => 0123_param_list_vararg.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0124_async_fn.txt => 0124_async_fn.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0125_crate_keyword_path.txt => 0125_crate_keyword_path.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0125_record_literal_field_with_attr.txt => 0125_record_literal_field_with_attr.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0126_attr_on_expr_stmt.txt => 0126_attr_on_expr_stmt.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0127_attr_on_last_expr_in_block.txt => 0127_attr_on_last_expr_in_block.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0128_combined_fns.txt => 0128_combined_fns.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0129_marco_pat.txt => 0129_marco_pat.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0130_let_stmt.txt => 0130_let_stmt.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0130_try_block_expr.txt => 0130_try_block_expr.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0131_existential_type.txt => 0131_existential_type.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0132_box_expr.txt => 0132_box_expr.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0132_default_fn_type.txt => 0132_default_fn_type.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0134_nocontentexpr_after_item.txt => 0134_nocontentexpr_after_item.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0137_await_expr.txt => 0137_await_expr.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0138_associated_type_bounds.txt => 0138_associated_type_bounds.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0138_expression_after_block.txt => 0138_expression_after_block.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0138_self_param_outer_attr.txt => 0138_self_param_outer_attr.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0139_param_outer_arg.txt => 0139_param_outer_arg.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0142_for_range_from.txt => 0142_for_range_from.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0143_box_pat.txt => 0143_box_pat.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0144_dot_dot_pat.txt => 0144_dot_dot_pat.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0145_record_field_pat.txt => 0145_record_field_pat.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0146_as_precedence.txt => 0146_as_precedence.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0147_const_param.txt => 0147_const_param.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0147_macro_def.txt => 0147_macro_def.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0148_pub_macro_def.txt => 0148_pub_macro_def.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0150_array_attrs.txt => 0150_array_attrs.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0150_impl_type_params.txt => 0150_impl_type_params.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0151_trait_alias.txt => 0151_trait_alias.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0152_arg_with_attr.txt => 0152_arg_with_attr.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0154_fn_pointer_param_ident_path.txt => 0154_fn_pointer_param_ident_path.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0155_closure_params.txt => 0155_closure_params.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0156_fn_def_param.txt => 0156_fn_def_param.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0156_or_pattern.txt => 0156_or_pattern.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0157_fn_pointer_unnamed_arg.txt => 0157_fn_pointer_unnamed_arg.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0157_variant_discriminant.txt => 0157_variant_discriminant.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0158_binop_resets_statementness.txt => 0158_binop_resets_statementness.rast} (100%) rename crates/ra_syntax/test_data/parser/inline/ok/{0158_lambda_ret_block.txt => 0158_lambda_ret_block.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0000_empty.txt => 0000_empty.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0001_struct_item.txt => 0001_struct_item.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0002_struct_item_field.txt => 0002_struct_item_field.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0004_file_shebang.txt => 0004_file_shebang.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0005_fn_item.txt => 0005_fn_item.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0006_inner_attributes.txt => 0006_inner_attributes.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0007_extern_crate.txt => 0007_extern_crate.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0008_mod_item.txt => 0008_mod_item.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0009_use_item.txt => 0009_use_item.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0010_use_path_segments.txt => 0010_use_path_segments.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0011_outer_attribute.txt => 0011_outer_attribute.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0012_visibility.txt => 0012_visibility.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0013_use_path_self_super.txt => 0013_use_path_self_super.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0014_use_tree.txt => 0014_use_tree.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0015_use_tree.txt => 0015_use_tree.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0016_struct_flavors.txt => 0016_struct_flavors.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0017_attr_trailing_comma.txt => 0017_attr_trailing_comma.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0018_struct_type_params.txt => 0018_struct_type_params.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0019_enums.txt => 0019_enums.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0020_type_param_bounds.txt => 0020_type_param_bounds.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0021_extern_fn.txt => 0021_extern_fn.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0022_empty_extern_block.txt => 0022_empty_extern_block.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0023_static_items.txt => 0023_static_items.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0024_const_item.txt => 0024_const_item.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0025_extern_fn_in_block.txt => 0025_extern_fn_in_block.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0026_const_fn_in_block.txt => 0026_const_fn_in_block.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0027_unsafe_fn_in_block.txt => 0027_unsafe_fn_in_block.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0028_operator_binding_power.txt => 0028_operator_binding_power.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0029_range_forms.txt => 0029_range_forms.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0030_string_suffixes.txt => 0030_string_suffixes.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0030_traits.txt => 0030_traits.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0031_extern.txt => 0031_extern.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0032_where_for.txt => 0032_where_for.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0033_label_break.txt => 0033_label_break.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0034_crate_path_in_call.txt => 0034_crate_path_in_call.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0035_weird_exprs.txt => 0035_weird_exprs.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0036_fully_qualified.txt => 0036_fully_qualified.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0037_mod.txt => 0037_mod.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0038_where_pred_type.txt => 0038_where_pred_type.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0039_raw_fn_item.txt => 0039_raw_fn_item.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0040_raw_struct_item_field.txt => 0040_raw_struct_item_field.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0041_raw_keywords.txt => 0041_raw_keywords.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0042_ufcs_call_list.txt => 0042_ufcs_call_list.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0043_complex_assignment.txt => 0043_complex_assignment.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0044_let_attrs.txt => 0044_let_attrs.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0045_block_inner_attrs.txt => 0045_block_inner_attrs.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0046_extern_inner_attributes.txt => 0046_extern_inner_attributes.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0047_minus_in_inner_pattern.txt => 0047_minus_in_inner_pattern.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0048_compound_assignment.txt => 0048_compound_assignment.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0049_async_block.txt => 0049_async_block.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0050_async_block_as_argument.txt => 0050_async_block_as_argument.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0051_parameter_attrs.txt => 0051_parameter_attrs.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0052_for_range_block.txt => 0052_for_range_block.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0053_outer_attribute_on_macro_rules.txt => 0053_outer_attribute_on_macro_rules.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0054_qual_path_in_type_arg.txt => 0054_qual_path_in_type_arg.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0055_dot_dot_dot.txt => 0055_dot_dot_dot.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0056_neq_in_type.txt => 0056_neq_in_type.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0057_loop_in_call.txt => 0057_loop_in_call.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0058_unary_expr_precedence.txt => 0058_unary_expr_precedence.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0059_loops_in_parens.txt => 0059_loops_in_parens.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0060_as_range.txt => 0060_as_range.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0061_match_full_range.txt => 0061_match_full_range.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0062_macro_2.0.txt => 0062_macro_2.0.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0063_trait_fn_patterns.txt => 0063_trait_fn_patterns.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0063_variadic_fun.txt => 0063_variadic_fun.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0064_impl_fn_params.txt => 0064_impl_fn_params.rast} (100%) rename crates/ra_syntax/test_data/parser/ok/{0065_comment_newline.txt => 0065_comment_newline.rast} (100%) diff --git a/crates/ra_syntax/src/tests.rs b/crates/ra_syntax/src/tests.rs index 6a8cb6bb57..355843b946 100644 --- a/crates/ra_syntax/src/tests.rs +++ b/crates/ra_syntax/src/tests.rs @@ -3,7 +3,7 @@ use std::{ path::{Component, Path, PathBuf}, }; -use test_utils::{collect_tests, dir_tests, project_dir, read_text}; +use test_utils::{collect_rust_files, dir_tests, project_dir, read_text}; use crate::{fuzz, tokenize, SourceFile, SyntaxError, TextRange, TextUnit, Token}; @@ -13,12 +13,12 @@ fn lexer_tests() { // * Add tests for unicode escapes in byte-character and [raw]-byte-string literals // * Add tests for unescape errors - dir_tests(&test_data_dir(), &["lexer/ok"], |text, path| { + dir_tests(&test_data_dir(), &["lexer/ok"], "txt", |text, path| { let (tokens, errors) = tokenize(text); assert_errors_are_absent(&errors, path); dump_tokens_and_errors(&tokens, &errors, text) }); - dir_tests(&test_data_dir(), &["lexer/err"], |text, path| { + dir_tests(&test_data_dir(), &["lexer/err"], "txt", |text, path| { let (tokens, errors) = tokenize(text); assert_errors_are_present(&errors, path); dump_tokens_and_errors(&tokens, &errors, text) @@ -40,13 +40,13 @@ fn main() { #[test] fn parser_tests() { - dir_tests(&test_data_dir(), &["parser/inline/ok", "parser/ok"], |text, path| { + dir_tests(&test_data_dir(), &["parser/inline/ok", "parser/ok"], "rast", |text, path| { let parse = SourceFile::parse(text); let errors = parse.errors(); assert_errors_are_absent(&errors, path); parse.debug_dump() }); - dir_tests(&test_data_dir(), &["parser/err", "parser/inline/err"], |text, path| { + dir_tests(&test_data_dir(), &["parser/err", "parser/inline/err"], "rast", |text, path| { let parse = SourceFile::parse(text); let errors = parse.errors(); assert_errors_are_present(&errors, path); @@ -56,14 +56,14 @@ fn parser_tests() { #[test] fn parser_fuzz_tests() { - for (_, text) in collect_tests(&test_data_dir(), &["parser/fuzz-failures"]) { + for (_, text) in collect_rust_files(&test_data_dir(), &["parser/fuzz-failures"]) { fuzz::check_parser(&text) } } #[test] fn reparse_fuzz_tests() { - for (_, text) in collect_tests(&test_data_dir(), &["reparse/fuzz-failures"]) { + for (_, text) in collect_rust_files(&test_data_dir(), &["reparse/fuzz-failures"]) { let check = fuzz::CheckReparse::from_data(text.as_bytes()).unwrap(); println!("{:?}", check); check.run(); diff --git a/crates/ra_syntax/test_data/parser/err/0000_struct_field_missing_comma.txt b/crates/ra_syntax/test_data/parser/err/0000_struct_field_missing_comma.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/err/0000_struct_field_missing_comma.txt rename to crates/ra_syntax/test_data/parser/err/0000_struct_field_missing_comma.rast diff --git a/crates/ra_syntax/test_data/parser/err/0001_item_recovery_in_file.txt b/crates/ra_syntax/test_data/parser/err/0001_item_recovery_in_file.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/err/0001_item_recovery_in_file.txt rename to crates/ra_syntax/test_data/parser/err/0001_item_recovery_in_file.rast diff --git a/crates/ra_syntax/test_data/parser/err/0002_duplicate_shebang.txt b/crates/ra_syntax/test_data/parser/err/0002_duplicate_shebang.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/err/0002_duplicate_shebang.txt rename to crates/ra_syntax/test_data/parser/err/0002_duplicate_shebang.rast diff --git a/crates/ra_syntax/test_data/parser/err/0003_C++_semicolon.txt b/crates/ra_syntax/test_data/parser/err/0003_C++_semicolon.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/err/0003_C++_semicolon.txt rename to crates/ra_syntax/test_data/parser/err/0003_C++_semicolon.rast diff --git a/crates/ra_syntax/test_data/parser/err/0004_use_path_bad_segment.txt b/crates/ra_syntax/test_data/parser/err/0004_use_path_bad_segment.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/err/0004_use_path_bad_segment.txt rename to crates/ra_syntax/test_data/parser/err/0004_use_path_bad_segment.rast diff --git a/crates/ra_syntax/test_data/parser/err/0005_attribute_recover.txt b/crates/ra_syntax/test_data/parser/err/0005_attribute_recover.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/err/0005_attribute_recover.txt rename to crates/ra_syntax/test_data/parser/err/0005_attribute_recover.rast diff --git a/crates/ra_syntax/test_data/parser/err/0006_named_field_recovery.txt b/crates/ra_syntax/test_data/parser/err/0006_named_field_recovery.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/err/0006_named_field_recovery.txt rename to crates/ra_syntax/test_data/parser/err/0006_named_field_recovery.rast diff --git a/crates/ra_syntax/test_data/parser/err/0007_stray_curly_in_file.txt b/crates/ra_syntax/test_data/parser/err/0007_stray_curly_in_file.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/err/0007_stray_curly_in_file.txt rename to crates/ra_syntax/test_data/parser/err/0007_stray_curly_in_file.rast diff --git a/crates/ra_syntax/test_data/parser/err/0008_item_block_recovery.txt b/crates/ra_syntax/test_data/parser/err/0008_item_block_recovery.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/err/0008_item_block_recovery.txt rename to crates/ra_syntax/test_data/parser/err/0008_item_block_recovery.rast diff --git a/crates/ra_syntax/test_data/parser/err/0009_broken_struct_type_parameter.txt b/crates/ra_syntax/test_data/parser/err/0009_broken_struct_type_parameter.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/err/0009_broken_struct_type_parameter.txt rename to crates/ra_syntax/test_data/parser/err/0009_broken_struct_type_parameter.rast diff --git a/crates/ra_syntax/test_data/parser/err/0010_unsafe_lambda_block.txt b/crates/ra_syntax/test_data/parser/err/0010_unsafe_lambda_block.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/err/0010_unsafe_lambda_block.txt rename to crates/ra_syntax/test_data/parser/err/0010_unsafe_lambda_block.rast diff --git a/crates/ra_syntax/test_data/parser/err/0011_extern_struct.txt b/crates/ra_syntax/test_data/parser/err/0011_extern_struct.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/err/0011_extern_struct.txt rename to crates/ra_syntax/test_data/parser/err/0011_extern_struct.rast diff --git a/crates/ra_syntax/test_data/parser/err/0012_broken_lambda.txt b/crates/ra_syntax/test_data/parser/err/0012_broken_lambda.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/err/0012_broken_lambda.txt rename to crates/ra_syntax/test_data/parser/err/0012_broken_lambda.rast diff --git a/crates/ra_syntax/test_data/parser/err/0013_invalid_type.txt b/crates/ra_syntax/test_data/parser/err/0013_invalid_type.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/err/0013_invalid_type.txt rename to crates/ra_syntax/test_data/parser/err/0013_invalid_type.rast diff --git a/crates/ra_syntax/test_data/parser/err/0014_where_no_bounds.txt b/crates/ra_syntax/test_data/parser/err/0014_where_no_bounds.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/err/0014_where_no_bounds.txt rename to crates/ra_syntax/test_data/parser/err/0014_where_no_bounds.rast diff --git a/crates/ra_syntax/test_data/parser/err/0015_curly_in_params.txt b/crates/ra_syntax/test_data/parser/err/0015_curly_in_params.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/err/0015_curly_in_params.txt rename to crates/ra_syntax/test_data/parser/err/0015_curly_in_params.rast diff --git a/crates/ra_syntax/test_data/parser/err/0016_missing_semi.txt b/crates/ra_syntax/test_data/parser/err/0016_missing_semi.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/err/0016_missing_semi.txt rename to crates/ra_syntax/test_data/parser/err/0016_missing_semi.rast diff --git a/crates/ra_syntax/test_data/parser/err/0017_incomplete_binexpr.txt b/crates/ra_syntax/test_data/parser/err/0017_incomplete_binexpr.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/err/0017_incomplete_binexpr.txt rename to crates/ra_syntax/test_data/parser/err/0017_incomplete_binexpr.rast diff --git a/crates/ra_syntax/test_data/parser/err/0018_incomplete_fn.txt b/crates/ra_syntax/test_data/parser/err/0018_incomplete_fn.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/err/0018_incomplete_fn.txt rename to crates/ra_syntax/test_data/parser/err/0018_incomplete_fn.rast diff --git a/crates/ra_syntax/test_data/parser/err/0019_let_recover.txt b/crates/ra_syntax/test_data/parser/err/0019_let_recover.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/err/0019_let_recover.txt rename to crates/ra_syntax/test_data/parser/err/0019_let_recover.rast diff --git a/crates/ra_syntax/test_data/parser/err/0020_fn_recover.txt b/crates/ra_syntax/test_data/parser/err/0020_fn_recover.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/err/0020_fn_recover.txt rename to crates/ra_syntax/test_data/parser/err/0020_fn_recover.rast diff --git a/crates/ra_syntax/test_data/parser/err/0021_incomplete_param.txt b/crates/ra_syntax/test_data/parser/err/0021_incomplete_param.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/err/0021_incomplete_param.txt rename to crates/ra_syntax/test_data/parser/err/0021_incomplete_param.rast diff --git a/crates/ra_syntax/test_data/parser/err/0022_bad_exprs.txt b/crates/ra_syntax/test_data/parser/err/0022_bad_exprs.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/err/0022_bad_exprs.txt rename to crates/ra_syntax/test_data/parser/err/0022_bad_exprs.rast diff --git a/crates/ra_syntax/test_data/parser/err/0023_mismatched_paren.txt b/crates/ra_syntax/test_data/parser/err/0023_mismatched_paren.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/err/0023_mismatched_paren.txt rename to crates/ra_syntax/test_data/parser/err/0023_mismatched_paren.rast diff --git a/crates/ra_syntax/test_data/parser/err/0024_many_type_parens.txt b/crates/ra_syntax/test_data/parser/err/0024_many_type_parens.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/err/0024_many_type_parens.txt rename to crates/ra_syntax/test_data/parser/err/0024_many_type_parens.rast diff --git a/crates/ra_syntax/test_data/parser/err/0025_nope.txt b/crates/ra_syntax/test_data/parser/err/0025_nope.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/err/0025_nope.txt rename to crates/ra_syntax/test_data/parser/err/0025_nope.rast diff --git a/crates/ra_syntax/test_data/parser/err/0026_imp_recovery.txt b/crates/ra_syntax/test_data/parser/err/0026_imp_recovery.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/err/0026_imp_recovery.txt rename to crates/ra_syntax/test_data/parser/err/0026_imp_recovery.rast diff --git a/crates/ra_syntax/test_data/parser/err/0027_incomplere_where_for.txt b/crates/ra_syntax/test_data/parser/err/0027_incomplere_where_for.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/err/0027_incomplere_where_for.txt rename to crates/ra_syntax/test_data/parser/err/0027_incomplere_where_for.rast diff --git a/crates/ra_syntax/test_data/parser/err/0029_field_completion.txt b/crates/ra_syntax/test_data/parser/err/0029_field_completion.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/err/0029_field_completion.txt rename to crates/ra_syntax/test_data/parser/err/0029_field_completion.rast diff --git a/crates/ra_syntax/test_data/parser/err/0031_block_inner_attrs.txt b/crates/ra_syntax/test_data/parser/err/0031_block_inner_attrs.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/err/0031_block_inner_attrs.txt rename to crates/ra_syntax/test_data/parser/err/0031_block_inner_attrs.rast diff --git a/crates/ra_syntax/test_data/parser/err/0032_match_arms_inner_attrs.txt b/crates/ra_syntax/test_data/parser/err/0032_match_arms_inner_attrs.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/err/0032_match_arms_inner_attrs.txt rename to crates/ra_syntax/test_data/parser/err/0032_match_arms_inner_attrs.rast diff --git a/crates/ra_syntax/test_data/parser/err/0033_match_arms_outer_attrs.txt b/crates/ra_syntax/test_data/parser/err/0033_match_arms_outer_attrs.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/err/0033_match_arms_outer_attrs.txt rename to crates/ra_syntax/test_data/parser/err/0033_match_arms_outer_attrs.rast diff --git a/crates/ra_syntax/test_data/parser/err/0034_bad_box_pattern.txt b/crates/ra_syntax/test_data/parser/err/0034_bad_box_pattern.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/err/0034_bad_box_pattern.txt rename to crates/ra_syntax/test_data/parser/err/0034_bad_box_pattern.rast diff --git a/crates/ra_syntax/test_data/parser/err/0035_use_recover.txt b/crates/ra_syntax/test_data/parser/err/0035_use_recover.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/err/0035_use_recover.txt rename to crates/ra_syntax/test_data/parser/err/0035_use_recover.rast diff --git a/crates/ra_syntax/test_data/parser/err/0036_partial_use.txt b/crates/ra_syntax/test_data/parser/err/0036_partial_use.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/err/0036_partial_use.txt rename to crates/ra_syntax/test_data/parser/err/0036_partial_use.rast diff --git a/crates/ra_syntax/test_data/parser/err/0037_visibility_in_traits.txt b/crates/ra_syntax/test_data/parser/err/0037_visibility_in_traits.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/err/0037_visibility_in_traits.txt rename to crates/ra_syntax/test_data/parser/err/0037_visibility_in_traits.rast diff --git a/crates/ra_syntax/test_data/parser/err/0038_endless_inclusive_range.txt b/crates/ra_syntax/test_data/parser/err/0038_endless_inclusive_range.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/err/0038_endless_inclusive_range.txt rename to crates/ra_syntax/test_data/parser/err/0038_endless_inclusive_range.rast diff --git a/crates/ra_syntax/test_data/parser/err/0039_lambda_recovery.txt b/crates/ra_syntax/test_data/parser/err/0039_lambda_recovery.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/err/0039_lambda_recovery.txt rename to crates/ra_syntax/test_data/parser/err/0039_lambda_recovery.rast diff --git a/crates/ra_syntax/test_data/parser/inline/err/0001_array_type_missing_semi.txt b/crates/ra_syntax/test_data/parser/inline/err/0001_array_type_missing_semi.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/err/0001_array_type_missing_semi.txt rename to crates/ra_syntax/test_data/parser/inline/err/0001_array_type_missing_semi.rast diff --git a/crates/ra_syntax/test_data/parser/inline/err/0002_misplaced_label_err.txt b/crates/ra_syntax/test_data/parser/inline/err/0002_misplaced_label_err.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/err/0002_misplaced_label_err.txt rename to crates/ra_syntax/test_data/parser/inline/err/0002_misplaced_label_err.rast diff --git a/crates/ra_syntax/test_data/parser/inline/err/0003_pointer_type_no_mutability.txt b/crates/ra_syntax/test_data/parser/inline/err/0003_pointer_type_no_mutability.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/err/0003_pointer_type_no_mutability.txt rename to crates/ra_syntax/test_data/parser/inline/err/0003_pointer_type_no_mutability.rast diff --git a/crates/ra_syntax/test_data/parser/inline/err/0004_impl_type.txt b/crates/ra_syntax/test_data/parser/inline/err/0004_impl_type.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/err/0004_impl_type.txt rename to crates/ra_syntax/test_data/parser/inline/err/0004_impl_type.rast diff --git a/crates/ra_syntax/test_data/parser/inline/err/0005_fn_pointer_type_missing_fn.txt b/crates/ra_syntax/test_data/parser/inline/err/0005_fn_pointer_type_missing_fn.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/err/0005_fn_pointer_type_missing_fn.txt rename to crates/ra_syntax/test_data/parser/inline/err/0005_fn_pointer_type_missing_fn.rast diff --git a/crates/ra_syntax/test_data/parser/inline/err/0006_unsafe_block_in_mod.txt b/crates/ra_syntax/test_data/parser/inline/err/0006_unsafe_block_in_mod.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/err/0006_unsafe_block_in_mod.txt rename to crates/ra_syntax/test_data/parser/inline/err/0006_unsafe_block_in_mod.rast diff --git a/crates/ra_syntax/test_data/parser/inline/err/0007_async_without_semicolon.txt b/crates/ra_syntax/test_data/parser/inline/err/0007_async_without_semicolon.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/err/0007_async_without_semicolon.txt rename to crates/ra_syntax/test_data/parser/inline/err/0007_async_without_semicolon.rast diff --git a/crates/ra_syntax/test_data/parser/inline/err/0008_pub_expr.txt b/crates/ra_syntax/test_data/parser/inline/err/0008_pub_expr.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/err/0008_pub_expr.txt rename to crates/ra_syntax/test_data/parser/inline/err/0008_pub_expr.rast diff --git a/crates/ra_syntax/test_data/parser/inline/err/0009_attr_on_expr_not_allowed.txt b/crates/ra_syntax/test_data/parser/inline/err/0009_attr_on_expr_not_allowed.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/err/0009_attr_on_expr_not_allowed.txt rename to crates/ra_syntax/test_data/parser/inline/err/0009_attr_on_expr_not_allowed.rast diff --git a/crates/ra_syntax/test_data/parser/inline/err/0010_bad_tuple_index_expr.txt b/crates/ra_syntax/test_data/parser/inline/err/0010_bad_tuple_index_expr.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/err/0010_bad_tuple_index_expr.txt rename to crates/ra_syntax/test_data/parser/inline/err/0010_bad_tuple_index_expr.rast diff --git a/crates/ra_syntax/test_data/parser/inline/err/0010_wrong_order_fns.txt b/crates/ra_syntax/test_data/parser/inline/err/0010_wrong_order_fns.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/err/0010_wrong_order_fns.txt rename to crates/ra_syntax/test_data/parser/inline/err/0010_wrong_order_fns.rast diff --git a/crates/ra_syntax/test_data/parser/inline/err/0013_static_underscore.txt b/crates/ra_syntax/test_data/parser/inline/err/0013_static_underscore.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/err/0013_static_underscore.txt rename to crates/ra_syntax/test_data/parser/inline/err/0013_static_underscore.rast diff --git a/crates/ra_syntax/test_data/parser/inline/err/0014_default_fn_type.txt b/crates/ra_syntax/test_data/parser/inline/err/0014_default_fn_type.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/err/0014_default_fn_type.txt rename to crates/ra_syntax/test_data/parser/inline/err/0014_default_fn_type.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0001_trait_item_list.txt b/crates/ra_syntax/test_data/parser/inline/ok/0001_trait_item_list.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0001_trait_item_list.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0001_trait_item_list.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0002_use_tree_list.txt b/crates/ra_syntax/test_data/parser/inline/ok/0002_use_tree_list.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0002_use_tree_list.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0002_use_tree_list.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0003_where_pred_for.txt b/crates/ra_syntax/test_data/parser/inline/ok/0003_where_pred_for.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0003_where_pred_for.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0003_where_pred_for.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0004_value_parameters_no_patterns.txt b/crates/ra_syntax/test_data/parser/inline/ok/0004_value_parameters_no_patterns.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0004_value_parameters_no_patterns.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0004_value_parameters_no_patterns.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0005_function_type_params.txt b/crates/ra_syntax/test_data/parser/inline/ok/0005_function_type_params.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0005_function_type_params.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0005_function_type_params.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0006_self_param.txt b/crates/ra_syntax/test_data/parser/inline/ok/0006_self_param.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0006_self_param.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0006_self_param.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0007_type_param_bounds.txt b/crates/ra_syntax/test_data/parser/inline/ok/0007_type_param_bounds.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0007_type_param_bounds.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0007_type_param_bounds.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0008_path_part.txt b/crates/ra_syntax/test_data/parser/inline/ok/0008_path_part.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0008_path_part.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0008_path_part.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0009_loop_expr.txt b/crates/ra_syntax/test_data/parser/inline/ok/0009_loop_expr.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0009_loop_expr.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0009_loop_expr.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0010_extern_block.txt b/crates/ra_syntax/test_data/parser/inline/ok/0010_extern_block.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0010_extern_block.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0010_extern_block.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0011_field_expr.txt b/crates/ra_syntax/test_data/parser/inline/ok/0011_field_expr.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0011_field_expr.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0011_field_expr.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0012_type_item_where_clause.txt b/crates/ra_syntax/test_data/parser/inline/ok/0012_type_item_where_clause.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0012_type_item_where_clause.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0012_type_item_where_clause.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0013_pointer_type_mut.txt b/crates/ra_syntax/test_data/parser/inline/ok/0013_pointer_type_mut.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0013_pointer_type_mut.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0013_pointer_type_mut.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0014_never_type.txt b/crates/ra_syntax/test_data/parser/inline/ok/0014_never_type.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0014_never_type.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0014_never_type.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0015_continue_expr.txt b/crates/ra_syntax/test_data/parser/inline/ok/0015_continue_expr.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0015_continue_expr.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0015_continue_expr.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0016_unsafe_trait.txt b/crates/ra_syntax/test_data/parser/inline/ok/0016_unsafe_trait.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0016_unsafe_trait.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0016_unsafe_trait.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0017_array_type.txt b/crates/ra_syntax/test_data/parser/inline/ok/0017_array_type.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0017_array_type.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0017_array_type.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0018_arb_self_types.txt b/crates/ra_syntax/test_data/parser/inline/ok/0018_arb_self_types.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0018_arb_self_types.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0018_arb_self_types.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0019_unary_expr.txt b/crates/ra_syntax/test_data/parser/inline/ok/0019_unary_expr.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0019_unary_expr.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0019_unary_expr.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0020_use_star.txt b/crates/ra_syntax/test_data/parser/inline/ok/0020_use_star.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0020_use_star.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0020_use_star.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0021_impl_item_list.txt b/crates/ra_syntax/test_data/parser/inline/ok/0021_impl_item_list.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0021_impl_item_list.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0021_impl_item_list.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0022_crate_visibility.txt b/crates/ra_syntax/test_data/parser/inline/ok/0022_crate_visibility.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0022_crate_visibility.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0022_crate_visibility.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0023_placeholder_type.txt b/crates/ra_syntax/test_data/parser/inline/ok/0023_placeholder_type.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0023_placeholder_type.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0023_placeholder_type.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0024_slice_pat.txt b/crates/ra_syntax/test_data/parser/inline/ok/0024_slice_pat.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0024_slice_pat.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0024_slice_pat.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0025_slice_type.txt b/crates/ra_syntax/test_data/parser/inline/ok/0025_slice_type.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0025_slice_type.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0025_slice_type.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0026_tuple_pat_fields.txt b/crates/ra_syntax/test_data/parser/inline/ok/0026_tuple_pat_fields.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0026_tuple_pat_fields.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0026_tuple_pat_fields.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0027_ref_pat.txt b/crates/ra_syntax/test_data/parser/inline/ok/0027_ref_pat.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0027_ref_pat.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0027_ref_pat.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0028_impl_trait_type.txt b/crates/ra_syntax/test_data/parser/inline/ok/0028_impl_trait_type.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0028_impl_trait_type.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0028_impl_trait_type.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0029_cast_expr.txt b/crates/ra_syntax/test_data/parser/inline/ok/0029_cast_expr.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0029_cast_expr.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0029_cast_expr.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0030_cond.txt b/crates/ra_syntax/test_data/parser/inline/ok/0030_cond.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0030_cond.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0030_cond.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0031_while_expr.txt b/crates/ra_syntax/test_data/parser/inline/ok/0031_while_expr.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0031_while_expr.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0031_while_expr.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0032_fn_pointer_type.txt b/crates/ra_syntax/test_data/parser/inline/ok/0032_fn_pointer_type.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0032_fn_pointer_type.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0032_fn_pointer_type.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0033_reference_type;.txt b/crates/ra_syntax/test_data/parser/inline/ok/0033_reference_type;.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0033_reference_type;.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0033_reference_type;.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0034_break_expr.txt b/crates/ra_syntax/test_data/parser/inline/ok/0034_break_expr.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0034_break_expr.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0034_break_expr.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0036_unsafe_extern_fn.txt b/crates/ra_syntax/test_data/parser/inline/ok/0036_unsafe_extern_fn.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0036_unsafe_extern_fn.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0036_unsafe_extern_fn.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0037_qual_paths.txt b/crates/ra_syntax/test_data/parser/inline/ok/0037_qual_paths.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0037_qual_paths.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0037_qual_paths.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0038_full_range_expr.txt b/crates/ra_syntax/test_data/parser/inline/ok/0038_full_range_expr.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0038_full_range_expr.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0038_full_range_expr.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0039_type_arg.txt b/crates/ra_syntax/test_data/parser/inline/ok/0039_type_arg.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0039_type_arg.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0039_type_arg.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0040_crate_keyword_vis.txt b/crates/ra_syntax/test_data/parser/inline/ok/0040_crate_keyword_vis.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0040_crate_keyword_vis.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0040_crate_keyword_vis.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0041_trait_item.txt b/crates/ra_syntax/test_data/parser/inline/ok/0041_trait_item.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0041_trait_item.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0041_trait_item.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0042_call_expr.txt b/crates/ra_syntax/test_data/parser/inline/ok/0042_call_expr.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0042_call_expr.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0042_call_expr.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0043_use_alias.txt b/crates/ra_syntax/test_data/parser/inline/ok/0043_use_alias.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0043_use_alias.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0043_use_alias.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0044_block_items.txt b/crates/ra_syntax/test_data/parser/inline/ok/0044_block_items.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0044_block_items.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0044_block_items.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0045_param_list_opt_patterns.txt b/crates/ra_syntax/test_data/parser/inline/ok/0045_param_list_opt_patterns.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0045_param_list_opt_patterns.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0045_param_list_opt_patterns.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0046_singleton_tuple_type.txt b/crates/ra_syntax/test_data/parser/inline/ok/0046_singleton_tuple_type.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0046_singleton_tuple_type.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0046_singleton_tuple_type.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0047_unsafe_default_impl.txt b/crates/ra_syntax/test_data/parser/inline/ok/0047_unsafe_default_impl.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0047_unsafe_default_impl.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0047_unsafe_default_impl.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0048_path_type_with_bounds.txt b/crates/ra_syntax/test_data/parser/inline/ok/0048_path_type_with_bounds.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0048_path_type_with_bounds.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0048_path_type_with_bounds.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0050_fn_decl.txt b/crates/ra_syntax/test_data/parser/inline/ok/0050_fn_decl.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0050_fn_decl.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0050_fn_decl.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0051_unit_type.txt b/crates/ra_syntax/test_data/parser/inline/ok/0051_unit_type.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0051_unit_type.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0051_unit_type.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0052_path_type.txt b/crates/ra_syntax/test_data/parser/inline/ok/0052_path_type.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0052_path_type.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0052_path_type.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0053_path_expr.txt b/crates/ra_syntax/test_data/parser/inline/ok/0053_path_expr.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0053_path_expr.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0053_path_expr.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0054_record_field_attrs.txt b/crates/ra_syntax/test_data/parser/inline/ok/0054_record_field_attrs.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0054_record_field_attrs.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0054_record_field_attrs.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0055_literal_pattern.txt b/crates/ra_syntax/test_data/parser/inline/ok/0055_literal_pattern.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0055_literal_pattern.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0055_literal_pattern.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0056_where_clause.txt b/crates/ra_syntax/test_data/parser/inline/ok/0056_where_clause.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0056_where_clause.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0056_where_clause.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0057_const_fn.txt b/crates/ra_syntax/test_data/parser/inline/ok/0057_const_fn.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0057_const_fn.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0057_const_fn.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0058_range_pat.txt b/crates/ra_syntax/test_data/parser/inline/ok/0058_range_pat.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0058_range_pat.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0058_range_pat.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0059_match_arms_commas.txt b/crates/ra_syntax/test_data/parser/inline/ok/0059_match_arms_commas.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0059_match_arms_commas.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0059_match_arms_commas.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0060_extern_crate.txt b/crates/ra_syntax/test_data/parser/inline/ok/0060_extern_crate.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0060_extern_crate.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0060_extern_crate.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0061_record_lit.txt b/crates/ra_syntax/test_data/parser/inline/ok/0061_record_lit.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0061_record_lit.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0061_record_lit.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0062_mod_contents.txt b/crates/ra_syntax/test_data/parser/inline/ok/0062_mod_contents.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0062_mod_contents.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0062_mod_contents.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0063_impl_def_neg.txt b/crates/ra_syntax/test_data/parser/inline/ok/0063_impl_def_neg.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0063_impl_def_neg.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0063_impl_def_neg.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0064_if_expr.txt b/crates/ra_syntax/test_data/parser/inline/ok/0064_if_expr.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0064_if_expr.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0064_if_expr.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0065_dyn_trait_type.txt b/crates/ra_syntax/test_data/parser/inline/ok/0065_dyn_trait_type.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0065_dyn_trait_type.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0065_dyn_trait_type.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0066_match_arm.txt b/crates/ra_syntax/test_data/parser/inline/ok/0066_match_arm.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0066_match_arm.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0066_match_arm.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0067_crate_path.txt b/crates/ra_syntax/test_data/parser/inline/ok/0067_crate_path.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0067_crate_path.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0067_crate_path.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0068_union_items.txt b/crates/ra_syntax/test_data/parser/inline/ok/0068_union_items.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0068_union_items.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0068_union_items.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0069_use_tree_list_after_path.txt b/crates/ra_syntax/test_data/parser/inline/ok/0069_use_tree_list_after_path.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0069_use_tree_list_after_path.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0069_use_tree_list_after_path.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0070_stmt_bin_expr_ambiguity.txt b/crates/ra_syntax/test_data/parser/inline/ok/0070_stmt_bin_expr_ambiguity.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0070_stmt_bin_expr_ambiguity.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0070_stmt_bin_expr_ambiguity.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0071_match_expr.txt b/crates/ra_syntax/test_data/parser/inline/ok/0071_match_expr.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0071_match_expr.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0071_match_expr.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0072_return_expr.txt b/crates/ra_syntax/test_data/parser/inline/ok/0072_return_expr.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0072_return_expr.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0072_return_expr.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0073_type_item_type_params.txt b/crates/ra_syntax/test_data/parser/inline/ok/0073_type_item_type_params.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0073_type_item_type_params.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0073_type_item_type_params.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0074_stmt_postfix_expr_ambiguity.txt b/crates/ra_syntax/test_data/parser/inline/ok/0074_stmt_postfix_expr_ambiguity.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0074_stmt_postfix_expr_ambiguity.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0074_stmt_postfix_expr_ambiguity.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0075_block.txt b/crates/ra_syntax/test_data/parser/inline/ok/0075_block.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0075_block.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0075_block.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0076_function_where_clause.txt b/crates/ra_syntax/test_data/parser/inline/ok/0076_function_where_clause.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0076_function_where_clause.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0076_function_where_clause.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0077_try_expr.txt b/crates/ra_syntax/test_data/parser/inline/ok/0077_try_expr.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0077_try_expr.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0077_try_expr.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0078_type_item.txt b/crates/ra_syntax/test_data/parser/inline/ok/0078_type_item.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0078_type_item.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0078_type_item.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0079_impl_def.txt b/crates/ra_syntax/test_data/parser/inline/ok/0079_impl_def.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0079_impl_def.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0079_impl_def.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0080_postfix_range.txt b/crates/ra_syntax/test_data/parser/inline/ok/0080_postfix_range.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0080_postfix_range.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0080_postfix_range.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0081_for_type.txt b/crates/ra_syntax/test_data/parser/inline/ok/0081_for_type.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0081_for_type.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0081_for_type.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0082_ref_expr.txt b/crates/ra_syntax/test_data/parser/inline/ok/0082_ref_expr.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0082_ref_expr.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0082_ref_expr.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0083_struct_items.txt b/crates/ra_syntax/test_data/parser/inline/ok/0083_struct_items.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0083_struct_items.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0083_struct_items.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0084_paren_type.txt b/crates/ra_syntax/test_data/parser/inline/ok/0084_paren_type.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0084_paren_type.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0084_paren_type.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0085_expr_literals.txt b/crates/ra_syntax/test_data/parser/inline/ok/0085_expr_literals.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0085_expr_literals.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0085_expr_literals.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0086_function_ret_type.txt b/crates/ra_syntax/test_data/parser/inline/ok/0086_function_ret_type.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0086_function_ret_type.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0086_function_ret_type.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0087_unsafe_impl.txt b/crates/ra_syntax/test_data/parser/inline/ok/0087_unsafe_impl.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0087_unsafe_impl.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0087_unsafe_impl.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0088_break_ambiguity.txt b/crates/ra_syntax/test_data/parser/inline/ok/0088_break_ambiguity.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0088_break_ambiguity.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0088_break_ambiguity.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0089_extern_fn.txt b/crates/ra_syntax/test_data/parser/inline/ok/0089_extern_fn.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0089_extern_fn.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0089_extern_fn.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0090_type_param_default.txt b/crates/ra_syntax/test_data/parser/inline/ok/0090_type_param_default.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0090_type_param_default.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0090_type_param_default.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0091_auto_trait.txt b/crates/ra_syntax/test_data/parser/inline/ok/0091_auto_trait.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0091_auto_trait.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0091_auto_trait.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0092_fn_pointer_type_with_ret.txt b/crates/ra_syntax/test_data/parser/inline/ok/0092_fn_pointer_type_with_ret.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0092_fn_pointer_type_with_ret.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0092_fn_pointer_type_with_ret.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0093_index_expr.txt b/crates/ra_syntax/test_data/parser/inline/ok/0093_index_expr.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0093_index_expr.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0093_index_expr.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0094_unsafe_auto_trait.txt b/crates/ra_syntax/test_data/parser/inline/ok/0094_unsafe_auto_trait.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0094_unsafe_auto_trait.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0094_unsafe_auto_trait.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0095_placeholder_pat.txt b/crates/ra_syntax/test_data/parser/inline/ok/0095_placeholder_pat.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0095_placeholder_pat.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0095_placeholder_pat.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0096_no_semi_after_block.txt b/crates/ra_syntax/test_data/parser/inline/ok/0096_no_semi_after_block.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0096_no_semi_after_block.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0096_no_semi_after_block.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0097_default_impl.txt b/crates/ra_syntax/test_data/parser/inline/ok/0097_default_impl.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0097_default_impl.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0097_default_impl.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0098_const_unsafe_fn.txt b/crates/ra_syntax/test_data/parser/inline/ok/0098_const_unsafe_fn.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0098_const_unsafe_fn.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0098_const_unsafe_fn.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0099_param_list.txt b/crates/ra_syntax/test_data/parser/inline/ok/0099_param_list.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0099_param_list.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0099_param_list.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0100_for_expr.txt b/crates/ra_syntax/test_data/parser/inline/ok/0100_for_expr.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0100_for_expr.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0100_for_expr.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0101_unsafe_fn.txt b/crates/ra_syntax/test_data/parser/inline/ok/0101_unsafe_fn.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0101_unsafe_fn.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0101_unsafe_fn.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0102_record_field_pat_list.txt b/crates/ra_syntax/test_data/parser/inline/ok/0102_record_field_pat_list.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0102_record_field_pat_list.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0102_record_field_pat_list.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0103_array_expr.txt b/crates/ra_syntax/test_data/parser/inline/ok/0103_array_expr.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0103_array_expr.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0103_array_expr.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0104_path_fn_trait_args.txt b/crates/ra_syntax/test_data/parser/inline/ok/0104_path_fn_trait_args.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0104_path_fn_trait_args.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0104_path_fn_trait_args.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0105_block_expr.txt b/crates/ra_syntax/test_data/parser/inline/ok/0105_block_expr.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0105_block_expr.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0105_block_expr.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0106_lambda_expr.txt b/crates/ra_syntax/test_data/parser/inline/ok/0106_lambda_expr.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0106_lambda_expr.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0106_lambda_expr.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0107_method_call_expr.txt b/crates/ra_syntax/test_data/parser/inline/ok/0107_method_call_expr.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0107_method_call_expr.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0107_method_call_expr.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0108_tuple_expr.txt b/crates/ra_syntax/test_data/parser/inline/ok/0108_tuple_expr.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0108_tuple_expr.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0108_tuple_expr.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0109_label.txt b/crates/ra_syntax/test_data/parser/inline/ok/0109_label.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0109_label.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0109_label.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0110_use_path.txt b/crates/ra_syntax/test_data/parser/inline/ok/0110_use_path.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0110_use_path.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0110_use_path.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0111_tuple_pat.txt b/crates/ra_syntax/test_data/parser/inline/ok/0111_tuple_pat.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0111_tuple_pat.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0111_tuple_pat.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0112_bind_pat.txt b/crates/ra_syntax/test_data/parser/inline/ok/0112_bind_pat.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0112_bind_pat.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0112_bind_pat.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0113_nocontentexpr.txt b/crates/ra_syntax/test_data/parser/inline/ok/0113_nocontentexpr.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0113_nocontentexpr.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0113_nocontentexpr.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0114_tuple_struct_where.txt b/crates/ra_syntax/test_data/parser/inline/ok/0114_tuple_struct_where.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0114_tuple_struct_where.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0114_tuple_struct_where.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0115_tuple_field_attrs.txt b/crates/ra_syntax/test_data/parser/inline/ok/0115_tuple_field_attrs.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0115_tuple_field_attrs.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0115_tuple_field_attrs.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0117_macro_call_type.txt b/crates/ra_syntax/test_data/parser/inline/ok/0117_macro_call_type.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0117_macro_call_type.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0117_macro_call_type.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0118_impl_inner_attributes.txt b/crates/ra_syntax/test_data/parser/inline/ok/0118_impl_inner_attributes.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0118_impl_inner_attributes.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0118_impl_inner_attributes.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0118_match_guard.txt b/crates/ra_syntax/test_data/parser/inline/ok/0118_match_guard.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0118_match_guard.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0118_match_guard.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0120_match_arms_inner_attribute.txt b/crates/ra_syntax/test_data/parser/inline/ok/0120_match_arms_inner_attribute.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0120_match_arms_inner_attribute.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0120_match_arms_inner_attribute.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0121_match_arms_outer_attributes.txt b/crates/ra_syntax/test_data/parser/inline/ok/0121_match_arms_outer_attributes.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0121_match_arms_outer_attributes.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0121_match_arms_outer_attributes.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0122_generic_lifetime_type_attribute.txt b/crates/ra_syntax/test_data/parser/inline/ok/0122_generic_lifetime_type_attribute.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0122_generic_lifetime_type_attribute.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0122_generic_lifetime_type_attribute.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0123_param_list_vararg.txt b/crates/ra_syntax/test_data/parser/inline/ok/0123_param_list_vararg.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0123_param_list_vararg.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0123_param_list_vararg.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0124_async_fn.txt b/crates/ra_syntax/test_data/parser/inline/ok/0124_async_fn.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0124_async_fn.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0124_async_fn.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0125_crate_keyword_path.txt b/crates/ra_syntax/test_data/parser/inline/ok/0125_crate_keyword_path.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0125_crate_keyword_path.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0125_crate_keyword_path.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0125_record_literal_field_with_attr.txt b/crates/ra_syntax/test_data/parser/inline/ok/0125_record_literal_field_with_attr.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0125_record_literal_field_with_attr.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0125_record_literal_field_with_attr.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0126_attr_on_expr_stmt.txt b/crates/ra_syntax/test_data/parser/inline/ok/0126_attr_on_expr_stmt.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0126_attr_on_expr_stmt.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0126_attr_on_expr_stmt.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0127_attr_on_last_expr_in_block.txt b/crates/ra_syntax/test_data/parser/inline/ok/0127_attr_on_last_expr_in_block.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0127_attr_on_last_expr_in_block.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0127_attr_on_last_expr_in_block.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0128_combined_fns.txt b/crates/ra_syntax/test_data/parser/inline/ok/0128_combined_fns.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0128_combined_fns.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0128_combined_fns.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0129_marco_pat.txt b/crates/ra_syntax/test_data/parser/inline/ok/0129_marco_pat.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0129_marco_pat.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0129_marco_pat.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0130_let_stmt.txt b/crates/ra_syntax/test_data/parser/inline/ok/0130_let_stmt.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0130_let_stmt.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0130_let_stmt.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0130_try_block_expr.txt b/crates/ra_syntax/test_data/parser/inline/ok/0130_try_block_expr.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0130_try_block_expr.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0130_try_block_expr.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0131_existential_type.txt b/crates/ra_syntax/test_data/parser/inline/ok/0131_existential_type.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0131_existential_type.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0131_existential_type.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0132_box_expr.txt b/crates/ra_syntax/test_data/parser/inline/ok/0132_box_expr.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0132_box_expr.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0132_box_expr.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0132_default_fn_type.txt b/crates/ra_syntax/test_data/parser/inline/ok/0132_default_fn_type.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0132_default_fn_type.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0132_default_fn_type.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0134_nocontentexpr_after_item.txt b/crates/ra_syntax/test_data/parser/inline/ok/0134_nocontentexpr_after_item.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0134_nocontentexpr_after_item.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0134_nocontentexpr_after_item.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0137_await_expr.txt b/crates/ra_syntax/test_data/parser/inline/ok/0137_await_expr.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0137_await_expr.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0137_await_expr.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0138_associated_type_bounds.txt b/crates/ra_syntax/test_data/parser/inline/ok/0138_associated_type_bounds.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0138_associated_type_bounds.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0138_associated_type_bounds.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0138_expression_after_block.txt b/crates/ra_syntax/test_data/parser/inline/ok/0138_expression_after_block.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0138_expression_after_block.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0138_expression_after_block.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0138_self_param_outer_attr.txt b/crates/ra_syntax/test_data/parser/inline/ok/0138_self_param_outer_attr.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0138_self_param_outer_attr.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0138_self_param_outer_attr.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0139_param_outer_arg.txt b/crates/ra_syntax/test_data/parser/inline/ok/0139_param_outer_arg.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0139_param_outer_arg.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0139_param_outer_arg.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0142_for_range_from.txt b/crates/ra_syntax/test_data/parser/inline/ok/0142_for_range_from.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0142_for_range_from.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0142_for_range_from.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0143_box_pat.txt b/crates/ra_syntax/test_data/parser/inline/ok/0143_box_pat.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0143_box_pat.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0143_box_pat.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0144_dot_dot_pat.txt b/crates/ra_syntax/test_data/parser/inline/ok/0144_dot_dot_pat.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0144_dot_dot_pat.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0144_dot_dot_pat.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0145_record_field_pat.txt b/crates/ra_syntax/test_data/parser/inline/ok/0145_record_field_pat.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0145_record_field_pat.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0145_record_field_pat.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0146_as_precedence.txt b/crates/ra_syntax/test_data/parser/inline/ok/0146_as_precedence.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0146_as_precedence.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0146_as_precedence.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0147_const_param.txt b/crates/ra_syntax/test_data/parser/inline/ok/0147_const_param.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0147_const_param.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0147_const_param.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0147_macro_def.txt b/crates/ra_syntax/test_data/parser/inline/ok/0147_macro_def.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0147_macro_def.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0147_macro_def.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0148_pub_macro_def.txt b/crates/ra_syntax/test_data/parser/inline/ok/0148_pub_macro_def.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0148_pub_macro_def.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0148_pub_macro_def.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0150_array_attrs.txt b/crates/ra_syntax/test_data/parser/inline/ok/0150_array_attrs.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0150_array_attrs.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0150_array_attrs.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0150_impl_type_params.txt b/crates/ra_syntax/test_data/parser/inline/ok/0150_impl_type_params.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0150_impl_type_params.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0150_impl_type_params.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0151_trait_alias.txt b/crates/ra_syntax/test_data/parser/inline/ok/0151_trait_alias.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0151_trait_alias.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0151_trait_alias.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0152_arg_with_attr.txt b/crates/ra_syntax/test_data/parser/inline/ok/0152_arg_with_attr.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0152_arg_with_attr.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0152_arg_with_attr.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0154_fn_pointer_param_ident_path.txt b/crates/ra_syntax/test_data/parser/inline/ok/0154_fn_pointer_param_ident_path.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0154_fn_pointer_param_ident_path.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0154_fn_pointer_param_ident_path.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0155_closure_params.txt b/crates/ra_syntax/test_data/parser/inline/ok/0155_closure_params.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0155_closure_params.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0155_closure_params.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0156_fn_def_param.txt b/crates/ra_syntax/test_data/parser/inline/ok/0156_fn_def_param.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0156_fn_def_param.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0156_fn_def_param.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0156_or_pattern.txt b/crates/ra_syntax/test_data/parser/inline/ok/0156_or_pattern.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0156_or_pattern.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0156_or_pattern.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0157_fn_pointer_unnamed_arg.txt b/crates/ra_syntax/test_data/parser/inline/ok/0157_fn_pointer_unnamed_arg.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0157_fn_pointer_unnamed_arg.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0157_fn_pointer_unnamed_arg.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0157_variant_discriminant.txt b/crates/ra_syntax/test_data/parser/inline/ok/0157_variant_discriminant.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0157_variant_discriminant.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0157_variant_discriminant.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0158_binop_resets_statementness.txt b/crates/ra_syntax/test_data/parser/inline/ok/0158_binop_resets_statementness.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0158_binop_resets_statementness.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0158_binop_resets_statementness.rast diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0158_lambda_ret_block.txt b/crates/ra_syntax/test_data/parser/inline/ok/0158_lambda_ret_block.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/inline/ok/0158_lambda_ret_block.txt rename to crates/ra_syntax/test_data/parser/inline/ok/0158_lambda_ret_block.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0000_empty.txt b/crates/ra_syntax/test_data/parser/ok/0000_empty.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0000_empty.txt rename to crates/ra_syntax/test_data/parser/ok/0000_empty.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0001_struct_item.txt b/crates/ra_syntax/test_data/parser/ok/0001_struct_item.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0001_struct_item.txt rename to crates/ra_syntax/test_data/parser/ok/0001_struct_item.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0002_struct_item_field.txt b/crates/ra_syntax/test_data/parser/ok/0002_struct_item_field.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0002_struct_item_field.txt rename to crates/ra_syntax/test_data/parser/ok/0002_struct_item_field.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0004_file_shebang.txt b/crates/ra_syntax/test_data/parser/ok/0004_file_shebang.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0004_file_shebang.txt rename to crates/ra_syntax/test_data/parser/ok/0004_file_shebang.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0005_fn_item.txt b/crates/ra_syntax/test_data/parser/ok/0005_fn_item.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0005_fn_item.txt rename to crates/ra_syntax/test_data/parser/ok/0005_fn_item.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0006_inner_attributes.txt b/crates/ra_syntax/test_data/parser/ok/0006_inner_attributes.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0006_inner_attributes.txt rename to crates/ra_syntax/test_data/parser/ok/0006_inner_attributes.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0007_extern_crate.txt b/crates/ra_syntax/test_data/parser/ok/0007_extern_crate.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0007_extern_crate.txt rename to crates/ra_syntax/test_data/parser/ok/0007_extern_crate.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0008_mod_item.txt b/crates/ra_syntax/test_data/parser/ok/0008_mod_item.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0008_mod_item.txt rename to crates/ra_syntax/test_data/parser/ok/0008_mod_item.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0009_use_item.txt b/crates/ra_syntax/test_data/parser/ok/0009_use_item.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0009_use_item.txt rename to crates/ra_syntax/test_data/parser/ok/0009_use_item.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0010_use_path_segments.txt b/crates/ra_syntax/test_data/parser/ok/0010_use_path_segments.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0010_use_path_segments.txt rename to crates/ra_syntax/test_data/parser/ok/0010_use_path_segments.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0011_outer_attribute.txt b/crates/ra_syntax/test_data/parser/ok/0011_outer_attribute.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0011_outer_attribute.txt rename to crates/ra_syntax/test_data/parser/ok/0011_outer_attribute.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0012_visibility.txt b/crates/ra_syntax/test_data/parser/ok/0012_visibility.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0012_visibility.txt rename to crates/ra_syntax/test_data/parser/ok/0012_visibility.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0013_use_path_self_super.txt b/crates/ra_syntax/test_data/parser/ok/0013_use_path_self_super.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0013_use_path_self_super.txt rename to crates/ra_syntax/test_data/parser/ok/0013_use_path_self_super.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0014_use_tree.txt b/crates/ra_syntax/test_data/parser/ok/0014_use_tree.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0014_use_tree.txt rename to crates/ra_syntax/test_data/parser/ok/0014_use_tree.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0015_use_tree.txt b/crates/ra_syntax/test_data/parser/ok/0015_use_tree.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0015_use_tree.txt rename to crates/ra_syntax/test_data/parser/ok/0015_use_tree.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0016_struct_flavors.txt b/crates/ra_syntax/test_data/parser/ok/0016_struct_flavors.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0016_struct_flavors.txt rename to crates/ra_syntax/test_data/parser/ok/0016_struct_flavors.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0017_attr_trailing_comma.txt b/crates/ra_syntax/test_data/parser/ok/0017_attr_trailing_comma.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0017_attr_trailing_comma.txt rename to crates/ra_syntax/test_data/parser/ok/0017_attr_trailing_comma.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0018_struct_type_params.txt b/crates/ra_syntax/test_data/parser/ok/0018_struct_type_params.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0018_struct_type_params.txt rename to crates/ra_syntax/test_data/parser/ok/0018_struct_type_params.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0019_enums.txt b/crates/ra_syntax/test_data/parser/ok/0019_enums.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0019_enums.txt rename to crates/ra_syntax/test_data/parser/ok/0019_enums.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0020_type_param_bounds.txt b/crates/ra_syntax/test_data/parser/ok/0020_type_param_bounds.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0020_type_param_bounds.txt rename to crates/ra_syntax/test_data/parser/ok/0020_type_param_bounds.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0021_extern_fn.txt b/crates/ra_syntax/test_data/parser/ok/0021_extern_fn.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0021_extern_fn.txt rename to crates/ra_syntax/test_data/parser/ok/0021_extern_fn.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0022_empty_extern_block.txt b/crates/ra_syntax/test_data/parser/ok/0022_empty_extern_block.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0022_empty_extern_block.txt rename to crates/ra_syntax/test_data/parser/ok/0022_empty_extern_block.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0023_static_items.txt b/crates/ra_syntax/test_data/parser/ok/0023_static_items.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0023_static_items.txt rename to crates/ra_syntax/test_data/parser/ok/0023_static_items.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0024_const_item.txt b/crates/ra_syntax/test_data/parser/ok/0024_const_item.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0024_const_item.txt rename to crates/ra_syntax/test_data/parser/ok/0024_const_item.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0025_extern_fn_in_block.txt b/crates/ra_syntax/test_data/parser/ok/0025_extern_fn_in_block.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0025_extern_fn_in_block.txt rename to crates/ra_syntax/test_data/parser/ok/0025_extern_fn_in_block.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0026_const_fn_in_block.txt b/crates/ra_syntax/test_data/parser/ok/0026_const_fn_in_block.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0026_const_fn_in_block.txt rename to crates/ra_syntax/test_data/parser/ok/0026_const_fn_in_block.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0027_unsafe_fn_in_block.txt b/crates/ra_syntax/test_data/parser/ok/0027_unsafe_fn_in_block.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0027_unsafe_fn_in_block.txt rename to crates/ra_syntax/test_data/parser/ok/0027_unsafe_fn_in_block.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0028_operator_binding_power.txt b/crates/ra_syntax/test_data/parser/ok/0028_operator_binding_power.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0028_operator_binding_power.txt rename to crates/ra_syntax/test_data/parser/ok/0028_operator_binding_power.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0029_range_forms.txt b/crates/ra_syntax/test_data/parser/ok/0029_range_forms.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0029_range_forms.txt rename to crates/ra_syntax/test_data/parser/ok/0029_range_forms.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0030_string_suffixes.txt b/crates/ra_syntax/test_data/parser/ok/0030_string_suffixes.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0030_string_suffixes.txt rename to crates/ra_syntax/test_data/parser/ok/0030_string_suffixes.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0030_traits.txt b/crates/ra_syntax/test_data/parser/ok/0030_traits.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0030_traits.txt rename to crates/ra_syntax/test_data/parser/ok/0030_traits.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0031_extern.txt b/crates/ra_syntax/test_data/parser/ok/0031_extern.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0031_extern.txt rename to crates/ra_syntax/test_data/parser/ok/0031_extern.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0032_where_for.txt b/crates/ra_syntax/test_data/parser/ok/0032_where_for.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0032_where_for.txt rename to crates/ra_syntax/test_data/parser/ok/0032_where_for.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0033_label_break.txt b/crates/ra_syntax/test_data/parser/ok/0033_label_break.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0033_label_break.txt rename to crates/ra_syntax/test_data/parser/ok/0033_label_break.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0034_crate_path_in_call.txt b/crates/ra_syntax/test_data/parser/ok/0034_crate_path_in_call.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0034_crate_path_in_call.txt rename to crates/ra_syntax/test_data/parser/ok/0034_crate_path_in_call.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0035_weird_exprs.txt b/crates/ra_syntax/test_data/parser/ok/0035_weird_exprs.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0035_weird_exprs.txt rename to crates/ra_syntax/test_data/parser/ok/0035_weird_exprs.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0036_fully_qualified.txt b/crates/ra_syntax/test_data/parser/ok/0036_fully_qualified.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0036_fully_qualified.txt rename to crates/ra_syntax/test_data/parser/ok/0036_fully_qualified.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0037_mod.txt b/crates/ra_syntax/test_data/parser/ok/0037_mod.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0037_mod.txt rename to crates/ra_syntax/test_data/parser/ok/0037_mod.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0038_where_pred_type.txt b/crates/ra_syntax/test_data/parser/ok/0038_where_pred_type.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0038_where_pred_type.txt rename to crates/ra_syntax/test_data/parser/ok/0038_where_pred_type.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0039_raw_fn_item.txt b/crates/ra_syntax/test_data/parser/ok/0039_raw_fn_item.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0039_raw_fn_item.txt rename to crates/ra_syntax/test_data/parser/ok/0039_raw_fn_item.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0040_raw_struct_item_field.txt b/crates/ra_syntax/test_data/parser/ok/0040_raw_struct_item_field.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0040_raw_struct_item_field.txt rename to crates/ra_syntax/test_data/parser/ok/0040_raw_struct_item_field.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0041_raw_keywords.txt b/crates/ra_syntax/test_data/parser/ok/0041_raw_keywords.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0041_raw_keywords.txt rename to crates/ra_syntax/test_data/parser/ok/0041_raw_keywords.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0042_ufcs_call_list.txt b/crates/ra_syntax/test_data/parser/ok/0042_ufcs_call_list.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0042_ufcs_call_list.txt rename to crates/ra_syntax/test_data/parser/ok/0042_ufcs_call_list.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0043_complex_assignment.txt b/crates/ra_syntax/test_data/parser/ok/0043_complex_assignment.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0043_complex_assignment.txt rename to crates/ra_syntax/test_data/parser/ok/0043_complex_assignment.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0044_let_attrs.txt b/crates/ra_syntax/test_data/parser/ok/0044_let_attrs.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0044_let_attrs.txt rename to crates/ra_syntax/test_data/parser/ok/0044_let_attrs.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0045_block_inner_attrs.txt b/crates/ra_syntax/test_data/parser/ok/0045_block_inner_attrs.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0045_block_inner_attrs.txt rename to crates/ra_syntax/test_data/parser/ok/0045_block_inner_attrs.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0046_extern_inner_attributes.txt b/crates/ra_syntax/test_data/parser/ok/0046_extern_inner_attributes.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0046_extern_inner_attributes.txt rename to crates/ra_syntax/test_data/parser/ok/0046_extern_inner_attributes.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0047_minus_in_inner_pattern.txt b/crates/ra_syntax/test_data/parser/ok/0047_minus_in_inner_pattern.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0047_minus_in_inner_pattern.txt rename to crates/ra_syntax/test_data/parser/ok/0047_minus_in_inner_pattern.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0048_compound_assignment.txt b/crates/ra_syntax/test_data/parser/ok/0048_compound_assignment.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0048_compound_assignment.txt rename to crates/ra_syntax/test_data/parser/ok/0048_compound_assignment.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0049_async_block.txt b/crates/ra_syntax/test_data/parser/ok/0049_async_block.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0049_async_block.txt rename to crates/ra_syntax/test_data/parser/ok/0049_async_block.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0050_async_block_as_argument.txt b/crates/ra_syntax/test_data/parser/ok/0050_async_block_as_argument.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0050_async_block_as_argument.txt rename to crates/ra_syntax/test_data/parser/ok/0050_async_block_as_argument.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0051_parameter_attrs.txt b/crates/ra_syntax/test_data/parser/ok/0051_parameter_attrs.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0051_parameter_attrs.txt rename to crates/ra_syntax/test_data/parser/ok/0051_parameter_attrs.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0052_for_range_block.txt b/crates/ra_syntax/test_data/parser/ok/0052_for_range_block.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0052_for_range_block.txt rename to crates/ra_syntax/test_data/parser/ok/0052_for_range_block.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0053_outer_attribute_on_macro_rules.txt b/crates/ra_syntax/test_data/parser/ok/0053_outer_attribute_on_macro_rules.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0053_outer_attribute_on_macro_rules.txt rename to crates/ra_syntax/test_data/parser/ok/0053_outer_attribute_on_macro_rules.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0054_qual_path_in_type_arg.txt b/crates/ra_syntax/test_data/parser/ok/0054_qual_path_in_type_arg.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0054_qual_path_in_type_arg.txt rename to crates/ra_syntax/test_data/parser/ok/0054_qual_path_in_type_arg.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0055_dot_dot_dot.txt b/crates/ra_syntax/test_data/parser/ok/0055_dot_dot_dot.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0055_dot_dot_dot.txt rename to crates/ra_syntax/test_data/parser/ok/0055_dot_dot_dot.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0056_neq_in_type.txt b/crates/ra_syntax/test_data/parser/ok/0056_neq_in_type.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0056_neq_in_type.txt rename to crates/ra_syntax/test_data/parser/ok/0056_neq_in_type.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0057_loop_in_call.txt b/crates/ra_syntax/test_data/parser/ok/0057_loop_in_call.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0057_loop_in_call.txt rename to crates/ra_syntax/test_data/parser/ok/0057_loop_in_call.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0058_unary_expr_precedence.txt b/crates/ra_syntax/test_data/parser/ok/0058_unary_expr_precedence.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0058_unary_expr_precedence.txt rename to crates/ra_syntax/test_data/parser/ok/0058_unary_expr_precedence.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0059_loops_in_parens.txt b/crates/ra_syntax/test_data/parser/ok/0059_loops_in_parens.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0059_loops_in_parens.txt rename to crates/ra_syntax/test_data/parser/ok/0059_loops_in_parens.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0060_as_range.txt b/crates/ra_syntax/test_data/parser/ok/0060_as_range.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0060_as_range.txt rename to crates/ra_syntax/test_data/parser/ok/0060_as_range.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0061_match_full_range.txt b/crates/ra_syntax/test_data/parser/ok/0061_match_full_range.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0061_match_full_range.txt rename to crates/ra_syntax/test_data/parser/ok/0061_match_full_range.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0062_macro_2.0.txt b/crates/ra_syntax/test_data/parser/ok/0062_macro_2.0.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0062_macro_2.0.txt rename to crates/ra_syntax/test_data/parser/ok/0062_macro_2.0.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0063_trait_fn_patterns.txt b/crates/ra_syntax/test_data/parser/ok/0063_trait_fn_patterns.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0063_trait_fn_patterns.txt rename to crates/ra_syntax/test_data/parser/ok/0063_trait_fn_patterns.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0063_variadic_fun.txt b/crates/ra_syntax/test_data/parser/ok/0063_variadic_fun.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0063_variadic_fun.txt rename to crates/ra_syntax/test_data/parser/ok/0063_variadic_fun.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0064_impl_fn_params.txt b/crates/ra_syntax/test_data/parser/ok/0064_impl_fn_params.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0064_impl_fn_params.txt rename to crates/ra_syntax/test_data/parser/ok/0064_impl_fn_params.rast diff --git a/crates/ra_syntax/test_data/parser/ok/0065_comment_newline.txt b/crates/ra_syntax/test_data/parser/ok/0065_comment_newline.rast similarity index 100% rename from crates/ra_syntax/test_data/parser/ok/0065_comment_newline.txt rename to crates/ra_syntax/test_data/parser/ok/0065_comment_newline.rast diff --git a/crates/test_utils/src/lib.rs b/crates/test_utils/src/lib.rs index db03df1c45..4164bfd5ed 100644 --- a/crates/test_utils/src/lib.rs +++ b/crates/test_utils/src/lib.rs @@ -302,42 +302,40 @@ pub fn find_mismatch<'a>(expected: &'a Value, actual: &'a Value) -> Option<(&'a } } -/// Calls callback `f` with input code and file paths of all `.rs` files from `test_data_dir` +/// Calls callback `f` with input code and file paths for each `.rs` file in `test_data_dir` /// subdirectories defined by `paths`. /// -/// If the content of the matching `.txt` file differs from the output of `f()` +/// If the content of the matching output file differs from the output of `f()` /// the test will fail. /// -/// If there is no matching `.txt` file it will be created and filled with the +/// If there is no matching output file it will be created and filled with the /// output of `f()`, but the test will fail. -pub fn dir_tests(test_data_dir: &Path, paths: &[&str], f: F) +pub fn dir_tests(test_data_dir: &Path, paths: &[&str], outfile_extension: &str, f: F) where F: Fn(&str, &Path) -> String, { - for (path, input_code) in collect_tests(test_data_dir, paths) { - let parse_tree = f(&input_code, &path); - let path = path.with_extension("txt"); + for (path, input_code) in collect_rust_files(test_data_dir, paths) { + let actual = f(&input_code, &path); + let path = path.with_extension(outfile_extension); if !path.exists() { println!("\nfile: {}", path.display()); println!("No .txt file with expected result, creating...\n"); - println!("{}\n{}", input_code, parse_tree); - fs::write(&path, &parse_tree).unwrap(); - panic!("No expected result") + println!("{}\n{}", input_code, actual); + fs::write(&path, &actual).unwrap(); + panic!("No expected result"); } let expected = read_text(&path); - let expected = expected.as_str(); - let parse_tree = parse_tree.as_str(); - assert_equal_text(expected, parse_tree, &path); + assert_equal_text(&expected, &actual, &path); } } -/// Collects all `.rs` files from `test_data_dir` subdirectories defined by `paths`. -pub fn collect_tests(test_data_dir: &Path, paths: &[&str]) -> Vec<(PathBuf, String)> { +/// Collects all `.rs` files from `dir` subdirectories defined by `paths`. +pub fn collect_rust_files(root_dir: &Path, paths: &[&str]) -> Vec<(PathBuf, String)> { paths .iter() .flat_map(|path| { - let path = test_data_dir.to_owned().join(path); - test_from_dir(&path).into_iter() + let path = root_dir.to_owned().join(path); + rust_files_in_dir(&path).into_iter() }) .map(|path| { let text = read_text(&path); @@ -347,7 +345,7 @@ pub fn collect_tests(test_data_dir: &Path, paths: &[&str]) -> Vec<(PathBuf, Stri } /// Collects paths to all `.rs` files from `dir` in a sorted `Vec`. -fn test_from_dir(dir: &Path) -> Vec { +fn rust_files_in_dir(dir: &Path) -> Vec { let mut acc = Vec::new(); for file in fs::read_dir(&dir).unwrap() { let file = file.unwrap();