Add track_caller attribute to Result::unwrap_or_else by ravenclaw900 · Pull Requ...
source link: https://github.com/rust-lang/rust/pull/116317
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Conversation
Contributor
Fixes issue where panics in unwrap_or_else callbacks marked with the track_caller
attribute appear as errors in core.
Collaborator
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @Mark-Simulacrum (or someone else) soon. Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (
|
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK