rust/crates
bors[bot] 8887d2016f
Merge #11193
11193: feat: Add config to replace specific proc-macros with dummy expanders r=Veykril a=Veykril

With this one can specify proc-macros from crates to expand into their input as a (temporary) workaround for the current completion problems with some of the bigger attribute proc-macros like `async_trait`.

This could've been done by just not expanding these macros, but that would require fiddling with nameres. I felt like this approach was simpler to pull off while also keeping the behaviour of the attributes/proc-macro in that they still expand instead of being dead syntax to us.

Fixes https://github.com/rust-analyzer/rust-analyzer/issues/11052

Usage(`async_trait` as example):
```jsonc
    "rust-analyzer.procMacro.dummies": {
        "async-trait": [ // crate name(as per its cargo.toml definition, not the dependency name)
            "async_trait" // exported proc-macro name
        ]
    },
```

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2022-01-06 12:53:49 +00:00
..
base_db Merge #11069 2021-12-20 16:50:35 +00:00
cfg
flycheck
hir Merge #11112 2022-01-04 21:51:37 +00:00
hir_def Regenrate docs and package.json 2022-01-06 13:50:24 +01:00
hir_expand minor: drop dead code 2022-01-02 19:03:38 +03:00
hir_ty Remove unused lifetime 2022-01-05 10:19:10 -05:00
ide Always put a space after impl in macro pretty-printing 2022-01-06 11:33:08 +01:00
ide_assists Merge #11204 2022-01-05 22:47:30 +00:00
ide_completion Merge #11201 2022-01-05 20:45:27 +00:00
ide_db Always put a space after impl in macro pretty-printing 2022-01-06 11:33:08 +01:00
ide_diagnostics Merge #11028 2021-12-20 13:45:35 +00:00
ide_ssr compress 2021-12-28 19:17:34 +03:00
limit
mbe simplify 2022-01-03 16:27:16 +03:00
parser add empty input tests 2022-01-02 18:50:32 +03:00
paths
proc_macro_api Merge #11028 2021-12-20 13:45:35 +00:00
proc_macro_srv Rename and use the 1.55 ABI for 1.54 2022-01-04 14:06:26 +02:00
proc_macro_test
profile
project_model feat: Add config to replace specific proc-macros with dummy expanders 2022-01-06 13:50:18 +01:00
rust-analyzer Adjust config name 2022-01-06 13:50:35 +01:00
sourcegen
stdx minor: replace panics with types 2022-01-02 19:05:37 +03:00
syntax Useconst _ instead of mod __ 2022-01-06 12:55:33 +01:00
test_utils fix: Do not complete Drop::drop, complete std::mem::drop instead 2021-12-22 02:25:38 +01:00
text_edit
toolchain
tt
vfs
vfs-notify