]> git.lizzy.rs Git - rust.git/commitdiff
proper doc comment for 'recovered' field of variant
authorRalf Jung <post@ralfj.de>
Wed, 7 Aug 2019 09:52:40 +0000 (11:52 +0200)
committerRalf Jung <post@ralfj.de>
Sun, 11 Aug 2019 10:04:49 +0000 (12:04 +0200)
Curtesy of petrochenkov

src/librustc/ty/mod.rs

index b104bbf466a3647fa2e0f50cf77e7816b43a3241..9d563e290de966f78e9e0a084fc59d40e1f585c1 100644 (file)
@@ -1842,8 +1842,8 @@ pub struct VariantDef {
     pub ctor_kind: CtorKind,
     /// Flags of the variant (e.g. is field list non-exhaustive)?
     flags: VariantFlags,
-    /// Recovered?
-    // FIXME: Needs proper doc. Recovered whom from what?
+    /// Variant is obtained as part of recovering from a syntactic error.
+    /// May be incomplete or bogus.
     pub recovered: bool,
 }