about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2017-10-05 20:22:31 +0800
committerGitHub <noreply@github.com>2017-10-05 20:22:31 +0800
commitb3802548589f5d1100ba9ea0da8d13feed74bfd4 (patch)
tree435a95869490ed12b3f7a86c45d70706549df98c /src/libsyntax
parent3a037f113c7fdf79b1dbe674f2f40c2b2735eca3 (diff)
parentfc5e8dc1b5dd6a81d92e6981d7689f81b108c5c3 (diff)
downloadrust-b3802548589f5d1100ba9ea0da8d13feed74bfd4.tar.gz
rust-b3802548589f5d1100ba9ea0da8d13feed74bfd4.zip
Rollup merge of #44972 - durka:patch-44, r=arielb1
fix ItemKind::DefaultImpl doc comment

Upgrade comment to doc comment.

...Is this actually used? If so, why does the `Impl` variant right below have a `Defaultness`?
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/ast.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs
index 0504e889ea1..86571f921f0 100644
--- a/src/libsyntax/ast.rs
+++ b/src/libsyntax/ast.rs
@@ -1927,7 +1927,7 @@ pub enum ItemKind {
     ///
     /// E.g. `trait Foo { .. }` or `trait Foo<T> { .. }`
     Trait(Unsafety, Generics, TyParamBounds, Vec<TraitItem>),
-    // Default trait implementation.
+    /// Auto trait implementation.
     ///
     /// E.g. `impl Trait for .. {}` or `impl<T> Trait<T> for .. {}`
     DefaultImpl(Unsafety, TraitRef),