-
Notifications
You must be signed in to change notification settings - Fork 136
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
compilation error in der_derive
#1617
Comments
That sounds like a We can potentially patch around it but really if something compiles on |
Note: seems quite similar to this: dtolnay/syn#1718 |
Seems so! Very very odd A regression in syn then? |
So it compiles on But not on However, removing And I see that syn uses |
Appears syn has no plans to fix it |
It seems like potentially there has been a regression in rustc with a similar root cause: the borrow checker assuming it needs a mutable reference to run drop glue, when there is no |
Also I should say we can change the code to use |
I'm not sure what's happening there but it seems this compiles under nightly without this setting? If so, I'm not sure what's actionable here |
I mean It's very odd, if nothing else |
I would also argue it may be worth a refactor if it has confused the borrow checker on at least 2 occasions |
I found the cause This macro: https://github.com/dtolnay/syn/blob/91ffc5c4c53e1b3ab961dd3bd7e3fcf79d15cb7c/src/macros.rs#L174 Called here: https://github.com/dtolnay/syn/blob/91ffc5c4c53e1b3ab961dd3bd7e3fcf79d15cb7c/src/generics.rs#L106 Replaces the return type if docsrs is on. In this case to an iterator impl |
The general approach to testing "like docs.rs" is something like |
This crate no longer compiles on the newest versions of rustic
Builds fine on 1.81, but nightly 1.85 has the following:
The text was updated successfully, but these errors were encountered: