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

Raw identifiers identifiers don't work properly #79

Closed
lizelive opened this issue Oct 26, 2021 · 3 comments
Closed

Raw identifiers identifiers don't work properly #79

lizelive opened this issue Oct 26, 2021 · 3 comments

Comments

@lizelive
Copy link

#[derive(MutGetters, Setters)]
pub struct Stdio {
    r#in: Option<ChildStdin>,
    out: Option<ChildStdout>,
    err: Option<ChildStderr>,
}

will cause

error: proc-macro derive panicked
   --> src/task.rs:118:10
    |
118 | #[derive(MutGetters, Setters)]
    |          ^^^^^^^^^^
    |
    = help: message: `"r#in_mut"` is not a valid identifier

error: proc-macro derive panicked
   --> src/task.rs:118:22
    |
118 | #[derive(MutGetters, Setters)]
    |                      ^^^^^^^
    |
    = help: message: `"set_r#in"` is not a valid identifier

i know concat_idents macro handles this properly but it's not stable

@Anders429
Copy link
Contributor

This was fixed with #71, but it looks like it hasn't been published to crates.io.

@Hoverbear any chance you could publish a new version?

@Hoverbear
Copy link
Collaborator

@Anders429 I can give it a shot this weekend, sorry, been away awhile.

@Hoverbear
Copy link
Collaborator

It's up!

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

No branches or pull requests

3 participants