Is there any way to use nightly features in macros without making the users add feature flags to their crate? libstd has
allow_internal_unstable for that, but is that intended to also work for user crates?
yea, you should be able to add feature flags to your crate to be able to add
allow_internal_unstable to your macro. Users of your macro will then not need the feature gates
hmm... can't get it to work though: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=53f7565667c2d5d82923915a969f6aa6
maybe it only works cross crate?
it fails for doctests in the PR mentioned above
I think it might only work for libstd?
I think it's just const support that doesn't work with
@Amanieu is there something const needs to do for that? @oli ?
I thought you were talking about macros?
macros generating consts
yea, idk why that isn't working
the spans should still know about the macro expansion
and thus about the allow_internal_unstable