Skip to content

Commit a35bb2a

Browse files
committed
---
yaml --- r: 106572 b: refs/heads/try c: d92fdb2 h: refs/heads/master v: v3
1 parent dba89f2 commit a35bb2a

34 files changed

+80
-115
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: b8ef9fd9c9f642ce7b8aed82782a1ed745d08d64
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: b8601a3d8b91ad3b653d143307611f2f5c75617e
5-
refs/heads/try: fbe26af3c5990fce56631154994b7a10f250d852
5+
refs/heads/try: d92fdb27cb99a9ae026cf117ab9e3bbd42523b0c
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/.travis.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,16 @@ before_script:
2626
# Note that this is meant to run in a "fairly small" amount of time, so this
2727
# isn't exhaustive at all.
2828
#
29+
# The "-lffi and -lncurses" are required for LLVM. The LLVM that rust builds
30+
# manually disables bringing in these two libraries, but the stock LLVM was
31+
# apparently built with these options. We provide these options when building so
32+
# the `rustc` binary can successfully link.
33+
#
2934
# As a result of https://github.com/travis-ci/travis-ci/issues/1066, we run
3035
# everything in one large command instead of multiple commands.
3136
script: |
3237
make tidy &&
33-
make -j4 rustc-stage1 &&
38+
RUSTFLAGS="-C link-args='-lffi -lncurses'" make -j4 rustc-stage1 &&
3439
make check-stage1-std check-stage1-rpass check-stage1-cfail check-stage1-rfail
3540
3641
env:

branches/try/src/etc/emacs/README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,3 @@ The file `rust-mode-tests.el` contains tests that can be run via
7676
[ERT](http://www.gnu.org/software/emacs/manual/html_node/ert/index.html).
7777
You can use `run_rust_emacs_tests.sh` to run them in batch mode, if
7878
Emacs is somewhere in your `$PATH`.
79-
80-
### Known bugs
81-
82-
* Combining `global-whitespace-mode` and `rust-mode` is generally glitchy.
83-
See [Issue #3994](https://github.com/mozilla/rust/issues/3994).

branches/try/src/etc/mklldeps.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555

5656
f.write("#[cfg(" + ', '.join(cfg) + ")]\n")
5757

58-
# LLVM libs
5958
args = [llconfig, '--libs']
6059
args.extend(components)
6160
proc = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
@@ -68,21 +67,6 @@
6867
for lib in out.strip().split(' '):
6968
lib = lib[2:] # chop of the leading '-l'
7069
f.write("#[link(name = \"" + lib + "\", kind = \"static\")]\n")
71-
72-
# LLVM ldflags
73-
args = [llconfig, '--ldflags']
74-
proc = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
75-
out, err = proc.communicate()
76-
77-
if err:
78-
print("failed to run llconfig: args = `{}`".format(args))
79-
sys.exit(1)
80-
81-
for lib in out.strip().split(' '):
82-
if lib[:2] == "-l":
83-
f.write("#[link(name = \"" + lib[2:] + "\")]\n")
84-
85-
#extra
8670
f.write("#[link(name = \"stdc++\")]\n")
8771
if os == 'win32':
8872
f.write("#[link(name = \"imagehlp\")]\n")

branches/try/src/librustc/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ This API is completely unstable and subject to change.
3030
#[feature(macro_rules, globs, struct_variant, managed_boxes)];
3131
#[feature(quote)];
3232

33+
#[allow(visible_private_types)];
34+
3335
extern crate extra;
3436
extern crate flate;
3537
extern crate arena;

branches/try/src/librustc/metadata/decoder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ use syntax::ast;
4646
use syntax::codemap;
4747
use syntax::crateid::CrateId;
4848

49-
pub type Cmd = @crate_metadata;
49+
type Cmd = @crate_metadata;
5050

5151
// A function that takes a def_id relative to the crate being searched and
5252
// returns a def_id relative to the compilation environment, i.e. if we hit a

branches/try/src/librustc/metadata/encoder.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ use syntax;
5252
use writer = serialize::ebml::writer;
5353

5454
// used by astencode:
55-
pub type abbrev_map = @RefCell<HashMap<ty::t, tyencode::ty_abbrev>>;
55+
type abbrev_map = @RefCell<HashMap<ty::t, tyencode::ty_abbrev>>;
5656

5757
/// A borrowed version of ast::InlinedItem.
5858
pub enum InlinedItemRef<'a> {
@@ -76,7 +76,7 @@ pub struct EncodeParams<'a> {
7676
encode_inlined_item: EncodeInlinedItem<'a>,
7777
}
7878

79-
pub struct Stats {
79+
struct Stats {
8080
inline_bytes: Cell<u64>,
8181
attr_bytes: Cell<u64>,
8282
dep_bytes: Cell<u64>,

branches/try/src/librustc/metadata/tydecode.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ pub enum DefIdSource {
5454
// Identifies a region parameter (`fn foo<'X>() { ... }`).
5555
RegionParameter,
5656
}
57-
pub type conv_did<'a> =
57+
type conv_did<'a> =
5858
'a |source: DefIdSource, ast::DefId| -> ast::DefId;
5959

6060
pub struct PState<'a> {

branches/try/src/librustc/middle/borrowck/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,7 @@ impl Repr for LoanPath {
907907

908908
///////////////////////////////////////////////////////////////////////////
909909

910-
pub struct TcxTyper {
910+
struct TcxTyper {
911911
tcx: ty::ctxt,
912912
method_map: typeck::MethodMap,
913913
}

branches/try/src/librustc/middle/check_const.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use syntax::{ast_util, ast_map};
2020
use syntax::visit::Visitor;
2121
use syntax::visit;
2222

23-
pub struct CheckCrateVisitor {
23+
struct CheckCrateVisitor {
2424
sess: Session,
2525
def_map: resolve::DefMap,
2626
method_map: typeck::MethodMap,

branches/try/src/librustc/middle/liveness.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,9 @@ use syntax::{visit, ast_util};
126126
use syntax::visit::{Visitor, FnKind};
127127

128128
#[deriving(Eq)]
129-
pub struct Variable(uint);
129+
struct Variable(uint);
130130
#[deriving(Eq)]
131-
pub struct LiveNode(uint);
131+
struct LiveNode(uint);
132132

133133
impl Variable {
134134
fn get(&self) -> uint { let Variable(v) = *self; v }
@@ -145,7 +145,7 @@ impl Clone for LiveNode {
145145
}
146146

147147
#[deriving(Eq)]
148-
pub enum LiveNodeKind {
148+
enum LiveNodeKind {
149149
FreeVarNode(Span),
150150
ExprNode(Span),
151151
VarDefNode(Span),
@@ -226,32 +226,32 @@ impl LiveNode {
226226

227227
fn invalid_node() -> LiveNode { LiveNode(uint::MAX) }
228228

229-
pub struct CaptureInfo {
229+
struct CaptureInfo {
230230
ln: LiveNode,
231231
is_move: bool,
232232
var_nid: NodeId
233233
}
234234

235-
pub enum LocalKind {
235+
enum LocalKind {
236236
FromMatch(BindingMode),
237237
FromLetWithInitializer,
238238
FromLetNoInitializer
239239
}
240240

241-
pub struct LocalInfo {
241+
struct LocalInfo {
242242
id: NodeId,
243243
ident: Ident,
244244
is_mutbl: bool,
245245
kind: LocalKind,
246246
}
247247

248-
pub enum VarKind {
248+
enum VarKind {
249249
Arg(NodeId, Ident),
250250
Local(LocalInfo),
251251
ImplicitRet
252252
}
253253

254-
pub struct IrMaps {
254+
struct IrMaps {
255255
tcx: ty::ctxt,
256256
method_map: typeck::MethodMap,
257257
capture_map: moves::CaptureMap,
@@ -560,7 +560,7 @@ fn visit_expr(v: &mut LivenessVisitor, expr: &Expr, this: @IrMaps) {
560560
// the same basic propagation framework in all cases.
561561

562562
#[deriving(Clone)]
563-
pub struct Users {
563+
struct Users {
564564
reader: LiveNode,
565565
writer: LiveNode,
566566
used: bool
@@ -574,7 +574,7 @@ fn invalid_users() -> Users {
574574
}
575575
}
576576

577-
pub struct Specials {
577+
struct Specials {
578578
exit_ln: LiveNode,
579579
fallthrough_ln: LiveNode,
580580
no_ret_var: Variable
@@ -584,7 +584,7 @@ static ACC_READ: uint = 1u;
584584
static ACC_WRITE: uint = 2u;
585585
static ACC_USE: uint = 4u;
586586

587-
pub type LiveNodeMap = @RefCell<HashMap<NodeId, LiveNode>>;
587+
type LiveNodeMap = @RefCell<HashMap<NodeId, LiveNode>>;
588588

589589
pub struct Liveness {
590590
tcx: ty::ctxt,
@@ -1554,7 +1554,7 @@ fn check_fn(_v: &Liveness,
15541554
// do not check contents of nested fns
15551555
}
15561556

1557-
pub enum ReadKind {
1557+
enum ReadKind {
15581558
PossiblyUninitializedVariable,
15591559
PossiblyUninitializedField,
15601560
MovedValue,

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1322,8 +1322,8 @@ fn arg_kind(cx: &FunctionContext, t: ty::t) -> datum::Rvalue {
13221322
}
13231323

13241324
// work around bizarre resolve errors
1325-
pub type RvalueDatum = datum::Datum<datum::Rvalue>;
1326-
pub type LvalueDatum = datum::Datum<datum::Lvalue>;
1325+
type RvalueDatum = datum::Datum<datum::Rvalue>;
1326+
type LvalueDatum = datum::Datum<datum::Lvalue>;
13271327

13281328
// create_datums_for_fn_args: creates rvalue datums for each of the
13291329
// incoming function arguments. These will later be stored into

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,20 +51,20 @@ pub static EXIT_BREAK: uint = 0;
5151
pub static EXIT_LOOP: uint = 1;
5252
pub static EXIT_MAX: uint = 2;
5353

54-
pub enum CleanupScopeKind<'a> {
54+
enum CleanupScopeKind<'a> {
5555
CustomScopeKind,
5656
AstScopeKind(ast::NodeId),
5757
LoopScopeKind(ast::NodeId, [&'a Block<'a>, ..EXIT_MAX])
5858
}
5959

6060
#[deriving(Eq)]
61-
pub enum EarlyExitLabel {
61+
enum EarlyExitLabel {
6262
UnwindExit,
6363
ReturnExit,
6464
LoopExit(ast::NodeId, uint)
6565
}
6666

67-
pub struct CachedEarlyExit {
67+
struct CachedEarlyExit {
6868
label: EarlyExitLabel,
6969
cleanup_block: BasicBlockRef,
7070
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,8 @@ impl Repr for param_substs {
212212
}
213213

214214
// work around bizarre resolve errors
215-
pub type RvalueDatum = datum::Datum<datum::Rvalue>;
216-
pub type LvalueDatum = datum::Datum<datum::Lvalue>;
215+
type RvalueDatum = datum::Datum<datum::Rvalue>;
216+
type LvalueDatum = datum::Datum<datum::Lvalue>;
217217

218218
// Function context. Every LLVM function we create will have one of
219219
// these.

branches/try/src/librustc/middle/ty.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,9 @@ pub struct creader_cache_key {
158158
len: uint
159159
}
160160

161-
pub type creader_cache = RefCell<HashMap<creader_cache_key, t>>;
161+
type creader_cache = RefCell<HashMap<creader_cache_key, t>>;
162162

163-
pub struct intern_key {
163+
struct intern_key {
164164
sty: *sty,
165165
}
166166

@@ -1068,7 +1068,7 @@ pub struct ty_param_substs_and_ty {
10681068
ty: ty::t
10691069
}
10701070

1071-
pub type type_cache = RefCell<HashMap<ast::DefId, ty_param_bounds_and_ty>>;
1071+
type type_cache = RefCell<HashMap<ast::DefId, ty_param_bounds_and_ty>>;
10721072

10731073
pub type node_type_table = RefCell<HashMap<uint,t>>;
10741074

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,4 +729,4 @@ pub fn check_pointer_pat(pcx: &pat_ctxt,
729729
}
730730

731731
#[deriving(Eq)]
732-
pub enum PointerKind { Send, Borrowed }
732+
enum PointerKind { Send, Borrowed }

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ pub struct Candidate {
236236
/// now we must check that the type `T` is correct). Unfortunately,
237237
/// because traits are not types, this is a pain to do.
238238
#[deriving(Clone)]
239-
pub enum RcvrMatchCondition {
239+
enum RcvrMatchCondition {
240240
RcvrMatchesIfObject(ast::DefId),
241241
RcvrMatchesIfSubtype(ty::t)
242242
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ fn rollback_to<V:Clone + Vid,T:Clone>(vb: &mut ValsAndBindings<V, T>,
500500
}
501501
}
502502

503-
pub struct Snapshot {
503+
struct Snapshot {
504504
ty_var_bindings_len: uint,
505505
int_var_bindings_len: uint,
506506
float_var_bindings_len: uint,

branches/try/src/librustc/middle/typeck/infer/region_inference/mod.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,27 +35,27 @@ use syntax::opt_vec::OptVec;
3535
mod doc;
3636

3737
#[deriving(Eq, Hash)]
38-
pub enum Constraint {
38+
enum Constraint {
3939
ConstrainVarSubVar(RegionVid, RegionVid),
4040
ConstrainRegSubVar(Region, RegionVid),
4141
ConstrainVarSubReg(RegionVid, Region),
4242
ConstrainRegSubReg(Region, Region),
4343
}
4444

4545
#[deriving(Eq, Hash)]
46-
pub struct TwoRegions {
46+
struct TwoRegions {
4747
a: Region,
4848
b: Region,
4949
}
5050

51-
pub enum UndoLogEntry {
51+
enum UndoLogEntry {
5252
Snapshot,
5353
AddVar(RegionVid),
5454
AddConstraint(Constraint),
5555
AddCombination(CombineMapType, TwoRegions)
5656
}
5757

58-
pub enum CombineMapType {
58+
enum CombineMapType {
5959
Lub, Glb
6060
}
6161

@@ -84,7 +84,7 @@ pub enum RegionResolutionError {
8484
SubregionOrigin, Region),
8585
}
8686

87-
pub type CombineMap = HashMap<TwoRegions, RegionVid>;
87+
type CombineMap = HashMap<TwoRegions, RegionVid>;
8888

8989
pub struct RegionVarBindings {
9090
tcx: ty::ctxt,
@@ -764,7 +764,7 @@ impl RegionVarBindings {
764764
#[deriving(Eq, Show)]
765765
enum Classification { Expanding, Contracting }
766766

767-
pub enum VarValue { NoValue, Value(Region), ErrorValue }
767+
enum VarValue { NoValue, Value(Region), ErrorValue }
768768

769769
struct VarData {
770770
classification: Classification,

0 commit comments

Comments
 (0)