-
Notifications
You must be signed in to change notification settings - Fork 925
Rustfmt drops 'default' from 'default fn …' using specialization #945
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
Comments
I'm waiting for this impl. |
I'd like to try to fix this one if no one is already working on it. |
line hint (spoiler alert! 😉 ) |
To me it looked like the syntex visitor didn't pass the defaultness ? (but I'm unfamiliar with both syntex and rustfmt so I could be very mistaken) |
That's true in fact, afaikt:
pub struct MethodSig {
pub unsafety: Unsafety,
pub constness: Constness,
pub abi: Abi,
pub decl: P<FnDecl>,
pub generics: Generics,
} |
@lqd no problem 👍 |
@julienXX if you want to work on a rustfmt, there are a bunch of good issues - https://github.com/rust-lang-nursery/rustfmt/issues?q=is%3Aopen+is%3Aissue+label%3Aeasy - I'm happy to mentor any of them - either ping me on irc or comment on the bug. |
@nrc will do, thanks :) |
@nrc I'd love to jump on some of those. I'll find you on IRC if I have any issues. |
Since specialization is only available in nightly (and maybe still changing), it's not much of a priority, though.
cf. rust-lang/miri#6
The text was updated successfully, but these errors were encountered: