libstd: Fix merge fallout.
This commit is contained in:
parent
2c6dae081b
commit
78f33437b6
3 changed files with 14 additions and 18 deletions
|
@ -152,7 +152,6 @@ pub mod v4 {
|
||||||
use uv_ip4_name = uv::ll::ip4_name;
|
use uv_ip4_name = uv::ll::ip4_name;
|
||||||
|
|
||||||
use core::cast::transmute;
|
use core::cast::transmute;
|
||||||
use core::ptr;
|
|
||||||
use core::result;
|
use core::result;
|
||||||
use core::str;
|
use core::str;
|
||||||
use core::uint;
|
use core::uint;
|
||||||
|
|
|
@ -11,7 +11,6 @@
|
||||||
//! A priority queue implemented with a binary heap
|
//! A priority queue implemented with a binary heap
|
||||||
|
|
||||||
use core::old_iter::BaseIter;
|
use core::old_iter::BaseIter;
|
||||||
use core::ptr::addr_of;
|
|
||||||
|
|
||||||
#[abi = "rust-intrinsic"]
|
#[abi = "rust-intrinsic"]
|
||||||
extern "rust-intrinsic" mod rusti {
|
extern "rust-intrinsic" mod rusti {
|
||||||
|
|
|
@ -569,9 +569,8 @@ mod test {
|
||||||
let parser = string_to_parser(@~"b : int");
|
let parser = string_to_parser(@~"b : int");
|
||||||
assert_eq!(parser.parse_arg_general(true),
|
assert_eq!(parser.parse_arg_general(true),
|
||||||
ast::arg{
|
ast::arg{
|
||||||
mode: ast::infer(1),
|
|
||||||
is_mutbl: false,
|
is_mutbl: false,
|
||||||
ty: @ast::Ty{id:4, // fixme
|
ty: @ast::Ty{id:3, // fixme
|
||||||
node: ast::ty_path(@ast::Path{
|
node: ast::ty_path(@ast::Path{
|
||||||
span:sp(4,4), // this is bizarre...
|
span:sp(4,4), // this is bizarre...
|
||||||
// check this in the original parser?
|
// check this in the original parser?
|
||||||
|
@ -579,9 +578,9 @@ mod test {
|
||||||
idents:~[mk_ident(105)],
|
idents:~[mk_ident(105)],
|
||||||
rp: None,
|
rp: None,
|
||||||
types: ~[]},
|
types: ~[]},
|
||||||
3),
|
2),
|
||||||
span:sp(4,7)},
|
span:sp(4,7)},
|
||||||
pat: @ast::pat{id:2,
|
pat: @ast::pat{id:1,
|
||||||
node: ast::pat_ident(ast::bind_by_copy,
|
node: ast::pat_ident(ast::bind_by_copy,
|
||||||
@ast::Path{
|
@ast::Path{
|
||||||
span:sp(0,1),
|
span:sp(0,1),
|
||||||
|
@ -592,7 +591,7 @@ mod test {
|
||||||
None // no idea
|
None // no idea
|
||||||
),
|
),
|
||||||
span: sp(0,3)}, // really?
|
span: sp(0,3)}, // really?
|
||||||
id: 5 // fixme
|
id: 4 // fixme
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -604,21 +603,20 @@ mod test {
|
||||||
Some(
|
Some(
|
||||||
@ast::item{ident:mk_ident(100),
|
@ast::item{ident:mk_ident(100),
|
||||||
attrs:~[],
|
attrs:~[],
|
||||||
id: 11, // fixme
|
id: 10, // fixme
|
||||||
node: ast::item_fn(ast::fn_decl{
|
node: ast::item_fn(ast::fn_decl{
|
||||||
inputs: ~[ast::arg{
|
inputs: ~[ast::arg{
|
||||||
mode: ast::infer(1),
|
|
||||||
is_mutbl: false,
|
is_mutbl: false,
|
||||||
ty: @ast::Ty{id:4, // fixme
|
ty: @ast::Ty{id:3, // fixme
|
||||||
node: ast::ty_path(@ast::Path{
|
node: ast::ty_path(@ast::Path{
|
||||||
span:sp(10,13),
|
span:sp(10,13),
|
||||||
global:false,
|
global:false,
|
||||||
idents:~[mk_ident(106)],
|
idents:~[mk_ident(106)],
|
||||||
rp: None,
|
rp: None,
|
||||||
types: ~[]},
|
types: ~[]},
|
||||||
3),
|
2),
|
||||||
span:sp(10,13)},
|
span:sp(10,13)},
|
||||||
pat: @ast::pat{id:2, // fixme
|
pat: @ast::pat{id:1, // fixme
|
||||||
node: ast::pat_ident(
|
node: ast::pat_ident(
|
||||||
ast::bind_by_copy,
|
ast::bind_by_copy,
|
||||||
@ast::Path{
|
@ast::Path{
|
||||||
|
@ -630,9 +628,9 @@ mod test {
|
||||||
None // no idea
|
None // no idea
|
||||||
),
|
),
|
||||||
span: sp(6,9)}, // bleah.
|
span: sp(6,9)}, // bleah.
|
||||||
id: 5 // fixme
|
id: 4 // fixme
|
||||||
}],
|
}],
|
||||||
output: @ast::Ty{id:6, // fixme
|
output: @ast::Ty{id:5, // fixme
|
||||||
node: ast::ty_nil,
|
node: ast::ty_nil,
|
||||||
span:sp(15,15)}, // not sure
|
span:sp(15,15)}, // not sure
|
||||||
cf: ast::return_val
|
cf: ast::return_val
|
||||||
|
@ -649,8 +647,8 @@ mod test {
|
||||||
view_items: ~[],
|
view_items: ~[],
|
||||||
stmts: ~[@spanned{
|
stmts: ~[@spanned{
|
||||||
node: ast::stmt_semi(@ast::expr{
|
node: ast::stmt_semi(@ast::expr{
|
||||||
id: 7,
|
id: 6,
|
||||||
callee_id: 8,
|
callee_id: 7,
|
||||||
node: ast::expr_path(
|
node: ast::expr_path(
|
||||||
@ast::Path{
|
@ast::Path{
|
||||||
span:sp(17,18),
|
span:sp(17,18),
|
||||||
|
@ -659,10 +657,10 @@ mod test {
|
||||||
rp:None,
|
rp:None,
|
||||||
types: ~[]}),
|
types: ~[]}),
|
||||||
span: sp(17,18)},
|
span: sp(17,18)},
|
||||||
9), // fixme
|
8), // fixme
|
||||||
span: sp(17,18)}],
|
span: sp(17,18)}],
|
||||||
expr: None,
|
expr: None,
|
||||||
id: 10, // fixme
|
id: 9, // fixme
|
||||||
rules: ast::default_blk // no idea
|
rules: ast::default_blk // no idea
|
||||||
}}),
|
}}),
|
||||||
vis: ast::inherited,
|
vis: ast::inherited,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue