rust-analyzer/crates
bors[bot] 7a36993892
Merge #10400
10400: fix: fix format string highlighting for `todo!` and `unimplemented!` r=jonas-schievink a=jonas-schievink

Part of https://github.com/rust-analyzer/rust-analyzer/issues/10394

These macros require us to see through the `const_format_args!` invocation the panic macros generate, for that we have to add it to our supported built-in macros.

I've also made the macros in the test `#[macro_export]` (turns out they didn't all resolve correctly before this), which changes the output slightly.

bors r+

Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
2021-09-30 15:33:07 +00:00
..
base_db support non-extern-prelude dependencies 2021-09-28 21:23:46 +02:00
cfg Simplify int_in_range 2021-08-31 13:11:17 +02:00
flycheck internal: remove dead code 2021-09-15 21:22:06 +03:00
hir minor: don't drop binders when doing autoderef 2021-09-30 19:57:15 +05:00
hir_def Use the right HirFileId for LowerCtx when expanding macros in fn parameter types 2021-09-29 21:06:37 +02:00
hir_expand Add const_format_args! builtin macro, fix highlighting 2021-09-30 17:16:39 +02:00
hir_ty Add regression test 2021-09-29 21:08:44 +02:00
ide Work around tidy check 2021-09-30 17:32:18 +02:00
ide_assists Merge #10382 2021-09-28 17:23:11 +00:00
ide_completion Add pub(super) along with pub(crate) and pub as a completion keyword 2021-09-29 21:55:15 -07:00
ide_db Fix inline_call breaking RecordExprField shorthands 2021-09-28 19:22:32 +02:00
ide_diagnostics Rename *Owner traits to Has* 2021-09-27 12:54:24 +02:00
ide_ssr Rename *Owner traits to Has* 2021-09-27 12:54:24 +02:00
limit internal: add API to check what are the max limits in practice 2021-07-31 18:26:43 +03:00
mbe Rename *Owner traits to Has* 2021-09-27 12:54:24 +02:00
parser internal: more reasonable grammar for blocks 2021-09-26 19:16:09 +03:00
paths internal: improve compilation critical path a bit 2021-08-28 22:43:37 +03:00
proc_macro_api Simplify 2021-09-19 23:34:07 +02:00
proc_macro_srv Merge #10378 2021-09-27 18:00:08 +00:00
proc_macro_test cargo_metadata 0.14 2021-07-09 11:01:55 -04:00
profile Update dependency minor versions 2021-09-04 00:27:05 -07:00
project_model Implicitly depend on test 2021-09-28 21:39:41 +02:00
rust-analyzer Merge #10181 2021-09-29 13:13:03 +00:00
sourcegen internal: prevent possible bugs when adding magical comments 2021-09-13 13:43:13 +03:00
stdx minor: improve readability 2021-09-11 18:42:38 +03:00
syntax Fix inline_call breaking RecordExprField shorthands 2021-09-28 19:22:32 +02:00
test_utils support non-extern-prelude dependencies 2021-09-28 21:23:46 +02:00
text_edit Handle all rename special cases for all record pattern fields 2021-08-16 22:48:38 +02:00
toolchain minor: drop dummy authors field 2021-07-05 14:19:41 +03:00
tt Make stringify! prettify its input 2021-09-27 19:02:03 +02:00
vfs Update crates/vfs/src/vfs_path.rs 2021-09-28 10:20:35 +08:00
vfs-notify internal: remove dead code 2021-09-15 21:22:06 +03:00