Skip to content

missing_docs lint should enforce documentation on associated types #20648

Closed
@japaric

Description

@japaric

Since they are part of the public API.

This currently compiles:

#![crate_type = "lib"]
#![deny(missing_docs)]
#![feature(associated_types)]

//! Linear algebra

/// 2D array of elements
pub trait Matrix {
    // missing docs?
    type Elem;
}

rustc 0.13.0-nightly (c7dd3c4d6 2015-01-05 23:51:00 +0000)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-associated-itemsArea: Associated items (types, constants & functions)A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions