-
Notifications
You must be signed in to change notification settings - Fork 17
Description
The documentation makes clear that nightly and stable behave differently because of functionality offered in nightly that is not in stable. This is a pain if you want to deterministically produce the same output in both and are getting by in stable by sprinkling $['\n'] where needed.
It'd be nice if there was some way to tell the crate to pretend it doesn't have access to this functionality. This probably is not a perfect fit for features because they are supposed to be additive. Another option might be to release another copy of the crate which always behaves like the stable via some config attr; I don't think this would be too hard. In particular you could just have a slightly different cargo toml.
To make the problem concrete, the challenge I currently am having is that when I have comments inside quote macro, they become a single newline in nightly that doesn't exist in stable.
I do get the pain of not having the API you need. Thank you for working around it in the ways that you have.