1
Fork 0

Rename value field to expr to simplify later commits' diffs

This commit is contained in:
Oli Scherer 2024-12-02 11:27:57 +00:00 committed by Jonathan Dönszelmann
parent a611773d80
commit 53b2c7cc95
14 changed files with 28 additions and 30 deletions

View file

@ -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
}