Skip to content

Lint fn new() -> Self without Default #705

Closed
@mcarton

Description

@mcarton
Member

@vi just suggested to have a lint “for having fn new() -> Self, but not having Default” on IRC.
That’s probably a good idea, but it might trigger a lot, so maybe an Allow lint by default?

Activity

added
E-mediumCall for participation: Medium difficulty level problem and requires some initial experience.
A-lintArea: New lints
on Feb 24, 2016
Manishearth

Manishearth commented on Feb 24, 2016

@Manishearth
Member

Not sure if it needs to be Allow, but sure :)

llogiq

llogiq commented on Feb 24, 2016

@llogiq
Contributor

I'd be OK with warn, too.

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

    A-lintArea: New lintsE-mediumCall for participation: Medium difficulty level problem and requires some initial experience.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @Manishearth@mcarton@llogiq

        Issue actions

          Lint `fn new() -> Self` without Default · Issue #705 · rust-lang/rust-clippy