Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a warning to Delimiter::None that rustc currently does not respect it. #455

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

CensoredUsername
Copy link
Contributor

Currently when used to implement a proc_macro, Delimiter::None simply doesn't do what it is documented to do.

While this is a rustc bug (rust-lang/rust#67062), it is a long standing one, and hard to discover.
This pull request adds a warning to inform users of this issue, with a link to the relevant issue, and a version number of the last known affected rustc version.

Copy link
Owner

@dtolnay dtolnay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please add this in proc_macro's documentation to begin with? Then we can mirror it here. I am not interested in the documentation being out of sync.

@CensoredUsername
Copy link
Contributor Author

Of course. I wasn't aware that it was a mirror of that.

I'll follow up here if/when that's done.

…t it.

It does not provide the behaviour it is indicated to provide when used in
a proc_macro context.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants