Skip to content

Rustfmt drops 'default' from 'default fn …' using specialization #945

Closed

Description

@killercup

Since specialization is only available in nightly (and maybe still changing), it's not much of a priority, though.

cf. rust-lang/miri#6

Activity

  1. added
    good first issueIssues up for grabs, also good candidates for new rustfmt contributors
    C-bugCategory: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICE
    and removed
    C-bugCategory: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICE
    on Apr 16, 2016
  2. zitsen commented on May 19, 2016

    @zitsen

    I'm waiting for this impl.

  3. added this to the milestone on May 31, 2016
  4. julienXX commented on May 31, 2016

    @julienXX
    Contributor

    I'd like to try to fix this one if no one is already working on it.

  5. regexident commented on May 31, 2016

    @regexident
    Contributor

    line hint (spoiler alert! 😉 )

  6. lqd commented on May 31, 2016

    @lqd
    Member

    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)

  7. regexident commented on May 31, 2016

    @regexident
    Contributor

    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:

    syntax::ast::TraitItemKind::Method(MethodSig, Option<P<Block>>)

    pub struct MethodSig {
        pub unsafety: Unsafety,
        pub constness: Constness,
        pub abi: Abi,
        pub decl: P<FnDecl>,
        pub generics: Generics,
    }
  8. lqd commented on May 31, 2016

    @lqd
    Member

    @julienXX salut Julien ;)

    I think I'm close-ish to making a PR as I was talking about this issue with @nrc on IRC earlier today, would you mind if I took a crack at it ?

  9. julienXX commented on May 31, 2016

    @julienXX
    Contributor

    @lqd no problem 👍

  10. added a commit that references this issue on May 31, 2016
    b626373
  11. nrc commented on Jun 1, 2016

    @nrc
    Member

    @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.

  12. julienXX commented on Jun 1, 2016

    @julienXX
    Contributor

    @nrc will do, thanks :)

  13. jaredthecoder commented on Jun 5, 2016

    @jaredthecoder

    @nrc I'd love to jump on some of those. I'll find you on IRC if I have any issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P-highHigh prioritygood first issueIssues up for grabs, also good candidates for new rustfmt contributors

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions