Skip to content

New Lint: Unnameable type in public API #3618

Open
@Nemo157

Description

@Nemo157

a.k.a. an enhanced private-in-public lint.

For example this currently compiles without warning, even though users of the library cannot name the return type of foo (playground):

use self::foo::Foo;

mod foo { pub struct Foo; }

pub fn foo() -> Foo {
    Foo
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions