From 11c5fd78ad0ee49372e1f68a3c263027bd12c976 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Tue, 14 Aug 2018 22:37:59 -0700 Subject: [PATCH] Abbreviate and touch up some attribute parsing comments --- serde_derive/src/internals/attr.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/serde_derive/src/internals/attr.rs b/serde_derive/src/internals/attr.rs index 31fbe080..ede409db 100644 --- a/serde_derive/src/internals/attr.rs +++ b/serde_derive/src/internals/attr.rs @@ -272,7 +272,7 @@ impl Container { } } - // Parse `#[serde(bound = "D: Serialize")]` + // Parse `#[serde(bound = "T: SomeBound")]` Meta(NameValue(ref m)) if m.ident == "bound" => { if let Ok(where_predicates) = parse_lit_into_where(cx, &m.ident, &m.ident, &m.lit) @@ -282,7 +282,7 @@ impl Container { } } - // Parse `#[serde(bound(serialize = "D: Serialize", deserialize = "D: Deserialize"))]` + // Parse `#[serde(bound(serialize = "...", deserialize = "..."))]` Meta(List(ref m)) if m.ident == "bound" => { if let Ok((ser, de)) = get_where_predicates(cx, &m.nested) { ser_bound.set_opt(ser); @@ -617,7 +617,7 @@ impl Variant { other.set_true(); } - // Parse `#[serde(bound = "D: Serialize")]` + // Parse `#[serde(bound = "T: SomeBound")]` Meta(NameValue(ref m)) if m.ident == "bound" => { if let Ok(where_predicates) = parse_lit_into_where(cx, &m.ident, &m.ident, &m.lit) @@ -627,7 +627,7 @@ impl Variant { } } - // Parse `#[serde(bound(serialize = "D: Serialize", deserialize = "D: Deserialize"))]` + // Parse `#[serde(bound(serialize = "...", deserialize = "..."))]` Meta(List(ref m)) if m.ident == "bound" => { if let Ok((ser, de)) = get_where_predicates(cx, &m.nested) { ser_bound.set_opt(ser); @@ -921,7 +921,7 @@ impl Field { } } - // Parse `#[serde(bound = "D: Serialize")]` + // Parse `#[serde(bound = "T: SomeBound")]` Meta(NameValue(ref m)) if m.ident == "bound" => { if let Ok(where_predicates) = parse_lit_into_where(cx, &m.ident, &m.ident, &m.lit) @@ -931,7 +931,7 @@ impl Field { } } - // Parse `#[serde(bound(serialize = "D: Serialize", deserialize = "D: Deserialize"))]` + // Parse `#[serde(bound(serialize = "...", deserialize = "..."))]` Meta(List(ref m)) if m.ident == "bound" => { if let Ok((ser, de)) = get_where_predicates(cx, &m.nested) { ser_bound.set_opt(ser);