diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2019-07-30 14:18:19 -0400 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2019-07-31 08:55:37 -0400 |
| commit | f78bf50dec172630a03eab1d8abb3bfaa14b9627 (patch) | |
| tree | f92c3532b023ec8f5a28712a88a188dee2cfce02 /src/libsyntax/attr | |
| parent | b2c5065b0434f0986e45bdf5a5d0028972e8104c (diff) | |
| download | rust-f78bf50dec172630a03eab1d8abb3bfaa14b9627.tar.gz rust-f78bf50dec172630a03eab1d8abb3bfaa14b9627.zip | |
Remove span argument from mk_attr_{inner,outer}
Always the same as the passed MetaItem
Diffstat (limited to 'src/libsyntax/attr')
| -rw-r--r-- | src/libsyntax/attr/mod.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libsyntax/attr/mod.rs b/src/libsyntax/attr/mod.rs index 11c1b1c56c7..3e56136b171 100644 --- a/src/libsyntax/attr/mod.rs +++ b/src/libsyntax/attr/mod.rs @@ -379,26 +379,26 @@ pub fn mk_attr_id() -> AttrId { } /// Returns an inner attribute with the given value and span. -pub fn mk_attr_inner(span: Span, item: MetaItem) -> Attribute { +pub fn mk_attr_inner(item: MetaItem) -> Attribute { Attribute { id: mk_attr_id(), style: ast::AttrStyle::Inner, path: item.path, tokens: item.node.tokens(item.span), is_sugared_doc: false, - span, + span: item.span, } } /// Returns an outer attribute with the given value and span. -pub fn mk_attr_outer(span: Span, item: MetaItem) -> Attribute { +pub fn mk_attr_outer(item: MetaItem) -> Attribute { Attribute { id: mk_attr_id(), style: ast::AttrStyle::Outer, path: item.path, tokens: item.node.tokens(item.span), is_sugared_doc: false, - span, + span: item.span, } } |
