-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Migrate replace derive with manual impl
and add_missing_impl_members
to use SyntaxEditor
#20293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate replace derive with manual impl
and add_missing_impl_members
to use SyntaxEditor
#20293
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Oh, the test added from #19938 are failing |
@@ -185,71 +185,65 @@ pub fn add_trait_assoc_items_to_impl( | |||
trait_: hir::Trait, | |||
impl_: &ast::Impl, | |||
target_scope: &hir::SemanticsScope<'_>, | |||
) -> ast::AssocItem { | |||
) -> Vec<ast::AssocItem> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be good to have #[must_use]
attributes here, as this is not mutating existing syntax tree anymore but returns a new one. (And this would help preventing tests in #19938 failing, though I've merged it after this PR was created 😅 )
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for finding the fix spot!
This comment has been minimized.
This comment has been minimized.
Sorry, I made a mistake merge. |
…pl_members Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
50f8ef6
to
82dfdac
Compare
part of #15710 and #18285
fn add_trait_assoc_items_to_impl
use ted yet.