]> git.lizzy.rs Git - rust.git/commitdiff
Merge #6043
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>
Mon, 21 Sep 2020 09:06:24 +0000 (09:06 +0000)
committerGitHub <noreply@github.com>
Mon, 21 Sep 2020 09:06:24 +0000 (09:06 +0000)
6043: Allow missing trait members assist without needing braces r=matklad a=M-J-Hooper

Assist to complete missing items when implementing a trait does not appear without impl def braces (see #5144 ).

The reason behind this was that this assist is based on `ast::AssocItemList` which only appears in the AST after the braces are added to the impl def.

Instead of relying on and replacing the item list, we now instead replace the entire `ast::Impl` and add the item list if its missing.

Co-authored-by: Matt Hooper <matthewjhooper94@gmail.com>

Trivial merge