librustc: De-@mut the span handler

This commit is contained in:
Patrick Walton
2013-12-27 13:48:00 -08:00
parent 7e1b535eb1
commit 4d66af2698
15 changed files with 38 additions and 43 deletions

View File

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