Skip to content

Conversation

@Veykril
Copy link
Member

@Veykril Veykril commented Jul 5, 2021

inline_call can basically do this job now and more.
r92csxeBQW

@Veykril
Copy link
Member Author

Veykril commented Jul 5, 2021

bors r+

@bors
Copy link
Contributor

bors bot commented Jul 5, 2021

@bors bors bot merged commit c7b1973 into rust-lang:master Jul 5, 2021
@Veykril Veykril deleted the inline-method branch July 5, 2021 14:31
@lnicola lnicola changed the title feat: Yeet replace_unwrap_with_match in favor of inline_call feat: Remove replace_unwrap_with_match in favor of inline_call Jul 6, 2021
@SamB
Copy link

SamB commented Sep 19, 2023

Um, excuse me, but this doesn't really work, as was pointed out when replace_unwrap_with_match was added:

Well, except that at least the Result implementation calls a private function instead of directly panicing 😅

Originally posted by @flodiebold in #3732 (comment)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants