about summary refs log tree commit diff
path: root/src/test/codegen
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-07-02 19:42:17 +0000
committerbors <bors@rust-lang.org>2022-07-02 19:42:17 +0000
commitcc0bb71e258fa1a180435e265ece1fcc3ffb59f1 (patch)
tree48e6359e7866d50e535ef6b5c90c3460a8f5c708 /src/test/codegen
parentd1ac46201d568fbe08deabafaa91100a1810d31b (diff)
parent0039d6f731a7d06d9d3ac4b832bd7d4707c36ec3 (diff)
downloadrust-cc0bb71e258fa1a180435e265ece1fcc3ffb59f1.tar.gz
rust-cc0bb71e258fa1a180435e265ece1fcc3ffb59f1.zip
Auto merge of #12662 - DorianListens:dscheidt/extract-function-duplicate-name, r=DorianListens
fix: Extract Function produces duplicate fn names

This change fixes #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.
Diffstat (limited to 'src/test/codegen')
0 files changed, 0 insertions, 0 deletions