about summary refs log tree commit diff
path: root/src/test/ui/function-pointer
diff options
context:
space:
mode:
authorDorian Scheidt <dorian.scheidt@gmail.com>2022-07-01 15:44:10 -0500
committerDorian Scheidt <dorian.scheidt@gmail.com>2022-07-02 15:00:02 -0500
commite3940003a20b6df3e2def1a5e38b20d35e8a1db8 (patch)
tree5fecb5f9be111e386c7162a9a846e8d9816ea17b /src/test/ui/function-pointer
parentcc0bb71e258fa1a180435e265ece1fcc3ffb59f1 (diff)
downloadrust-e3940003a20b6df3e2def1a5e38b20d35e8a1db8.tar.gz
rust-e3940003a20b6df3e2def1a5e38b20d35e8a1db8.zip
fix: Extract function from trait impl
This change fixes #10036, "Extract to function assist implements nonexistent
trait methods".

When we detect that the extraction is coming from within a trait impl, and that
a `self` param will be necessary, we adjust which `SyntaxNode` to `insert_after`,
and create a new empty `impl` block for the newly extracted function.
Diffstat (limited to 'src/test/ui/function-pointer')
0 files changed, 0 insertions, 0 deletions