rollup merge of #19553: sfackler/issue-19543

Closes #19543
This commit is contained in:
Corey Richardson 2014-12-05 10:08:33 -08:00
commit 090110779f
3 changed files with 5 additions and 0 deletions

View file

@ -34,6 +34,7 @@ mod float;
pub mod rt;
#[experimental = "core and I/O reconciliation may alter this definition"]
/// The type returned by formatter methods.
pub type Result = result::Result<(), Error>;
/// The error type which is returned from formatting a message into a stream.

View file

@ -1428,6 +1428,7 @@ impl LintPass for MissingDoc {
ast::ItemEnum(..) => "an enum",
ast::ItemStruct(..) => "a struct",
ast::ItemTrait(..) => "a trait",
ast::ItemTy(..) => "a type alias",
_ => return
};
self.check_missing_docs_attrs(cx, Some(it.id), it.attrs.as_slice(),

View file

@ -17,6 +17,9 @@
//! Some garbage docs for the crate here
#![doc="More garbage"]
type Typedef = String;
pub type PubTypedef = String; //~ ERROR: missing documentation
struct Foo {
a: int,
b: int,