Skip to content

Conversation

topecongiro
Copy link
Contributor

Close #4288.

}

impl<'a> FnSig<'a> {
pub(crate) fn new(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it may be easier to use from_method_sig, which allows for dropping this method entirely. See https://github.com/rust-lang/rustfmt/pull/4290/files

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point! I like this idea better than mine. Thank you for creating the PR, and no worries about the duplicated work. GitHub UI is laggy these days.

Copy link
Member

@calebcartwright calebcartwright Jun 30, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Related aside, we should probably rename from_method_sig to from_fn_sig at some point in the future. Believe that's one that we missed when incorporating the upstream rustc Method -> Fn renaming

topecongiro and others added 2 commits June 30, 2020 11:45
Closes rust-lang#4288

And we get to drop a method, which I think is a win :)
@calebcartwright
Copy link
Member

You both jumped on that one fast 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Async gets removed from extern blocks.

4 participants