rust-analyzer/crates
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
..
arena Add TBD description to arena 2020-08-24 13:29:10 +02:00
assists Align code_model name with ungrammar 2020-12-20 10:05:24 +03:00
base_db Introduce anchored_path 2020-12-09 19:07:05 +03:00
cfg Remove some redundant allocations 2020-12-12 12:27:09 -05:00
completion Align code_model name with ungrammar 2020-12-20 10:05:24 +03:00
flycheck Pin cargo_metadata 2020-11-25 10:11:53 -05:00
hir Merge #6921 2020-12-20 11:47:01 +00:00
hir_def Merge #6921 2020-12-20 11:47:01 +00:00
hir_expand More accurate #[derive] parsing 2020-12-19 01:10:56 +01:00
hir_ty Higher-ranked trait bounds for where clauses 2020-12-17 22:01:42 +01:00
ide Merge #6921 2020-12-20 11:47:01 +00:00
ide_db Align code_model name with ungrammar 2020-12-20 10:05:24 +03:00
mbe Use pattern_single instead of pattern in mbe pat 2020-12-20 17:13:40 +08:00
parser Merge #6965 2020-12-21 08:54:31 +00:00
paths Add description for crates that will be published 2020-08-24 13:07:22 +02:00
proc_macro_api Remove dummy ProcMacroClient in favor of Option 2020-12-07 17:16:50 +01:00
proc_macro_srv Replace goblin crate with object 2020-12-13 14:08:59 +02:00
proc_macro_test Add description for crates that will be published 2020-08-24 13:07:22 +02:00
profile Deny unreachable-pub 2020-11-02 14:07:08 +01:00
project_model Fun times with rustfmt 2020-12-17 10:24:58 -08:00
rust-analyzer Clarify the meaning of no-op highlight tag 2020-12-19 17:16:05 +03:00
ssr Remove more unreachable pubs 2020-11-02 16:58:33 +01:00
stdx add open Cargo.toml action 2020-11-12 17:48:07 -08:00
syntax Merge #6965 2020-12-21 08:54:31 +00:00
test_utils Make config.rs a single source of truth for configuration. 2020-12-08 19:25:41 +03:00
text_edit Avoid turning completion objects into builders 2020-11-16 23:16:41 +02:00
toolchain Add description for crates that will be published 2020-08-24 13:07:22 +02:00
tt Simplify error formatting 2020-11-26 21:07:15 +02:00
vfs Merge #6785 2020-12-09 16:32:03 +00:00
vfs-notify Follow symlinks when walking project trees 2020-10-15 14:22:36 -04:00