Skip to content

Commit 5a3efd4

Browse files
committed
---
yaml --- r: 50666 b: refs/heads/try c: 34113dc h: refs/heads/master v: v3
1 parent ce2ccb1 commit 5a3efd4

File tree

8 files changed

+17
-3
lines changed

8 files changed

+17
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 5f13e9ccc2e3328d4cd8ca49f84e6840dd998346
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: f7a2371c176663d59062ec5158f39faecba45768
5-
refs/heads/try: 688c4c403d087245464e2bf0c5a8c2c760c50fc6
5+
refs/heads/try: 34113dcf6a45d445bf557e6aa85dbc35bfd1f12a
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/src/libcore/at_vec.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
use cast::transmute;
1414
use kinds::Copy;
1515
use iter;
16+
use libc;
1617
use option::Option;
1718
use ptr::addr_of;
1819
use sys;

branches/try/src/libcore/num/cmath.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010

1111
#[doc(hidden)]; // FIXME #3538
1212

13+
use libc::c_int;
14+
use libc::c_float;
15+
use libc::c_double;
16+
1317
// function names are almost identical to C's libmath, a few have been
1418
// renamed, grep for "rename:"
1519

branches/try/src/libcore/prelude.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ pub use vec::{CopyableVector, ImmutableVector};
4343
pub use vec::{ImmutableEqVector, ImmutableCopyableVector};
4444
pub use vec::{OwnedVector, OwnedCopyableVector};
4545

46+
/* Reexported runtime types */
47+
pub use comm::{stream, Port, Chan, GenericChan, GenericSmartChan, GenericPort, Peekable};
48+
pub use task::spawn;
49+
4650
/* Reexported modules */
4751

4852
pub use at_vec;

branches/try/src/libcore/vec.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ use iter::BaseIter;
1919
use iter;
2020
use kinds::Copy;
2121
use libc;
22+
use libc::size_t;
2223
use option::{None, Option, Some};
2324
use unstable::intrinsics;
2425
use ptr;
@@ -75,9 +76,9 @@ pub fn reserve<T>(v: &mut ~[T], n: uint) {
7576
let td = sys::get_type_desc::<T>();
7677
if ((**ptr).box_header.ref_count ==
7778
managed::raw::RC_MANAGED_UNIQUE) {
78-
rustrt::vec_reserve_shared_actual(td, ptr, n as libc::size_t);
79+
rustrt::vec_reserve_shared_actual(td, ptr, n as size_t);
7980
} else {
80-
rustrt::vec_reserve_shared(td, ptr, n as libc::size_t);
81+
rustrt::vec_reserve_shared(td, ptr, n as size_t);
8182
}
8283
}
8384
}
@@ -2070,6 +2071,7 @@ pub mod raw {
20702071
use kinds::Copy;
20712072
use managed;
20722073
use option::{None, Some};
2074+
use option;
20732075
use unstable::intrinsics;
20742076
use ptr::addr_of;
20752077
use ptr;

branches/try/src/librustc/middle/trans/controlflow.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ use syntax::ast::ident;
3030
use syntax::ast_map::path_mod;
3131
use syntax::ast_util;
3232
use syntax::codemap::span;
33+
use syntax::print::pprust::expr_to_str;
3334

3435
pub fn trans_block(bcx: block, b: &ast::blk, dest: expr::Dest) -> block {
3536
let _icx = bcx.insn_ctxt("trans_block");

branches/try/src/librustc/middle/typeck/check/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1706,6 +1706,7 @@ pub fn check_expr_with_unifier(fcx: @mut FnCtxt,
17061706
let expr_t = structurally_resolved_type(fcx, expr.span,
17071707
fcx.expr_ty(base));
17081708
let (base_t, derefs) = do_autoderef(fcx, expr.span, expr_t);
1709+
let n_tys = tys.len();
17091710

17101711
match structure_of(fcx, expr.span, base_t) {
17111712
ty::ty_struct(base_id, ref substs) => {

branches/try/src/libstd/test.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ use core::either::Either;
2626
use core::either;
2727
use core::io::WriterUtil;
2828
use core::io;
29+
use core::libc::size_t;
2930
use core::comm::{stream, Chan, Port, SharedChan};
3031
use core::option;
3132
use core::prelude::*;

0 commit comments

Comments
 (0)