diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2013-12-27 13:48:00 -0800 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2014-01-03 14:01:57 -0800 |
| commit | 4d66af2698fd2ff2d19d68cda4eb804b5d319e5b (patch) | |
| tree | 73a86f33d06e630b2c45d81532c1f9bda62627d5 /src/libsyntax/attr.rs | |
| parent | 7e1b535eb1aa7614e40538ca5892a71199f804b9 (diff) | |
| download | rust-4d66af2698fd2ff2d19d68cda4eb804b5d319e5b.tar.gz rust-4d66af2698fd2ff2d19d68cda4eb804b5d319e5b.zip | |
librustc: De-`@mut` the span handler
Diffstat (limited to 'src/libsyntax/attr.rs')
| -rw-r--r-- | src/libsyntax/attr.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libsyntax/attr.rs b/src/libsyntax/attr.rs index 7a3ac0f2f4d..df8b45dbcf5 100644 --- a/src/libsyntax/attr.rs +++ b/src/libsyntax/attr.rs @@ -355,8 +355,7 @@ pub fn find_stability<AM: AttrMetaMethods, It: Iterator<AM>>(mut metas: It) -> O None } -pub fn require_unique_names(diagnostic: @mut SpanHandler, - metas: &[@MetaItem]) { +pub fn require_unique_names(diagnostic: @SpanHandler, metas: &[@MetaItem]) { let mut set = HashSet::new(); for meta in metas.iter() { let name = meta.name(); @@ -381,7 +380,7 @@ pub fn require_unique_names(diagnostic: @mut SpanHandler, * present (before fields, if any) with that type; reprensentation * optimizations which would remove it will not be done. */ -pub fn find_repr_attr(diagnostic: @mut SpanHandler, attr: @ast::MetaItem, acc: ReprAttr) +pub fn find_repr_attr(diagnostic: @SpanHandler, attr: @ast::MetaItem, acc: ReprAttr) -> ReprAttr { let mut acc = acc; match attr.node { |
