Skip to content

Commit 9d90515

Browse files
committed
---
yaml --- r: 151806 b: refs/heads/try2 c: 14d3dbe h: refs/heads/master v: v3
1 parent 4d06cdc commit 9d90515

40 files changed

+264
-521
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: bf8648dbdad525eebe90e4920439b30c0440d682
8+
refs/heads/try2: 14d3dbe292dc4ac590dabd0c33fe18edb7810be9
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/mk/crates.mk

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,14 @@
5151

5252
TARGET_CRATES := libc std green rustuv native flate arena glob term semver \
5353
uuid serialize sync getopts collections num test time rand \
54-
workcache url log regex graphviz core rlibc alloc
54+
workcache url log regex graphviz core rlibc
5555
HOST_CRATES := syntax rustc rustdoc fourcc hexfloat regex_macros fmt_macros
5656
CRATES := $(TARGET_CRATES) $(HOST_CRATES)
5757
TOOLS := compiletest rustdoc rustc
5858

5959
DEPS_core :=
6060
DEPS_rlibc :=
61-
DEPS_alloc := core libc native:jemalloc
62-
DEPS_std := core libc alloc native:rustrt native:backtrace
61+
DEPS_std := core libc native:rustrt native:compiler-rt native:backtrace native:jemalloc
6362
DEPS_graphviz := std
6463
DEPS_green := std rand native:context_switch
6564
DEPS_rustuv := std native:uv native:uv_support
@@ -77,7 +76,7 @@ DEPS_serialize := std collections log
7776
DEPS_term := std collections log
7877
DEPS_semver := std
7978
DEPS_uuid := std serialize rand
80-
DEPS_sync := std alloc
79+
DEPS_sync := std
8180
DEPS_getopts := std
8281
DEPS_collections := std rand
8382
DEPS_fourcc := syntax std
@@ -102,7 +101,6 @@ TOOL_SOURCE_rustc := $(S)src/driver/driver.rs
102101

103102
ONLY_RLIB_core := 1
104103
ONLY_RLIB_rlibc := 1
105-
ONLY_RLIB_alloc := 1
106104

107105
################################################################################
108106
# You should not need to edit below this line

branches/try2/src/compiletest/runtest.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
// except according to those terms.
1010

1111
use common::Config;
12-
use common::{CompileFail, Pretty, RunFail, RunPass, DebugInfoGdb};
13-
use common::{Codegen, DebugInfoLldb};
12+
use common::{CompileFail, Pretty, RunFail, RunPass, DebugInfoGdb, DebugInfoLldb};
1413
use errors;
1514
use header::TestProps;
1615
use header;

