Using unstable features when using nightly is easy enough. But that feature is then enabled for the whole crate.
I would like to enable non-lexical lifetimes
. But only for a small part of the code, as there are cases in which using it will lead to ICEs atm.
However I’m not sure that:
- Enabling unstable features can be done at all atm for part of a crate, e.g. using regular
#[]
attributes and - Even if it can, would such a thing even be possible for something as invasive as non-lexical lifetimes?