rust/crates/syntax/test_data/parser/inline/ok
bors[bot] 9bb9fbab3a
Merge #6965
6965: Properly attach attributes to Param instead of parent ParamList r=matklad a=Veykril

Fixes #2783, fixes #2781

The problem with `let _a = [0,#[cfg(feature = "L")]0];` has already been fixed some time ago it seems:
<details>
  <summary>Syntax Tree for the const item</summary>

```
  LET_STMT@200..236
    LET_KW@200..203 "let"
    WHITESPACE@203..204 " "
    IDENT_PAT@204..206
      NAME@204..206
        IDENT@204..206 "_a"
    WHITESPACE@206..207 " "
    EQ@207..208 "="
    WHITESPACE@208..209 " "
    ARRAY_EXPR@209..235
      L_BRACK@209..210 "["
      LITERAL@210..211
        INT_NUMBER@210..211 "0"
      COMMA@211..212 ","
      LITERAL@212..234
        ATTR@212..233
          POUND@212..213 "#"
          L_BRACK@213..214 "["
          PATH@214..217
            PATH_SEGMENT@214..217
              NAME_REF@214..217
                IDENT@214..217 "cfg"
          TOKEN_TREE@217..232
            L_PAREN@217..218 "("
            IDENT@218..225 "feature"
            WHITESPACE@225..226 " "
            EQ@226..227 "="
            WHITESPACE@227..228 " "
            STRING@228..231 "\"L\""
            R_PAREN@231..232 ")"
          R_BRACK@232..233 "]"
        INT_NUMBER@233..234 "0"
      R_BRACK@234..235 "]"
    SEMICOLON@235..236 ";"
```
</details>

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2020-12-21 08:54:31 +00:00
..
0002_use_tree_list.rast Use items can also have doc comments 2020-12-04 17:09:40 +01:00
0002_use_tree_list.rs
0003_where_pred_for.rast Node-ify lifetimes 2020-12-16 14:16:09 +01:00
0003_where_pred_for.rs
0004_value_parameters_no_patterns.rast
0004_value_parameters_no_patterns.rs
0005_function_type_params.rast
0005_function_type_params.rs
0006_self_param.rast Node-ify lifetimes 2020-12-16 14:16:09 +01:00
0006_self_param.rs
0007_type_param_bounds.rast Node-ify lifetimes 2020-12-16 14:16:09 +01:00
0007_type_param_bounds.rs
0008_path_part.rast
0008_path_part.rs
0009_loop_expr.rast
0009_loop_expr.rs
0010_extern_block.rast
0010_extern_block.rs
0011_field_expr.rast
0011_field_expr.rs
0012_type_item_where_clause.rast
0012_type_item_where_clause.rs
0013_pointer_type_mut.rast
0013_pointer_type_mut.rs
0014_never_type.rast
0014_never_type.rs
0015_continue_expr.rast Node-ify lifetimes 2020-12-16 14:16:09 +01:00
0015_continue_expr.rs
0017_array_type.rast
0017_array_type.rs
0018_arb_self_types.rast
0018_arb_self_types.rs
0019_unary_expr.rast
0019_unary_expr.rs
0020_use_star.rast
0020_use_star.rs
0021_impl_item_list.rast
0021_impl_item_list.rs
0022_crate_visibility.rast
0022_crate_visibility.rs
0023_placeholder_type.rast
0023_placeholder_type.rs
0024_slice_pat.rast
0024_slice_pat.rs
0025_slice_type.rast
0025_slice_type.rs
0026_tuple_pat_fields.rast
0026_tuple_pat_fields.rs
0027_ref_pat.rast
0027_ref_pat.rs
0028_impl_trait_type.rast Node-ify lifetimes 2020-12-16 14:16:09 +01:00
0028_impl_trait_type.rs
0029_cast_expr.rast
0029_cast_expr.rs
0030_cond.rast
0030_cond.rs
0031_while_expr.rast
0031_while_expr.rs
0032_fn_pointer_type.rast
0032_fn_pointer_type.rs
0033_reference_type;.rast Node-ify lifetimes 2020-12-16 14:16:09 +01:00
0033_reference_type;.rs
0034_break_expr.rast Node-ify lifetimes 2020-12-16 14:16:09 +01:00
0034_break_expr.rs
0037_qual_paths.rast
0037_qual_paths.rs
0038_full_range_expr.rast
0038_full_range_expr.rs
0039_type_arg.rast Node-ify lifetimes 2020-12-16 14:16:09 +01:00
0039_type_arg.rs
0040_crate_keyword_vis.rast
0040_crate_keyword_vis.rs
0041_trait_item.rast
0041_trait_item.rs
0042_call_expr.rast
0042_call_expr.rs
0043_use_alias.rast
0043_use_alias.rs
0044_block_items.rast
0044_block_items.rs
0045_param_list_opt_patterns.rast Node-ify lifetimes 2020-12-16 14:16:09 +01:00
0045_param_list_opt_patterns.rs
0046_singleton_tuple_type.rast
0046_singleton_tuple_type.rs
0048_path_type_with_bounds.rast Node-ify lifetimes 2020-12-16 14:16:09 +01:00
0048_path_type_with_bounds.rs
0050_fn_decl.rast
0050_fn_decl.rs
0051_unit_type.rast
0051_unit_type.rs
0052_path_type.rast
0052_path_type.rs
0053_path_expr.rast
0053_path_expr.rs
0054_record_field_attrs.rast
0054_record_field_attrs.rs
0055_literal_pattern.rast
0055_literal_pattern.rs
0056_where_clause.rast Node-ify lifetimes 2020-12-16 14:16:09 +01:00
0056_where_clause.rs
0058_range_pat.rast
0058_range_pat.rs
0059_match_arms_commas.rast
0059_match_arms_commas.rs
0060_extern_crate.rast
0060_extern_crate.rs
0061_record_lit.rast
0061_record_lit.rs
0062_mod_contents.rast Move to upstream macro_rules! model 2020-12-15 15:37:37 +01:00
0062_mod_contents.rs
0063_impl_def_neg.rast
0063_impl_def_neg.rs
0064_if_expr.rast
0064_if_expr.rs
0065_dyn_trait_type.rast Node-ify lifetimes 2020-12-16 14:16:09 +01:00
0065_dyn_trait_type.rs
0066_match_arm.rast
0066_match_arm.rs
0067_crate_path.rast
0067_crate_path.rs
0068_union_items.rast
0068_union_items.rs
0069_use_tree_list_after_path.rast
0069_use_tree_list_after_path.rs
0070_stmt_bin_expr_ambiguity.rast
0070_stmt_bin_expr_ambiguity.rs
0071_match_expr.rast
0071_match_expr.rs
0072_return_expr.rast
0072_return_expr.rs
0073_type_item_type_params.rast
0073_type_item_type_params.rs
0074_stmt_postfix_expr_ambiguity.rast
0074_stmt_postfix_expr_ambiguity.rs
0075_block.rast
0075_block.rs
0076_function_where_clause.rast
0076_function_where_clause.rs
0077_try_expr.rast
0077_try_expr.rs
0078_type_item.rast
0078_type_item.rs
0079_impl_def.rast
0079_impl_def.rs
0080_postfix_range.rast
0080_postfix_range.rs
0081_for_type.rast Node-ify lifetimes 2020-12-16 14:16:09 +01:00
0081_for_type.rs
0082_ref_expr.rast
0082_ref_expr.rs
0083_struct_items.rast
0083_struct_items.rs
0084_paren_type.rast
0084_paren_type.rs
0085_expr_literals.rast Kill RAW_ literals 2020-11-06 22:23:14 +01:00
0085_expr_literals.rs
0086_function_ret_type.rast
0086_function_ret_type.rs
0088_break_ambiguity.rast
0088_break_ambiguity.rs
0090_type_param_default.rast
0090_type_param_default.rs
0092_fn_pointer_type_with_ret.rast
0092_fn_pointer_type_with_ret.rs
0093_index_expr.rast
0093_index_expr.rs
0095_placeholder_pat.rast
0095_placeholder_pat.rs
0096_no_semi_after_block.rast Move to upstream macro_rules! model 2020-12-15 15:37:37 +01:00
0096_no_semi_after_block.rs
0099_param_list.rast
0099_param_list.rs
0100_for_expr.rast
0100_for_expr.rs
0102_record_pat_field_list.rast Rename record_field_pat to record_pat_field 2020-09-10 18:56:04 +02:00
0102_record_pat_field_list.rs Rename record_field_pat to record_pat_field 2020-09-10 18:56:04 +02:00
0103_array_expr.rast
0103_array_expr.rs
0104_path_fn_trait_args.rast
0104_path_fn_trait_args.rs
0106_lambda_expr.rast
0106_lambda_expr.rs
0107_method_call_expr.rast
0107_method_call_expr.rs
0108_tuple_expr.rast
0108_tuple_expr.rs
0109_label.rast Node-ify lifetimes 2020-12-16 14:16:09 +01:00
0109_label.rs
0110_use_path.rast Use items can also have doc comments 2020-12-04 17:09:40 +01:00
0110_use_path.rs
0111_tuple_pat.rast
0111_tuple_pat.rs
0112_bind_pat.rast
0112_bind_pat.rs
0113_nocontentexpr.rast
0113_nocontentexpr.rs
0114_tuple_struct_where.rast
0114_tuple_struct_where.rs
0115_tuple_field_attrs.rast
0115_tuple_field_attrs.rs
0117_macro_call_type.rast
0117_macro_call_type.rs
0118_impl_inner_attributes.rast
0118_impl_inner_attributes.rs
0118_match_guard.rast
0118_match_guard.rs
0120_match_arms_inner_attribute.rast
0120_match_arms_inner_attribute.rs
0121_match_arms_outer_attributes.rast
0121_match_arms_outer_attributes.rs
0122_generic_lifetime_type_attribute.rast Node-ify lifetimes 2020-12-16 14:16:09 +01:00
0122_generic_lifetime_type_attribute.rs
0123_param_list_vararg.rast
0123_param_list_vararg.rs
0125_crate_keyword_path.rast
0125_crate_keyword_path.rs
0125_record_literal_field_with_attr.rast
0125_record_literal_field_with_attr.rs
0126_attr_on_expr_stmt.rast
0126_attr_on_expr_stmt.rs
0127_attr_on_last_expr_in_block.rast
0127_attr_on_last_expr_in_block.rs
0129_marco_pat.rast
0129_marco_pat.rs
0130_let_stmt.rast
0130_let_stmt.rs
0130_try_block_expr.rast
0130_try_block_expr.rs
0131_existential_type.rast
0131_existential_type.rs
0132_box_expr.rast
0132_box_expr.rs
0134_nocontentexpr_after_item.rast
0134_nocontentexpr_after_item.rs
0137_await_expr.rast
0137_await_expr.rs
0138_associated_type_bounds.rast
0138_associated_type_bounds.rs
0138_expression_after_block.rast
0138_expression_after_block.rs
0138_self_param_outer_attr.rast Properly attach attributes to Param instead of parent ParamList 2020-12-20 20:30:18 +01:00
0138_self_param_outer_attr.rs
0139_param_outer_arg.rast
0139_param_outer_arg.rs
0142_for_range_from.rast
0142_for_range_from.rs
0143_box_pat.rast
0143_box_pat.rs
0144_dot_dot_pat.rast
0144_dot_dot_pat.rs
0145_record_pat_field.rast Rename record_field_pat to record_pat_field 2020-09-10 18:56:04 +02:00
0145_record_pat_field.rs Rename record_field_pat to record_pat_field 2020-09-10 18:56:04 +02:00
0146_as_precedence.rast
0146_as_precedence.rs
0147_const_param.rast
0147_const_param.rs
0147_macro_def.rast
0147_macro_def.rs
0148_pub_macro_def.rast
0148_pub_macro_def.rs
0150_array_attrs.rast
0150_array_attrs.rs
0150_impl_type_params.rast
0150_impl_type_params.rs
0151_fn.rast
0151_fn.rs
0151_trait_alias.rast
0151_trait_alias.rs
0152_arg_with_attr.rast
0152_arg_with_attr.rs
0152_impl.rast
0152_impl.rs
0153_pub_parens_typepath.rast Don't interpret type path as part of visibility. 2020-10-24 02:20:45 -04:00
0153_pub_parens_typepath.rs Don't interpret type path as part of visibility. 2020-10-24 02:20:45 -04:00
0153_trait.rast
0153_trait.rs
0154_fn_pointer_param_ident_path.rast
0154_fn_pointer_param_ident_path.rs
0154_no_dyn_trait_leading_for.rast Properly parse legacy trait objects with leading ForType 2020-12-20 21:53:55 +01:00
0154_no_dyn_trait_leading_for.rs Properly parse legacy trait objects with leading ForType 2020-12-20 21:53:55 +01:00
0154_tuple_attrs.rast Parse attributes in tuple expressions 2020-12-20 21:01:36 +01:00
0154_tuple_attrs.rs Parse attributes in tuple expressions 2020-12-20 21:01:36 +01:00
0155_closure_params.rast
0155_closure_params.rs
0156_fn_def_param.rast
0156_fn_def_param.rs
0156_or_pattern.rast
0156_or_pattern.rs
0157_fn_pointer_unnamed_arg.rast
0157_fn_pointer_unnamed_arg.rs
0157_variant_discriminant.rast
0157_variant_discriminant.rs
0158_binop_resets_statementness.rast
0158_binop_resets_statementness.rs
0158_lambda_ret_block.rast
0158_lambda_ret_block.rs
0159_try_macro_fallback.rast
0159_try_macro_fallback.rs
0160_try_macro_rules.rast Move to upstream macro_rules! model 2020-12-15 15:37:37 +01:00
0160_try_macro_rules.rs
0161_labeled_block.rast Node-ify lifetimes 2020-12-16 14:16:09 +01:00
0161_labeled_block.rs
0162_unsafe_block.rast
0162_unsafe_block.rs
0163_default_unsafe_item.rast
0163_default_unsafe_item.rs
0164_default_item.rast
0164_default_item.rs
0164_type_path_in_pattern.rast
0164_type_path_in_pattern.rs