diff options
| author | Sean Patrick Santos <SeanPatrickSantos@gmail.com> | 2015-03-14 12:05:00 -0600 |
|---|---|---|
| committer | Sean Patrick Santos <SeanPatrickSantos@gmail.com> | 2015-04-23 21:02:25 -0600 |
| commit | b5499775d6bee080b3f46539d59d238de2c1726f (patch) | |
| tree | b8d5b0e9aae8d8ffcf884c9f98299ef1add06ed0 /src/librustc_lint/builtin.rs | |
| parent | 21f278a6877b3a66f665d86402c6ae057827a610 (diff) | |
| download | rust-b5499775d6bee080b3f46539d59d238de2c1726f.tar.gz rust-b5499775d6bee080b3f46539d59d238de2c1726f.zip | |
Structural changes for associated constants
Introduces new variants and types in syntax::ast, middle::ty, and middle::def.
Diffstat (limited to 'src/librustc_lint/builtin.rs')
| -rw-r--r-- | src/librustc_lint/builtin.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/librustc_lint/builtin.rs b/src/librustc_lint/builtin.rs index c12ac501c45..f4761f95505 100644 --- a/src/librustc_lint/builtin.rs +++ b/src/librustc_lint/builtin.rs @@ -1584,8 +1584,9 @@ impl LintPass for MissingDoc { if self.private_traits.contains(&trait_item.id) { return } let desc = match trait_item.node { + ast::ConstTraitItem(..) => "an associated constant", ast::MethodTraitItem(..) => "a trait method", - ast::TypeTraitItem(..) => "an associated type" + ast::TypeTraitItem(..) => "an associated type", }; self.check_missing_docs_attrs(cx, Some(trait_item.id), @@ -1600,9 +1601,10 @@ impl LintPass for MissingDoc { } let desc = match impl_item.node { + ast::ConstImplItem(..) => "an associated constant", ast::MethodImplItem(..) => "a method", ast::TypeImplItem(_) => "an associated type", - ast::MacImplItem(_) => "an impl item macro" + ast::MacImplItem(_) => "an impl item macro", }; self.check_missing_docs_attrs(cx, Some(impl_item.id), &impl_item.attrs, |