branches/try2/src/doc/guide-pointers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ fn main() {
3232
And now I get an error:
3333

3434
~~~ {.notrust}
35-
error: mismatched types: expected `&int` but found `<generic integer #0>` (expected &-ptr but found integral variable)
35+
error: mismatched types: expected `&int` but found `<VI0>` (expected &-ptr but found integral variable)
3636
~~~
3737

3838
What gives? It needs a pointer! Therefore I have to use pointers!"
@@ -73,7 +73,7 @@ However.
7373
Here are the use-cases for pointers. I've prefixed them with the name of the
7474
pointer that satisfies that use-case:
7575

76-
1. Owned: `Box<Trait>` must be a pointer, because you don't know the size of the
76+
1. Owned: ~Trait must be a pointer, because you don't know the size of the
7777
object, so indirection is mandatory.
7878
2. Owned: You need a recursive data structure. These can be infinite sized, so
7979
indirection is mandatory.

branches/try2/src/liballoc/lib.rs

Lines changed: 0 additions & 101 deletions
This file was deleted.

branches/try2/src/liballoc/util.rs

Lines changed: 0 additions & 30 deletions
This file was deleted.

branches/try2/src/libcollections/trie.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ impl<'a> Iterator<uint> for SetItems<'a> {
634634

635635
#[cfg(test)]
636636
mod test_map {
637-
use super::{TrieMap, TrieNode, Internal, External, Nothing};
637+
use super::{TrieMap, TrieNode, Internal, External};
638638
use std::iter::range_step;
639639
use std::uint;
640640

branches/try2/src/libcore/fmt/mod.rs

Lines changed: 36 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,44 @@ pub mod rt;
4343

4444
pub type Result = result::Result<(), FormatError>;
4545

46-
/// dox
46+
/// The error type which is returned from formatting a message into a stream.
47+
///
48+
/// This type does not support transmission of an error other than that an error
49+
/// occurred. Any extra information must be arranged to be transmitted through
50+
/// some other means.
4751
pub enum FormatError {
48-
/// dox
52+
/// A generic write error occurred during formatting, no other information
53+
/// is transmitted via this variant.
4954
WriteError,
5055
}
5156

52-
/// dox
57+
/// A collection of methods that are required to format a message into a stream.
58+
///
59+
/// This trait is the type which this modules requires when formatting
60+
/// information. This is similar to the standard library's `io::Writer` trait,
61+
/// but it is only intended for use in libcore.
62+
///
63+
/// This trait should generally not be implemented by consumers of the standard
64+
/// library. The `write!` macro accepts an instance of `io::Writer`, and the
65+
/// `io::Writer` trait is favored over implementing this trait.
5366
pub trait FormatWriter {
54-
/// dox
67+
/// Writes a slice of bytes into this writer, returning whether the write
68+
/// succeeded.
69+
///
70+
/// This method can only succeed if the entire byte slice was successfully
71+
/// written, and this method will not return until all data has been
72+
/// written or an error occurs.
73+
///
74+
/// # Errors
75+
///
76+
/// This function will return an instance of `FormatError` on error.
5577
fn write(&mut self, bytes: &[u8]) -> Result;
78+
79+
/// Glue for usage of the `write!` macro with implementors of this trait.
80+
///
81+
/// This method should generally not be invoked manually, but rather through
82+
/// the `write!` macro itself.
83+
fn write_fmt(&mut self, args: &Arguments) -> Result { write(self, args) }
5684
}
5785

5886
/// A struct to represent both where to emit formatting strings to and how they
@@ -70,6 +98,10 @@ pub struct Formatter<'a> {
7098
/// Optionally specified precision for numeric types
7199
pub precision: Option<uint>,
72100

101+
#[allow(missing_doc)]
102+
#[cfg(stage0)]
103+
pub buf: &'a mut FormatWriter,
104+
#[cfg(not(stage0))]
73105
buf: &'a mut FormatWriter,
74106
curarg: slice::Items<'a, Argument<'a>>,
75107
args: &'a [Argument<'a>],

branches/try2/src/libcore/prelude.rs

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,7 @@
1010

1111
//! The core prelude
1212
//!
13-
//! This module is intended for users of libcore which do not link to libstd as
14-
//! well. This module is not imported by default, but using the entire contents
15-
//! of this module will provide all of the useful traits and types in libcore
16-
//! that one would expect from the standard library as well.
17-
//!
18-
//! There is no method to automatically inject this prelude, and this prelude is
19-
//! a subset of the standard library's prelude.
20-
//!
21-
//! # Example
22-
//!
23-
//! ```ignore
24-
//! # fn main() {
25-
//! #![feature(globs)]
26-
//!
27-
//! use core::prelude::*;
28-
//! # }
29-
//! ```
13+
//! For more information, see std::prelude.
3014
3115
// Reexported core operators
3216
pub use kinds::{Copy, Send, Sized, Share};

branches/try2/src/libgreen/sched.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1028,7 +1028,7 @@ mod test {
10281028
use {TaskState, PoolConfig, SchedPool};
10291029
use basic;
10301030
use sched::{TaskFromFriend, PinnedTask};
1031-
use task::{GreenTask, HomeSched, AnySched};
1031+
use task::{GreenTask, HomeSched};
10321032

10331033
fn pool() -> SchedPool {
10341034
SchedPool::new(PoolConfig {

branches/try2/src/librustc/driver/driver.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
use back::link;
1313
use driver::session::Session;
1414
use driver::{config, PpMode};
15-
use driver::{PpmFlowGraph, PpmExpanded, PpmExpandedIdentified, PpmTyped};
16-
use driver::{PpmIdentified};
15+
use driver::PpmFlowGraph; // FIXME (#14221).
1716
use front;
1817
use lib::llvm::{ContextRef, ModuleRef};
1918
use metadata::common::LinkMeta;

0 commit comments

Comments
 (0)