1
Fork 0

librustc: Remove pure from libsyntax and librustc.

This commit is contained in:
Patrick Walton 2013-03-22 11:09:13 -07:00
parent ec59ce5796
commit e7c60c141b
31 changed files with 251 additions and 252 deletions

View file

@ -196,8 +196,8 @@ macro_rules! maybe_whole (
)
pure fn maybe_append(+lhs: ~[attribute], rhs: Option<~[attribute]>)
-> ~[attribute] {
fn maybe_append(+lhs: ~[attribute], rhs: Option<~[attribute]>)
-> ~[attribute] {
match rhs {
None => lhs,
Some(ref attrs) => vec::append(lhs, (*attrs))
@ -331,7 +331,7 @@ pub impl Parser {
}
fn get_id(&self) -> node_id { next_node_id(self.sess) }
pure fn id_to_str(&self, id: ident) -> @~str {
fn id_to_str(&self, id: ident) -> @~str {
self.sess.interner.get(id)
}