diff options
| author | bors <bors@rust-lang.org> | 2022-07-02 19:42:17 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-07-02 19:42:17 +0000 |
| commit | cc0bb71e258fa1a180435e265ece1fcc3ffb59f1 (patch) | |
| tree | 48e6359e7866d50e535ef6b5c90c3460a8f5c708 /src/test/codegen/src-hash-algorithm | |
| parent | d1ac46201d568fbe08deabafaa91100a1810d31b (diff) | |
| parent | 0039d6f731a7d06d9d3ac4b832bd7d4707c36ec3 (diff) | |
| download | rust-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/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions
