Skip to content

Commit edd4df8

Browse files
committed
---
yaml --- r: 42214 b: refs/heads/master c: a283924 h: refs/heads/master v: v3
1 parent 55531a9 commit edd4df8

File tree

5 files changed

+13
-12
lines changed

5 files changed

+13
-12
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: 4af7c643f2555d476d6ad4dc6758fafada21b084
2+
refs/heads/master: a2839246be0a41a4fe905ab0a52d1a3c7db3397d
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 2f46b763da2c098913884f101b6d71d69af41b49
55
refs/heads/try: 3d5418789064fdb463e872a4e651af1c628a3650

trunk/src/libcargo/cargo.rc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ pub fn load_link(mis: ~[@ast::meta_item]) -> (Option<~str>,
286286
let mut uuid = None;
287287
for mis.each |a| {
288288
match a.node {
289-
ast::meta_name_value(v, ast::spanned { node: ast::lit_str(s),
289+
ast::meta_name_value(v, codemap::spanned { node: ast::lit_str(s),
290290
_ }) => {
291291
match v {
292292
~"name" => name = Some(*s),
@@ -314,7 +314,7 @@ pub fn load_crate(filename: &Path) -> Option<Crate> {
314314

315315
for c.node.attrs.each |a| {
316316
match a.node.value.node {
317-
ast::meta_name_value(v, ast::spanned { node: ast::lit_str(_),
317+
ast::meta_name_value(v, codemap::spanned { node: ast::lit_str(_),
318318
_ }) => {
319319
match v {
320320
~"desc" => desc = Some(v),

trunk/src/libfuzzer/fuzzer.rc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,12 @@ pub fn common_exprs() -> ~[ast::expr] {
7474
id: 0,
7575
callee_id: -1,
7676
node: e,
77-
span: ast_util::dummy_sp(),
77+
span: codemap::dummy_sp(),
7878
}
7979
}
8080

8181
fn dsl(l: ast::lit_) -> ast::lit {
82-
ast::spanned { node: l, span: ast_util::dummy_sp() }
82+
codemap::spanned { node: l, span: codemap::dummy_sp() }
8383
}
8484

8585
~[dse(ast::expr_break(option::None)),

trunk/src/librustc/driver/session.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -344,14 +344,15 @@ pub mod test {
344344

345345
use syntax::ast;
346346
use syntax::ast_util;
347+
use syntax::codemap;
347348

348349
pub fn make_crate_type_attr(+t: ~str) -> ast::attribute {
349-
ast_util::respan(codemap::dummy_sp(), ast::attribute_ {
350+
codemap::respan(codemap::dummy_sp(), ast::attribute_ {
350351
style: ast::attr_outer,
351-
value: ast_util::respan(codemap::dummy_sp(),
352+
value: codemap::respan(codemap::dummy_sp(),
352353
ast::meta_name_value(
353354
~"crate_type",
354-
ast_util::respan(codemap::dummy_sp(),
355+
codemap::respan(codemap::dummy_sp(),
355356
ast::lit_str(@t)))),
356357
is_sugared_doc: false
357358
})
@@ -361,7 +362,7 @@ pub mod test {
361362
let mut attrs = ~[];
362363
if with_bin { attrs += ~[make_crate_type_attr(~"bin")]; }
363364
if with_lib { attrs += ~[make_crate_type_attr(~"lib")]; }
364-
@ast_util::respan(codemap::dummy_sp(), ast::crate_ {
365+
@codemap::respan(codemap::dummy_sp(), ast::crate_ {
365366
module: ast::_mod { view_items: ~[], items: ~[] },
366367
attrs: attrs,
367368
config: ~[]

trunk/src/libsyntax/parse/parser.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1515,7 +1515,7 @@ pub impl Parser {
15151515
token::EQ => {
15161516
self.bump();
15171517
let rhs = self.parse_expr();
1518-
self.mk_expr(lo, rhs.span.hi, expr_assign(lhs, rhs))
1518+
self.mk_expr(lo, rhs.span.hi, expr_assign(lhs, rhs))
15191519
}
15201520
token::BINOPEQ(op) => {
15211521
self.bump();
@@ -1569,7 +1569,7 @@ pub impl Parser {
15691569
hi = elexpr.span.hi;
15701570
}
15711571
let q = {cond: cond, then: thn, els: els, lo: lo, hi: hi};
1572-
f.mk_expr(q.lo, q.hi, expr_if(q.cond, q.then, q.els))
1572+
self.mk_expr(q.lo, q.hi, expr_if(q.cond, q.then, q.els))
15731573
}
15741574
15751575
fn parse_fn_expr(proto: Proto) -> @expr {
@@ -1582,7 +1582,7 @@ pub impl Parser {
15821582
let body = self.parse_block();
15831583
15841584
self.mk_expr(lo, body.span.hi,
1585-
expr_fn(proto, decl, body, capture_clause));
1585+
expr_fn(proto, decl, body, @()))
15861586
}
15871587
15881588
// `|args| { ... }` like in `do` expressions

0 commit comments

Comments
 (0)