diff options
| author | bors <bors@rust-lang.org> | 2022-07-08 14:01:36 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-07-08 14:01:36 +0000 |
| commit | 7181a39d4c3456c6ce9e16899d7b1b60982bea09 (patch) | |
| tree | 9f4c5f0713d6ac9477217deb0b0c730459e66c8e /src/test/ui/function-pointer | |
| parent | df4ed94f2fb7c16daefa1722657216609f0e8d31 (diff) | |
| parent | e3940003a20b6df3e2def1a5e38b20d35e8a1db8 (diff) | |
| download | rust-7181a39d4c3456c6ce9e16899d7b1b60982bea09.tar.gz rust-7181a39d4c3456c6ce9e16899d7b1b60982bea09.zip | |
Auto merge of #12676 - DorianListens:dscheidt/extract-fun-trait-impl, r=jonas-schievink
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
