Rename value
field to expr
to simplify later commits' diffs
This commit is contained in:
parent
a611773d80
commit
53b2c7cc95
14 changed files with 28 additions and 30 deletions
|
@ -220,9 +220,9 @@ pub fn attrs_to_doc_fragments<'a>(
|
|||
|
||||
fn span_for_value(attr: &ast::Attribute) -> Span {
|
||||
if let ast::AttrKind::Normal(normal) = &attr.kind
|
||||
&& let ast::AttrArgs::Eq { value, .. } = &normal.item.args
|
||||
&& let ast::AttrArgs::Eq { expr, .. } = &normal.item.args
|
||||
{
|
||||
value.span().with_ctxt(attr.span.ctxt())
|
||||
expr.span().with_ctxt(attr.span.ctxt())
|
||||
} else {
|
||||
attr.span
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue