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/ext | |
| parent | 7e1b535eb1aa7614e40538ca5892a71199f804b9 (diff) | |
| download | rust-4d66af2698fd2ff2d19d68cda4eb804b5d319e5b.tar.gz rust-4d66af2698fd2ff2d19d68cda4eb804b5d319e5b.zip | |
librustc: De-`@mut` the span handler
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/tt/transcribe.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsyntax/ext/tt/transcribe.rs b/src/libsyntax/ext/tt/transcribe.rs index f4c7132a1f6..9827c02d4b8 100644 --- a/src/libsyntax/ext/tt/transcribe.rs +++ b/src/libsyntax/ext/tt/transcribe.rs @@ -31,7 +31,7 @@ struct TtFrame { } pub struct TtReader { - sp_diag: @mut SpanHandler, + sp_diag: @SpanHandler, // the unzipped tree: priv stack: RefCell<@mut TtFrame>, /* for MBE-style macro transcription */ @@ -46,10 +46,10 @@ pub struct TtReader { /** This can do Macro-By-Example transcription. On the other hand, if * `src` contains no `tt_seq`s and `tt_nonterminal`s, `interp` can (and * should) be none. */ -pub fn new_tt_reader(sp_diag: @mut SpanHandler, +pub fn new_tt_reader(sp_diag: @SpanHandler, interp: Option<HashMap<Ident,@named_match>>, src: ~[ast::token_tree]) - -> @TtReader { + -> @TtReader { let r = @TtReader { sp_diag: sp_diag, stack: RefCell::new(@mut TtFrame { |
