Re: [PATCH] rust: irq: add support for request_irq()
From: Daniel Almeida
Date: Tue Jan 14 2025 - 13:58:59 EST
>
> It's not the pin_init! stuff, but the Opaque stuff. If it fails, then
> it runs the destructor of Opaque<T>, which does *not* run the
> destructor of T.
>
> Alice
This is pretty unintuitive if you take into account trivial examples like
```
struct Foo(T)
```
Where dropping Foo drops T.
Is there any reason why dropping Opaque<T> doesn’t behave similarly?
— Daniel