Skip to content

Override the try macro to eliminate From calls #390

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

Merged
merged 1 commit into from
Dec 4, 2017
Merged

Override the try macro to eliminate From calls #390

merged 1 commit into from
Dec 4, 2017

Conversation

dtolnay
Copy link
Member

@dtolnay dtolnay commented Dec 4, 2017

We only use our own error type; no need for From conversions provided by the standard library's try! macro. This reduces lines of LLVM IR by 4%. #313

We only use our own error type; no need for From conversions provided
by the standard library's try! macro. This reduces lines of LLVM IR by
4%.
@dtolnay dtolnay merged commit 92ddbdf into master Dec 4, 2017
@dtolnay dtolnay deleted the try branch December 4, 2017 06:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant