Skip to content

Commit 9a4fb82

Browse files
committed
---
yaml --- r: 41690 b: refs/heads/master c: cfa62cd h: refs/heads/master v: v3
1 parent 76b8041 commit 9a4fb82

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 1b1700f44b88225bc3557e1ca497644b9852e268
2+
refs/heads/master: cfa62cd5ee65a466e88a6fabf92079e9b85f43e5
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 2f46b763da2c098913884f101b6d71d69af41b49
55
refs/heads/try: 3d5418789064fdb463e872a4e651af1c628a3650

trunk/src/librustc/front/test.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,10 +364,9 @@ fn mk_test_desc_rec(cx: test_ctxt, test: test) -> @ast::expr {
364364
debug!("encoding %s", ast_util::path_name_i(path,
365365
cx.sess.parse_sess.interner));
366366

367-
// XXX: Bad copy of `path`.
368367
let name_lit: ast::lit =
369368
nospan(ast::lit_str(@ast_util::path_name_i(
370-
copy path, cx.sess.parse_sess.interner)));
369+
path, cx.sess.parse_sess.interner)));
371370
let name_expr_inner: @ast::expr =
372371
@{id: cx.sess.next_node_id(),
373372
callee_id: cx.sess.next_node_id(),

trunk/src/libsyntax/ast_util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ pure fn dummy_sp() -> span { return mk_sp(BytePos(0), BytePos(0)); }
4646

4747

4848

49-
pure fn path_name_i(idents: ~[ident], intr: @token::ident_interner) -> ~str {
49+
pure fn path_name_i(idents: &[ident], intr: @token::ident_interner) -> ~str {
5050
// FIXME: Bad copies (#2543 -- same for everything else that says "bad")
5151
str::connect(idents.map(|i| *intr.get(*i)), ~"::")
5252
}

0 commit comments

Comments
 (0)