Skip to content
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

Toggle stack unwinding without printing error message #28752

Closed
zonyitoo opened this issue Sep 30, 2015 · 3 comments
Closed

Toggle stack unwinding without printing error message #28752

zonyitoo opened this issue Sep 30, 2015 · 3 comments

Comments

@zonyitoo
Copy link

Is it possible to toggle stack unwinding without printing error message to stderr?

I am working on a coroutine library and I want to manually unwind the stack when destroying coroutines. But now I could only use panic! to do the trick.

@jonas-schievink
Copy link
Contributor

Not possible at the moment, but there's an RFC that should allow what you want: rust-lang/rfcs#1100

@alexcrichton
Copy link
Member

Thanks for the report! Right now the standard library doesn't support this sort of functionality, but it's available externally on crates.io. We may want to include this in the standard library at some point, but that's handled through RFCs and/or the nursery, so I'm going to close this issue.

@alexcrichton
Copy link
Member

Wait holy cow I totally misinterpreted this. @jonas-schievink was spot on, however, so I'll still leave this closed in favor of that RFC

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

No branches or pull requests

3 participants