diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2014-01-15 16:26:20 -0800 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2014-02-02 01:44:48 +1100 |
| commit | e68108b3e8b8eaef62bb7b7340a77b96fcfc51cd (patch) | |
| tree | 1c39cd392414e5db5505c05ce8f3abbd170f068a /src/libsyntax/codemap.rs | |
| parent | f152be7a425e7d66f717ffe8b210bcacf82539cc (diff) | |
| download | rust-e68108b3e8b8eaef62bb7b7340a77b96fcfc51cd.tar.gz rust-e68108b3e8b8eaef62bb7b7340a77b96fcfc51cd.zip | |
librustc: Stop using `@str` for source.
Diffstat (limited to 'src/libsyntax/codemap.rs')
| -rw-r--r-- | src/libsyntax/codemap.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/codemap.rs b/src/libsyntax/codemap.rs index d4a412bbe9f..16b31f0a415 100644 --- a/src/libsyntax/codemap.rs +++ b/src/libsyntax/codemap.rs @@ -206,7 +206,7 @@ pub struct FileMap { /// e.g. `<anon>` name: FileName, /// The complete source code - src: @str, + src: ~str, /// The start position of this source in the CodeMap start_pos: BytePos, /// Locations of lines beginnings in the source code @@ -267,7 +267,7 @@ impl CodeMap { } } - pub fn new_filemap(&self, filename: FileName, src: @str) -> @FileMap { + pub fn new_filemap(&self, filename: FileName, src: ~str) -> @FileMap { let mut files = self.files.borrow_mut(); let start_pos = match files.get().last() { None => 0, |
