5

Add track_caller attribute to Result::unwrap_or_else by ravenclaw900 · Pull Requ...

 11 months ago
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.
neoserver,ios ssh client

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 (S-waiting-on-review and S-waiting-on-author) stays updated, invoking these commands when appropriate:

  • @rustbot author: the review is finished, PR author should check the comments and take action accordingly
  • @rustbot review: the author is ready for a review, this PR will be queued again in the reviewer's queue

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK