Skip to content

Commit e79e589

Browse files
committed
---
yaml --- r: 48095 b: refs/heads/incoming c: a7de81a h: refs/heads/master i: 48093: b80119b 48091: c4de0b5 48087: 3bd0c8a 48079: c772c31 48063: 4dd6e8d v: v3
1 parent efd58fe commit e79e589

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: 2a8fb58d79e685d5ca07b039badcf2ae3ef077ea
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/incoming: 5655ae46a73723203edcf6a53c87560e0da7aaec
9+
refs/heads/incoming: a7de81ac3e559dcddfa9652d83457341a534a74d
1010
refs/heads/dist-snap: 8b98e5a296d95c5e832db0756828e5bec31c6f50
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/incoming/src/libsyntax/ext/tt/macro_parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ pub fn count_names(ms: &[matcher]) -> uint {
140140
}
141141

142142
#[allow(non_implicitly_copyable_typarams)]
143-
pub fn initial_matcher_pos(+ms: ~[matcher], sep: Option<Token>, lo: BytePos)
143+
pub fn initial_matcher_pos(+ms: ~[matcher], +sep: Option<Token>, lo: BytePos)
144144
-> ~MatcherPos {
145145
let mut match_idx_hi = 0u;
146146
for ms.each |elt| {

branches/incoming/src/libsyntax/ext/tt/macro_rules.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ pub fn add_new_extension(cx: ext_ctxt, sp: span, name: ident,
3232
arg: ~[ast::token_tree]) -> base::MacResult {
3333
// these spans won't matter, anyways
3434
fn ms(m: matcher_) -> matcher {
35-
spanned { node: m, span: dummy_sp() }
35+
spanned { node: copy m, span: dummy_sp() }
3636
}
3737

3838
let lhs_nm = cx.parse_sess().interner.gensym(@~"lhs");

branches/incoming/src/libsyntax/ext/tt/transcribe.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ pure fn dup_tt_frame(f: @mut TtFrame) -> @mut TtFrame {
8585
readme: @mut (copy *f.readme),
8686
idx: f.idx,
8787
dotdotdoted: f.dotdotdoted,
88-
sep: f.sep,
88+
sep: copy f.sep,
8989
up: match f.up {
9090
Some(up_frame) => Some(dup_tt_frame(up_frame)),
9191
None => None
@@ -191,7 +191,7 @@ pub fn tt_next_token(r: @mut TtReader) -> TokenAndSpan {
191191
r.cur.idx = 0u;
192192
r.repeat_idx[r.repeat_idx.len() - 1u] += 1u;
193193
match r.cur.sep {
194-
Some(tk) => {
194+
Some(copy tk) => {
195195
r.cur_tok = tk; /* repeat same span, I guess */
196196
return ret_val;
197197
}
@@ -219,7 +219,8 @@ pub fn tt_next_token(r: @mut TtReader) -> TokenAndSpan {
219219
return ret_val;
220220
}
221221
tt_seq(sp, copy tts, copy sep, zerok) => {
222-
match lockstep_iter_size(tt_seq(sp, copy tts, sep, zerok), r) {
222+
let t = tt_seq(sp, copy tts, copy sep, zerok);
223+
match lockstep_iter_size(t, r) {
223224
lis_unconstrained => {
224225
r.sp_diag.span_fatal(
225226
sp, /* blame macro writer */
@@ -246,11 +247,11 @@ pub fn tt_next_token(r: @mut TtReader) -> TokenAndSpan {
246247
r.repeat_len.push(len);
247248
r.repeat_idx.push(0u);
248249
r.cur = @mut TtFrame {
249-
readme: @mut copy tts,
250+
readme: @mut tts,
250251
idx: 0u,
251252
dotdotdoted: true,
252253
sep: sep,
253-
up: option::Some(r.cur)
254+
up: Some(r.cur)
254255
};
255256
}
256257
}

0 commit comments

Comments
 (0)