-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Regression in fxsm, Rust 1.17 #40966
Comments
Yes, I know that. Thank you very much for highlighting me, I appreciate it! You guys do very nice work testing the beta on crates! I will fix it soon. Is there anything I should do in this issue? |
@vityafx Nope! Just making you aware. If you determine this is our bug, please let us know the details. |
Glancing briefly at the code, the error arises because the code fails to find a cc @jseyfried -- do you know of any changes we made in this area, i.e., in terms of what tokens we supply to derive implementations? @vityafx -- another way to enforce this, though UI will suffer, would be to generate code that requires fn require_copy_and_clone<T: Copy+Clone>(t: &T) { } |
@nikomatsakis yes, I know that too. There was a change which makes impossible to see what does the enum/struct derive but |
This was intentionally caused by #39572. See #40574 (comment) and #40574 (comment) for rationale; #39572 (comment) is an alternative. cc @rust-lang/lang |
@jseyfried interesting; I'll have to catch up in more depth. It seems like it is common to want to "peek" at what other derives are present, so that you can generate somewhat better/different derives for your own trait. It's not perfect, though, since of course there could be manual impls... |
@vityafx ok I agree that the current thing in your particular case is to generate code that uses |
discussed at compiler meeting. Consensus is that if there is a bug here, it is in fact a feature request for the procedural macro system (the feature being having a way to peek at the other derives), and that would be the balliwick of the lang team to address. So, removing T-compiler label. (And also suggesting that the lang team close after reviewing it.) |
Nominated for @rust-lang/lang team discussion. |
The lang team is likely to skip their meeting today so this unfortunately won't get a chance for discussion before 1.17 is release, which means that this is likely to become a stable-to-stable regression. @nikomatsakis was thinking though that the most likely outcome is to uphold the compiler team's decision of staying the current course, though. @vityafx out of curiosity do you need any help updating your crate? I can try to help out if necessary! |
@rust-lang/lang says this is a bugfix. |
/~https://github.com/vityafx/fxsm
cc @vityafx
The text was updated successfully, but these errors were encountered: