From: Ralf Jung Date: Wed, 7 Aug 2019 09:52:40 +0000 (+0200) Subject: proper doc comment for 'recovered' field of variant X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=3972d05fec01cd46c207f6e98aca5ee20102e17a;p=rust.git proper doc comment for 'recovered' field of variant Curtesy of petrochenkov --- diff --git a/src/librustc/ty/mod.rs b/src/librustc/ty/mod.rs index b104bbf466a..9d563e290de 100644 --- a/src/librustc/ty/mod.rs +++ b/src/librustc/ty/mod.rs @@ -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, }