Skip to content

Dropper was not dropped in how_to_ontop example #38

@apatrushev

Description

@apatrushev

I tried how_to_ontop example and found that dropper is not dropped - no message presented in log:

x86_64 macOS
rustc 1.32.0 (9fda7c223 2019-01-16)
$ cargo clean; cargo run --example how_to_ontop
   Compiling cc v1.0.29
   Compiling libc v0.2.49
   Compiling context v2.1.0 (<...>/context-rs)
    Finished dev [unoptimized + debuginfo] target(s) in 4.05s
     Running `target/debug/examples/how_to_ontop`
Entering context_function...
Everything's set up!
Resuming => Yielding 0 => Got 0
Resuming => Yielding 1 => Got 1
Resuming => Yielding 2 => Got 2
Resuming => Yielding 3 => Got 3
Resuming => Yielding 4 => Got 4
Resuming => Yielding 5 => Got 5
Resuming => Yielding 6 => Got 6
Resuming => Yielding 7 => Got 7
Resuming => Yielding 8 => Got 8
Resuming => Yielding 9 => Got 9
Resuming context with unwind_stack() ontop!
Unwinding stack by panicking!
Recovered from a panic!
Defer stack deallocation by returning to main()!
Deleting stack!
Stack has been deleted!
Finished!

I tried to switch toolchain to an older one, but did not find working till 1.24.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions