Skip to content

Commit 02116d3

Browse files
committed
---
yaml --- r: 60849 b: refs/heads/auto c: 2bed5dc h: refs/heads/master i: 60847: e894f8f v: v3
1 parent c5ea1e4 commit 02116d3

File tree

29 files changed

+56
-32
lines changed

29 files changed

+56
-32
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1414
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1515
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1616
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17-
refs/heads/auto: aef1e10eba812b8144b0a4ac8d9b6e690c6e5ca7
17+
refs/heads/auto: 2bed5dc528c120e571a75ef77349cd3222ce4cd3
1818
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1919
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c

branches/auto/src/libextra/bitv.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
33
// http://rust-lang.org/COPYRIGHT.
44
//
@@ -13,6 +13,7 @@ use core::prelude::*;
1313
use core::cmp;
1414
use core::ops;
1515
use core::uint;
16+
use core::vec::from_elem;
1617
use core::vec;
1718

1819
struct SmallBitv {

branches/auto/src/libextra/test.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
33
// http://rust-lang.org/COPYRIGHT.
44
//
@@ -24,11 +24,13 @@ use term;
2424
use core::comm::{stream, SharedChan};
2525
use core::either;
2626
use core::io;
27+
use core::num;
2728
use core::option;
2829
use core::result;
2930
use core::str;
3031
use core::task;
3132
use core::to_str::ToStr;
33+
use core::u64;
3234
use core::uint;
3335
use core::vec;
3436

branches/auto/src/libextra/uv_global_loop.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
33
// http://rust-lang.org/COPYRIGHT.
44
//
@@ -16,7 +16,9 @@ use iotask = uv_iotask;
1616
use uv_iotask::{IoTask, spawn_iotask};
1717

1818
use core::comm::Chan;
19+
use core::libc;
1920
use core::option::{Some, None};
21+
use core::str;
2022
use core::task::task;
2123
use core::unstable::global::{global_data_clone_create, global_data_clone};
2224
use core::unstable::weak_task::weaken_task;

branches/auto/src/librustc/back/link.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
33
// http://rust-lang.org/COPYRIGHT.
44
//
@@ -106,7 +106,9 @@ pub mod jit {
106106
use metadata::cstore;
107107

108108
use core::cast;
109+
use core::char;
109110
use core::libc::c_int;
111+
use core::os;
110112
use core::ptr;
111113
use core::str;
112114

branches/auto/src/librustc/back/passes.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
33
// http://rust-lang.org/COPYRIGHT.
44
//
@@ -12,7 +12,7 @@ use core::prelude::*;
1212
use core::str;
1313
use core::io;
1414

15-
use driver::session::{OptLevel, No, Less, Aggressive};
15+
use driver::session::{OptLevel, No, Less, Default, Aggressive};
1616
use driver::session::{Session};
1717
use lib::llvm::{PassRef, ModuleRef,PassManagerRef,TargetDataRef};
1818
use lib::llvm::llvm;

branches/auto/src/librustc/middle/kind.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ pub fn check_durable(tcx: ty::ctxt, ty: ty::t, sp: span) -> bool {
421421
match ty::get(ty).sty {
422422
ty::ty_param(*) => {
423423
tcx.sess.span_err(sp, "value may contain borrowed \
424-
pointers; use `'static` bound");
424+
pointers; add `'static` bound");
425425
}
426426
_ => {
427427
tcx.sess.span_err(sp, "value may contain borrowed \

branches/auto/src/librustc/middle/trans/foreign.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ use middle::ty;
3434
use middle::ty::FnSig;
3535
use util::ppaux::ty_to_str;
3636

37+
use core::str;
3738
use core::uint;
3839
use core::vec;
3940
use syntax::codemap::span;

branches/auto/src/librustc/middle/trans/glue.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
33
// http://rust-lang.org/COPYRIGHT.
44
//
@@ -19,6 +19,7 @@ use back::link::*;
1919
use driver::session;
2020
use lib;
2121
use lib::llvm::{llvm, ValueRef, TypeRef, True};
22+
use lib::llvm::type_to_str;
2223
use middle::trans::adt;
2324
use middle::trans::base::*;
2425
use middle::trans::callee;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ use core::to_bytes;
3737
use core::u32;
3838
use core::uint;
3939
use core::vec;
40+
use extra::smallintmap::SmallIntMap;
4041
use syntax::ast::*;
4142
use syntax::ast_util::is_local;
4243
use syntax::ast_util;

branches/auto/src/librustdoc/astsrv.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
33
// http://rust-lang.org/COPYRIGHT.
44
//
@@ -24,6 +24,7 @@ use parse;
2424
use core::cell::Cell;
2525
use core::comm::{stream, SharedChan, Port};
2626
use core::task;
27+
use core::vec;
2728
use rustc::driver::driver;
2829
use rustc::driver::session::Session;
2930
use rustc::driver::session::{basic_options, options};
@@ -32,8 +33,6 @@ use syntax::ast;
3233
use syntax::ast_map;
3334
use syntax;
3435

35-
#[cfg(test)] use core::vec;
36-
3736
pub struct Ctxt {
3837
ast: @ast::crate,
3938
ast_map: ast_map::map

branches/auto/src/librustdoc/extract.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
33
// http://rust-lang.org/COPYRIGHT.
44
//
@@ -16,6 +16,7 @@ use astsrv;
1616
use doc::ItemUtils;
1717
use doc;
1818

19+
use core::local_data::local_data_get;
1920
use core::vec;
2021
use syntax::ast;
2122
use syntax::parse::token::{ident_interner};

branches/auto/src/librustdoc/markdown_writer.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
33
// http://rust-lang.org/COPYRIGHT.
44
//
@@ -17,6 +17,8 @@ use doc;
1717
use core::comm::*;
1818
use core::comm;
1919
use core::io;
20+
use core::libc;
21+
use core::os;
2022
use core::result;
2123
use core::run;
2224
use core::str;

branches/auto/src/librustdoc/unindent_pass.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
33
// http://rust-lang.org/COPYRIGHT.
44
//
@@ -22,6 +22,7 @@ middle of a line, and each of the following lines is indented.
2222
use core::prelude::*;
2323

2424
use core::str;
25+
use core::task;
2526
use core::uint;
2627
use core::vec;
2728
use pass::Pass;

branches/auto/src/libstd/cell.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
33
// http://rust-lang.org/COPYRIGHT.
44
//
@@ -11,6 +11,7 @@
1111
//! A mutable, nullable memory location
1212
1313
use cast::transmute_mut;
14+
use cmp;
1415
use prelude::*;
1516
use util::replace;
1617

branches/auto/src/libstd/iterator.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ implementing the `Iterator` trait.
2020
use cmp;
2121
use iter;
2222
use num::{Zero, One};
23+
use num;
2324
use prelude::*;
2425

2526
/// An interface for dealing with "external iterators". These types of iterators

branches/auto/src/libstd/local_data.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
33
// http://rust-lang.org/COPYRIGHT.
44
//
@@ -29,8 +29,7 @@ magic.
2929
use prelude::*;
3030

3131
use task::local_data_priv::{local_get, local_pop, local_modify, local_set, Handle};
32-
33-
#[cfg(test)] use task;
32+
use task;
3433

3534
/**
3635
* Indexes a task-local data slot. The function's code pointer is used for

branches/auto/src/libstd/rand/distributions.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
// could implement VIZIGNOR the ZIGNOR paper for more speed.
2222

2323
use f64;
24+
use prelude::*;
2425
use rand::{Rng,Rand};
2526

2627
mod ziggurat_tables;

branches/auto/src/libstd/rt/task.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ use prelude::*;
2020
use rt::local::Local;
2121
use rt::logging::StdErrLogger;
2222
use super::local_heap::LocalHeap;
23+
use super::sched::Scheduler;
2324

2425
pub struct Task {
2526
heap: LocalHeap,

branches/auto/src/libstd/task/mod.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
33
// http://rust-lang.org/COPYRIGHT.
44
//
@@ -37,22 +37,22 @@
3737

3838
use prelude::*;
3939

40+
use cast;
4041
use cell::Cell;
4142
use cmp::Eq;
4243
use comm::{stream, Chan, GenericChan, GenericPort, Port};
44+
use comm;
45+
use ptr;
4346
use result::Result;
4447
use result;
4548
use rt::{context, OldTaskContext};
4649
use task::rt::{task_id, sched_id};
50+
use task;
4751
use unstable::finally::Finally;
4852
use util::replace;
4953
use util;
5054

51-
#[cfg(test)] use cast;
5255
#[cfg(test)] use comm::SharedChan;
53-
#[cfg(test)] use comm;
54-
#[cfg(test)] use ptr;
55-
#[cfg(test)] use task;
5656

5757
mod local_data_priv;
5858
pub mod rt;

branches/auto/src/libstd/task/spawn.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
33
// http://rust-lang.org/COPYRIGHT.
44
//
@@ -79,6 +79,7 @@ use cast;
7979
use cell::Cell;
8080
use container::Map;
8181
use comm::{Chan, GenericChan};
82+
use comm;
8283
use ptr;
8384
use hashmap::HashSet;
8485
use task::local_data_priv::{local_get, local_set, OldHandle};
@@ -88,14 +89,13 @@ use task::{Failure, ManualThreads, PlatformThread, SchedOpts, SingleThreaded};
8889
use task::{Success, TaskOpts, TaskResult, ThreadPerCore, ThreadPerTask};
8990
use task::{ExistingScheduler, SchedulerHandle};
9091
use task::unkillable;
92+
use task;
9193
use uint;
9294
use util;
9395
use unstable::sync::{Exclusive, exclusive};
9496
use rt::local::Local;
9597

9698
#[cfg(test)] use task::default_task_opts;
97-
#[cfg(test)] use comm;
98-
#[cfg(test)] use task;
9999

100100
macro_rules! move_it (
101101
{ $x:expr } => ( unsafe { let y = *ptr::to_unsafe_ptr(&($x)); y } )

branches/auto/src/libstd/trie.rs

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

1111
//! An ordered map and set for integer keys implemented as a radix trie
1212
13+
use local_data;
14+
use os;
1315
use prelude::*;
1416
use uint;
1517
use util::{swap, replace};

branches/auto/src/libstd/unstable/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
33
// http://rust-lang.org/COPYRIGHT.
44
//
@@ -14,6 +14,7 @@ use comm::{GenericChan, GenericPort};
1414
use comm;
1515
use libc;
1616
use prelude::*;
17+
use ptr;
1718
use task;
1819

1920
pub mod at_exit;

branches/auto/src/libstd/util.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
//! Miscellaneous helpers for common patterns.
1212
1313
use cast;
14+
use local_data;
1415
use ptr;
1516
use prelude::*;
1617
use unstable::intrinsics;

branches/auto/src/libsyntax/ext/pipes/ast_builder.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
33
// http://rust-lang.org/COPYRIGHT.
44
//
@@ -19,6 +19,7 @@ use ast::ident;
1919
use ast;
2020
use codemap::span;
2121

22+
use core::str;
2223
use core::vec;
2324

2425
// Transitional reexports so qquote can find the paths it is looking for

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ use parse::{new_sub_parser_from_file, next_node_id, ParseSess};
9292
use opt_vec;
9393
use opt_vec::OptVec;
9494

95+
use core::char;
9596
use core::either::Either;
9697
use core::either;
9798
use core::hashmap::HashSet;

branches/auto/src/libsyntax/parse/token.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
33
// http://rust-lang.org/COPYRIGHT.
44
//
@@ -19,9 +19,11 @@ use util::interner;
1919
use core::cast;
2020
use core::char;
2121
use core::cmp::Equiv;
22+
use core::hashmap::HashSet;
2223
use core::local_data;
2324
use core::str;
2425
use core::to_bytes;
26+
use core::vec;
2527

2628
#[deriving(Encodable, Decodable, Eq)]
2729
pub enum binop {

branches/auto/src/test/compile-fail/kindck-owned-trait-scoped.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ fn to_foo_2<T:Copy>(t: T) -> @foo {
3737
// Not OK---T may contain borrowed ptrs and it is going to escape
3838
// as part of the returned foo value
3939
struct F<T> { f: T }
40-
@F {f:t} as @foo //~ ERROR value may contain borrowed pointers; use `'static` bound
40+
@F {f:t} as @foo //~ ERROR value may contain borrowed pointers; add `'static` bound
4141
}
4242

4343
fn to_foo_3<T:Copy + 'static>(t: T) -> @foo {

branches/auto/src/test/compile-fail/kindck-owned-trait.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
trait foo { fn foo(&self); }
1212

1313
fn to_foo<T:Copy + foo>(t: T) -> @foo {
14-
@t as @foo //~ ERROR value may contain borrowed pointers; use `'static` bound
14+
@t as @foo //~ ERROR value may contain borrowed pointers; add `'static` bound
1515
}
1616

1717
fn to_foo2<T:Copy + foo + 'static>(t: T) -> @foo {

0 commit comments

Comments
 (0)