about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm
diff options
context:
space:
mode:
authorDorian Scheidt <dorian.scheidt@gmail.com>2022-06-30 12:17:19 -0500
committerDorian Scheidt <dorian.scheidt@gmail.com>2022-07-02 14:24:41 -0500
commit0039d6f731a7d06d9d3ac4b832bd7d4707c36ec3 (patch)
tree48e6359e7866d50e535ef6b5c90c3460a8f5c708 /src/test/codegen/src-hash-algorithm
parentd1ac46201d568fbe08deabafaa91100a1810d31b (diff)
downloadrust-0039d6f731a7d06d9d3ac4b832bd7d4707c36ec3.tar.gz
rust-0039d6f731a7d06d9d3ac4b832bd7d4707c36ec3.zip
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.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions