Skip to content

Commit f8becec

Browse files
committed
---
yaml --- r: 58749 b: refs/heads/try c: 7ac6571 h: refs/heads/master i: 58747: 8ef7195 v: v3
1 parent 153e9e6 commit f8becec

File tree

16 files changed

+63
-20
lines changed

16 files changed

+63
-20
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: c081ffbd1e845687202a975ea2e698b623e5722f
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 213f7b24ccd9a6833af7e1a329c5e7ffc8f9e3d2
5-
refs/heads/try: a47e4cb22fbced2391845f7bfc7a458bca8c8273
5+
refs/heads/try: 7ac657116343c599806e733c2caf896681ab3bd1
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/src/libcore/task/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ use result::Result;
3939
use comm::{stream, Chan, GenericChan, GenericPort, Port};
4040
use prelude::*;
4141
use result;
42-
use task::rt::{task_id, sched_id};
42+
use task::rt::{task_id, sched_id, rust_task};
4343
use util;
4444
use util::replace;
4545
use unstable::finally::Finally;

branches/try/src/libcore/unstable/lang.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ use str;
1717
use sys;
1818
use unstable::exchange_alloc;
1919
use cast::transmute;
20-
#[cfg(not(stage0))]
2120
use rt::{context, OldTaskContext};
22-
#[cfg(not(stage0))]
2321
use rt::local_services::borrow_local_services;
2422

2523
#[allow(non_camel_case_types)]

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ fn get_metadata_section(os: os,
196196
while llvm::LLVMIsSectionIteratorAtEnd(of.llof, si.llsi) == False {
197197
let name_buf = llvm::LLVMGetSectionName(si.llsi);
198198
let name = unsafe { str::raw::from_c_str(name_buf) };
199-
debug!("get_metadata_section: name %s", name);
199+
debug!("get_matadata_section: name %s", name);
200200
if name == read_meta_section_name(os) {
201201
let cbuf = llvm::LLVMGetSectionContents(si.llsi);
202202
let csz = llvm::LLVMGetSectionSize(si.llsi) as uint;

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

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2096,7 +2096,8 @@ pub fn trans_tuple_struct(ccx: @CrateContext,
20962096
}
20972097
20982098
pub fn trans_enum_def(ccx: @CrateContext, enum_definition: &ast::enum_def,
2099-
id: ast::node_id, vi: @~[ty::VariantInfo],
2099+
id: ast::node_id,
2100+
path: @ast_map::path, vi: @~[ty::VariantInfo],
21002101
i: &mut uint) {
21012102
for vec::each(enum_definition.variants) |variant| {
21022103
let disr_val = vi[*i].disr_val;
@@ -2171,7 +2172,8 @@ pub fn trans_item(ccx: @CrateContext, item: &ast::item) {
21712172
if !generics.is_type_parameterized() {
21722173
let vi = ty::enum_variants(ccx.tcx, local_def(item.id));
21732174
let mut i = 0;
2174-
trans_enum_def(ccx, enum_definition, item.id, vi, &mut i);
2175+
trans_enum_def(ccx, enum_definition, item.id,
2176+
path, vi, &mut i);
21752177
}
21762178
}
21772179
ast::item_const(_, expr) => consts::trans_const(ccx, expr, item.id),
@@ -2428,13 +2430,13 @@ pub fn get_item_val(ccx: @CrateContext, id: ast::node_id) -> ValueRef {
24282430
Some(&v) => v,
24292431
None => {
24302432
let mut exprt = false;
2431-
let val = match *tcx.items.get(&id) {
2433+
let val = match *ccx.tcx.items.get(&id) {
24322434
ast_map::node_item(i, pth) => {
24332435
let my_path = vec::append(/*bad*/copy *pth,
24342436
~[path_name(i.ident)]);
24352437
match i.node {
24362438
ast::item_const(_, expr) => {
2437-
let typ = ty::node_id_to_type(tcx, i.id);
2439+
let typ = ty::node_id_to_type(ccx.tcx, i.id);
24382440
let s = mangle_exported_name(ccx, my_path, typ);
24392441
// We need the translated value here, because for enums the
24402442
// LLVM type is not fully determined by the Rust type.
@@ -2493,7 +2495,7 @@ pub fn get_item_val(ccx: @CrateContext, id: ast::node_id) -> ValueRef {
24932495
ni.attrs)
24942496
}
24952497
ast::foreign_item_const(*) => {
2496-
let typ = ty::node_id_to_type(tcx, ni.id);
2498+
let typ = ty::node_id_to_type(ccx.tcx, ni.id);
24972499
let ident = ccx.sess.parse_sess.interner.get(ni.ident);
24982500
let g = do str::as_c_str(*ident) |buf| {
24992501
unsafe {
@@ -2534,7 +2536,7 @@ pub fn get_item_val(ccx: @CrateContext, id: ast::node_id) -> ValueRef {
25342536
// Only register the constructor if this is a tuple-like struct.
25352537
match struct_def.ctor_id {
25362538
None => {
2537-
tcx.sess.bug(~"attempt to register a constructor of \
2539+
ccx.tcx.sess.bug(~"attempt to register a constructor of \
25382540
a non-tuple-like struct")
25392541
}
25402542
Some(ctor_id) => {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ use core::to_bytes;
3333
use core::hashmap::{HashMap, HashSet};
3434
use std::smallintmap::SmallIntMap;
3535
use syntax::ast::*;
36-
use syntax::ast_util::is_local;
36+
use syntax::ast_util::{is_local, local_def};
3737
use syntax::ast_util;
3838
use syntax::attr;
3939
use syntax::codemap::span;

branches/try/src/librustc/rustc.rc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#[allow(non_implicitly_copyable_typarams)];
2121
#[allow(non_camel_case_types)];
2222
#[deny(deprecated_pattern)];
23+
#[deny(deprecated_mode)];
2324

2425
extern mod std(vers = "0.7-pre");
2526
extern mod syntax(vers = "0.7-pre");

branches/try/src/libstd/arena.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
// to waste time running the destructors of POD.
3434

3535
use list::{MutList, MutCons, MutNil};
36+
use list;
3637

3738
use core::at_vec;
3839
use core::cast::{transmute, transmute_mut_region};
@@ -78,7 +79,7 @@ struct Chunk {
7879
}
7980

8081
pub struct Arena {
81-
// The head is separated out from the list as a unbenchmarked
82+
// The head is seperated out from the list as a unbenchmarked
8283
// microoptimization, to avoid needing to case on the list to
8384
// access the head.
8485
priv head: Chunk,

branches/try/src/libstd/future.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
use core::cast;
2525
use core::cell::Cell;
26-
use core::comm::{PortOne, oneshot, send_one};
26+
use core::comm::{ChanOne, PortOne, oneshot, send_one};
2727
use core::pipes::recv;
2828
use core::task;
2929

branches/try/src/libstd/net_tcp.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
//! High-level interface to libuv's TCP functionality
1212
// FIXME #4425: Need FFI fixes
1313

14+
#[allow(deprecated_mode)];
15+
1416
use future;
1517
use future_spawn = future::spawn;
1618
use ip = net_ip;

branches/try/src/libstd/net_url.rs

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

1111
//! Types/fns concerning URLs (see RFC 3986)
1212
13+
#[allow(deprecated_mode)];
14+
1315
use core::cmp::Eq;
1416
use core::io::{Reader, ReaderUtil};
1517
use core::io;

branches/try/src/libstd/workcache.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,16 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#[allow(deprecated_mode)];
12+
1113
use json;
1214
use sha1;
1315
use serialize::{Encoder, Encodable, Decoder, Decodable};
1416
use sort;
1517

1618
use core::cell::Cell;
1719
use core::cmp;
18-
use core::comm::{PortOne, oneshot, send_one};
20+
use core::comm::{ChanOne, PortOne, oneshot, send_one};
1921
use core::either::{Either, Left, Right};
2022
use core::hashmap::HashMap;
2123
use core::io;

branches/try/src/libsyntax/parse/parser.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -932,8 +932,8 @@ pub impl Parser {
932932
loop {
933933
match *self.token {
934934
token::MOD_SEP => {
935-
match self.look_ahead(1) {
936-
token::IDENT(*) => {
935+
match self.look_ahead(1u) {
936+
token::IDENT(id,_) => {
937937
self.bump();
938938
ids.push(self.parse_ident());
939939
}
@@ -3693,7 +3693,7 @@ pub impl Parser {
36933693
items: _,
36943694
foreign_items: foreign_items
36953695
} = self.parse_foreign_items(first_item_attrs, true);
3696-
let _initial_attrs = attrs_remaining;
3696+
let mut initial_attrs = attrs_remaining;
36973697
assert!(*self.token == token::RBRACE);
36983698
ast::foreign_mod {
36993699
sort: sort,

branches/try/src/libsyntax/syntax.rc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
#[allow(vecs_implicitly_copyable)];
2424
#[allow(non_camel_case_types)];
25+
#[deny(deprecated_mode)];
2526
#[deny(deprecated_pattern)];
2627

2728
extern mod std(vers = "0.7-pre");

branches/try/src/rt/rust_android_dummy.cpp

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5+
#ifdef __ANDROID__
6+
57
#include "rust_android_dummy.h"
68
#include <math.h>
79
#include <errno.h>
810

9-
#ifdef __ANDROID__
10-
1111
int backtrace(void **array, int size) { return 0; }
1212

1313
char **backtrace_symbols(void *const *array, int size) { return 0; }
@@ -59,7 +59,18 @@ extern "C" void srand()
5959
extern "C" void atof()
6060
{
6161
}
62+
6263
extern "C" void tgammaf()
6364
{
6465
}
66+
67+
extern "C" int glob(const char *pattern, int flags, int (*errfunc) (const char *epath, int eerrno), glob_t *pglob)
68+
{
69+
return 0;
70+
}
71+
72+
extern "C" void globfree(glob_t *pglob)
73+
{
74+
}
75+
6576
#endif

branches/try/src/rt/rust_android_dummy.h

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,28 @@ char **backtrace_symbols (void *__const *__array, int __size);
1111

1212
void backtrace_symbols_fd (void *__const *__array, int __size, int __fd);
1313

14+
#include <sys/types.h>
15+
16+
struct stat;
17+
typedef struct {
18+
size_t gl_pathc; /* Count of total paths so far. */
19+
size_t gl_matchc; /* Count of paths matching pattern. */
20+
size_t gl_offs; /* Reserved at beginning of gl_pathv. */
21+
int gl_flags; /* Copy of flags parameter to glob. */
22+
char **gl_pathv; /* List of paths matching pattern. */
23+
/* Copy of errfunc parameter to glob. */
24+
int (*gl_errfunc)(const char *, int);
25+
26+
/*
27+
* Alternate filesystem access methods for glob; replacement
28+
* versions of closedir(3), readdir(3), opendir(3), stat(2)
29+
* and lstat(2).
30+
*/
31+
void (*gl_closedir)(void *);
32+
struct dirent *(*gl_readdir)(void *);
33+
void *(*gl_opendir)(const char *);
34+
int (*gl_lstat)(const char *, struct stat *);
35+
} glob_t;
36+
1437
#endif
1538

0 commit comments

Comments
 (0)