libfringe icon indicating copy to clipboard operation
libfringe copied to clipboard

Unwinding support

Open Amanieu opened this issue 8 years ago • 6 comments

See previous discussion in #52.

Amanieu avatar Mar 23 '17 02:03 Amanieu

One unresolved question is what to do about unfinished generators in the following cases with & without unwinding:

  • unwrap
  • unsafe_unwrap
  • drop

Amanieu avatar Mar 24 '17 03:03 Amanieu

Is this PR planned to be merged?

carllerche avatar Nov 02 '18 06:11 carllerche

@carllerche Yes, the main blocker is uncertainty about how this can be made to work well with -C panic=abort.

edef1c avatar Dec 16 '18 10:12 edef1c

Ok great. I would like to use fringe here: http://github.com/carllerche/loom

Right now I’m using a fork that includes this PR. It would also be great if fringe could work on stable :-)

carllerche avatar Dec 16 '18 18:12 carllerche

That's an exciting project! I'm afraid that getting libfringe to work on stable Rust would require stabilising inline assembly, though there are alternative (slower) approaches that could be implemented with similar APIs.

edef1c avatar Dec 17 '18 20:12 edef1c

@edef1c It would be nice if there were a stable (slower) option w/ a nightly feature flag. Right now, libfringe is the only Rust generator lib that does the right thing. generator-rs seems to SEGV if RUST_BACKTRACE=1 is specified.

carllerche avatar Dec 17 '18 20:12 carllerche