diff options
| author | bors <bors@rust-lang.org> | 2013-03-03 16:16:00 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-03-03 16:16:00 -0800 |
| commit | d30a4f4e677aa133b1a5ca50e69e4a241c58ab55 (patch) | |
| tree | 1962b9bbae37b2d0f330216891ad1c8b50548704 /src/libsyntax/parse/token.rs | |
| parent | 3c23589b08678221132bce88c741853d1fd841af (diff) | |
| parent | 690caf8ab835089109b6b19eab48158d6f76915e (diff) | |
| download | rust-d30a4f4e677aa133b1a5ca50e69e4a241c58ab55.tar.gz rust-d30a4f4e677aa133b1a5ca50e69e4a241c58ab55.zip | |
auto merge of #5207 : erickt/rust/libsyntax-deprecated-self, r=brson
This adds an explicit `&self` to each method in libsyntax, and sets the `#[deny(deprecated_self)]` in `syntax.rc`.
Diffstat (limited to 'src/libsyntax/parse/token.rs')
| -rw-r--r-- | src/libsyntax/parse/token.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs index 6d0ca2c6657..f86d7c7f135 100644 --- a/src/libsyntax/parse/token.rs +++ b/src/libsyntax/parse/token.rs @@ -359,16 +359,16 @@ pub struct ident_interner { } pub impl ident_interner { - fn intern(val: @~str) -> ast::ident { + fn intern(&self, val: @~str) -> ast::ident { ast::ident { repr: self.interner.intern(val) } } - fn gensym(val: @~str) -> ast::ident { + fn gensym(&self, val: @~str) -> ast::ident { ast::ident { repr: self.interner.gensym(val) } } - pure fn get(idx: ast::ident) -> @~str { + pure fn get(&self, idx: ast::ident) -> @~str { self.interner.get(idx.repr) } - fn len() -> uint { + fn len(&self) -> uint { self.interner.len() } } |
