rust/crates
Dorian Scheidt 0039d6f731 fix: Extract Function produces duplicate fn names
This change fixes issue #10037, in more or less the most naive fashion
possible.

We continue to start with the hardcoded default of "fun_name", and now append a
counter to the end of it if that name is already in scope.

In the future, we can probably apply more heuristics here to wind up with more
useful names by default, but for now this resolves the immediate problem.
2022-07-02 14:24:41 -05:00
..
base-db Show proc-macro loading errors in unresolved-proc-macro diagnostics 2022-06-15 17:34:01 +02:00
cfg internal: Bump Dependencies 2022-06-10 17:30:02 +02:00
flycheck fix: Fix flycheck sending cancel progress with no running process 2022-06-30 22:58:57 +02:00
hir fix: Simplify macro statement expansion handling 2022-07-01 14:49:30 +02:00
hir-def Fix case of ignored/broken proc macro 2022-07-01 19:00:07 +02:00
hir-expand Auto merge of #12636 - xuhongxu96:fix-12148, r=Veykril 2022-07-01 14:55:51 +00:00
hir-ty fix: report type mismatch on identifier in destructuring assignments 2022-07-03 03:29:15 +09:00
ide fix: Simplify macro statement expansion handling 2022-07-01 14:49:30 +02:00
ide-assists fix: Extract Function produces duplicate fn names 2022-07-02 14:24:41 -05:00
ide-completion Auto merge of #12627 - yue4u:fix/struct-variant-patterns, r=Veykril 2022-07-02 17:18:24 +00:00
ide-db fix: improve whitespace insertion in pretty printer 2022-06-28 20:44:55 +09:00
ide-diagnostics Add tests for #12669 2022-07-01 19:00:07 +02:00
ide-ssr internal: Bump Dependencies 2022-06-10 17:30:02 +02:00
limit
mbe internal: Bump Dependencies 2022-06-10 17:30:02 +02:00
parser internal: Bump Dependencies 2022-06-10 17:30:02 +02:00
paths
proc-macro-api Show proc-macro loading errors in unresolved-proc-macro diagnostics 2022-06-15 17:34:01 +02:00
proc-macro-srv Auto merge of #12502 - Veykril:deps, r=Veykril 2022-06-10 19:51:04 +00:00
proc-macro-test delete a generated swap file 2022-05-01 10:48:58 +00:00
profile internal: Bump Dependencies 2022-06-10 17:30:02 +02:00
project-model fix: Report proc macro errors in expressions correctly as well 2022-06-28 10:43:22 +02:00
rust-analyzer fix: Report proc macro errors in expressions correctly as well 2022-06-28 10:43:22 +02:00
sourcegen internal: Bump Dependencies 2022-06-10 17:30:02 +02:00
stdx Polish 2022-06-15 18:35:48 +02:00
syntax fix: Simplify macro statement expansion handling 2022-07-01 14:49:30 +02:00
test-utils internal: Bump Dependencies 2022-06-10 17:30:02 +02:00
text-edit style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
toolchain
tt internal: Bump Dependencies 2022-06-10 17:30:02 +02:00
vfs internal: Bump Dependencies 2022-06-10 17:30:02 +02:00
vfs-notify internal: Bump Dependencies 2022-06-10 17:30:02 +02:00