Skip to content

Commit 2684ee9

Browse files
committed
---
yaml --- r: 94809 b: refs/heads/try c: adc5eef h: refs/heads/master i: 94807: 5843c64 v: v3
1 parent 9bf1bde commit 2684ee9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+80
-54
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: 0da105a8b7b6b1e0568e8ff20f6ff4b13cc7ecc2
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a6d3e57dca68fde4effdda3e4ae2887aa535fcd6
5-
refs/heads/try: dc830345e840875dff41ae1a0497cbff18909712
5+
refs/heads/try: adc5eefa231d98273214c47ecff9dcb2fbe37460
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[submodule "src/llvm"]
22
path = src/llvm
3-
url = https://github.com/alexcrichton/llvm.git
3+
url = https://github.com/luqmana/llvm.git
44
branch = master
55
[submodule "src/libuv"]
66
path = src/libuv

branches/try/mk/docs.mk

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
######################################################################
1414

1515
DOCS :=
16+
CDOCS :=
1617
DOCS_L10N :=
1718

1819
BASE_DOC_OPTS := --from=markdown --standalone --toc --number-sections
@@ -232,8 +233,21 @@ doc/$(1)/index.html: $$(RUSTDOC) $$(TLIB2_T_$(3)_H_$(3))/$(CFG_STDLIB_$(3))
232233
DOCS += doc/$(1)/index.html
233234
endef
234235

236+
define compiledoc
237+
doc/$(1)/index.html: $$(RUSTDOC) $$(TLIB2_T_$(3)_H_$(3))/$(CFG_STDLIB_$(3))
238+
@$$(call E, rustdoc: $$@)
239+
$(Q)$(RUSTDOC) --cfg stage2 $(2)
240+
241+
CDOCS += doc/$(1)/index.html
242+
endef
243+
235244
$(eval $(call libdoc,std,$(STDLIB_CRATE),$(CFG_BUILD)))
236245
$(eval $(call libdoc,extra,$(EXTRALIB_CRATE),$(CFG_BUILD)))
246+
$(eval $(call libdoc,native,$(LIBNATIVE_CRATE),$(CFG_BUILD)))
247+
$(eval $(call libdoc,green,$(LIBGREEN_CRATE),$(CFG_BUILD)))
248+
249+
$(eval $(call compiledoc,rustc,$(COMPILER_CRATE),$(CFG_BUILD)))
250+
$(eval $(call compiledoc,syntax,$(LIBSYNTAX_CRATE),$(CFG_BUILD)))
237251

238252

239253
ifdef CFG_DISABLE_DOCS
@@ -256,6 +270,7 @@ doc/version_info.html: version_info.html.template $(MKFILE_DEPS) \
256270
GENERATED += doc/version.md doc/version_info.html
257271

258272
docs: $(DOCS)
273+
compiler-docs: $(CDOCS)
259274

260275
docs-l10n: $(DOCS_L10N)
261276

branches/try/src/libgreen/sched.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1433,7 +1433,7 @@ mod test {
14331433
drop(handle);
14341434

14351435
let mut handle = pool.spawn_sched();
1436-
handle.send(TaskFromFriend(pool.task(TaskOpts::new(), proc() {
1436+
handle.send(PinnedTask(pool.task(TaskOpts::new(), proc() {
14371437
// Wait until the other task has its lock
14381438
start_po.recv();
14391439

branches/try/src/librustdoc/clean.rs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1123,6 +1123,8 @@ fn lit_to_str(lit: &ast::lit) -> ~str {
11231123

11241124
fn name_from_pat(p: &ast::Pat) -> ~str {
11251125
use syntax::ast::*;
1126+
debug!("Trying to get a name from pattern: {:?}", p);
1127+
11261128
match p.node {
11271129
PatWild => ~"_",
11281130
PatWildMulti => ~"..",
@@ -1134,9 +1136,12 @@ fn name_from_pat(p: &ast::Pat) -> ~str {
11341136
PatBox(p) => name_from_pat(p),
11351137
PatUniq(p) => name_from_pat(p),
11361138
PatRegion(p) => name_from_pat(p),
1137-
PatLit(..) => fail!("tried to get argument name from pat_lit, \
1138-
which is not allowed in function arguments"),
1139-
PatRange(..) => fail!("tried to get argument name from pat_range, \
1139+
PatLit(..) => {
1140+
warn!("tried to get argument name from PatLit, \
1141+
which is silly in function arguments");
1142+
~"()"
1143+
},
1144+
PatRange(..) => fail!("tried to get argument name from PatRange, \
11401145
which is not allowed in function arguments"),
11411146
PatVec(..) => fail!("tried to get argument name from pat_vec, \
11421147
which is not allowed in function arguments")

branches/try/src/libstd/any.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
//! Traits for dynamic typing of any type (through runtime reflection)
12+
//!
1113
//! This module implements the `Any` trait, which enables dynamic typing
1214
//! of any type, through runtime reflection.
1315
//!

branches/try/src/libstd/ascii.rs

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

11-
//! Operations on ASCII strings and characters.
11+
//! Operations on ASCII strings and characters
1212
1313
use to_str::{ToStr,IntoStr};
1414
use str;

branches/try/src/libstd/at_vec.rs

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

11-
//! Managed vectors
11+
//! Operations on managed vectors (`@[T]` type)
1212
1313
use clone::Clone;
1414
use container::Container;

branches/try/src/libstd/bool.rs

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

11-
//! The `bool` module contains useful code to help work with boolean values.
11+
//! Operations on boolean values (`bool` type)
1212
//!
1313
//! A quick summary:
1414
//!

branches/try/src/libstd/char.rs

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

11-
//! Utilities for manipulating the char type
11+
//! Unicode characters manipulation (`char` type)
1212
1313
use cast::transmute;
1414
use option::{None, Option, Some};

branches/try/src/libstd/clone.rs

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

11-
/*! The Clone trait for types that cannot be "implicitly copied"
11+
/*! The `Clone` trait for types that cannot be 'implicitly copied'
1212
1313
In Rust, some simple types are "implicitly copyable" and when you
1414
assign them or pass them as arguments, the receiver will get a copy,

branches/try/src/libstd/comm/mod.rs

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

11-
//! Rust Communication Primitives
11+
//! Communication primitives for concurrent tasks (`Chan` and `Port` types)
1212
//!
1313
//! Rust makes it very difficult to share data among tasks to prevent race
1414
//! conditions and to improve parallelism, but there is often a need for
@@ -599,7 +599,7 @@ impl<T: Send> Chan<T> {
599599
// the TLS overhead can be a bit much.
600600
n => {
601601
assert!(n >= 0);
602-
if n > 0 && n % RESCHED_FREQ == 0 {
602+
if can_resched && n > 0 && n % RESCHED_FREQ == 0 {
603603
let task: ~Task = Local::take();
604604
task.maybe_yield();
605605
}

branches/try/src/libstd/container.rs

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

11-
//! Container traits
11+
//! Traits for generic containers (including `Map` and `Set`)
1212
1313
use option::Option;
1414

branches/try/src/libstd/default.rs

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

11-
//! The Default trait
11+
//! The `Default` trait for types which may have meaningful default values
1212
1313
/// A trait that types which have a useful default value should implement.
1414
pub trait Default {

branches/try/src/libstd/either.rs

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

11-
//! A type that represents one of two alternatives
11+
//! Representing values with two possibilities (`Either` type)
1212
1313
#[allow(missing_doc)];
1414

branches/try/src/libstd/fmt/mod.rs

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

1111
/*!
1212
13-
The Formatting Module
13+
Utilities for formatting and printing strings
1414
1515
This module contains the runtime support for the `format!` syntax extension.
1616
This macro is implemented in the compiler to emit calls to this module in order

branches/try/src/libstd/from_str.rs

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

11-
//! The trait for types that can be created from strings
11+
//! The `FromStr` trait for types that can be created from strings
1212
1313
use option::Option;
1414

branches/try/src/libstd/hashmap.rs

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

11-
//! An unordered map and set type implemented as hash tables
11+
//! Unordered containers, implemented as hash-tables (`HashSet` and `HashMap` types)
1212
//!
1313
//! The tables use a keyed hash with new random keys generated for each container, so the ordering
1414
//! of a set of keys in a hash table is randomized.

branches/try/src/libstd/kinds.rs

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

1111
/*!
12-
The kind traits
12+
Primitive traits representing basic 'kinds' of types
1313
1414
Rust types can be classified in various useful ways according to
1515
intrinsic properties of the type. These classifications, often called

branches/try/src/libstd/logging.rs

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

1111
/*!
1212
13-
Logging
13+
Utilities for program-wide and customizable logging
1414
1515
This module is used by the compiler when emitting output for the logging family
1616
of macros. The methods of this module shouldn't necessarily be used directly,

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
#[allow(non_uppercase_statics)];
1313
#[allow(dead_code)];
1414

15+
//! Bindings for the C math library (for basic mathematic functions)
16+
1517
// function names are almost identical to C's libmath, a few have been
1618
// renamed, grep for "rename:"
1719

branches/try/src/libstd/num/f32.rs

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

11-
//! Operations and constants for `f32`
11+
//! Operations and constants for 32-bits floats (`f32` type)
1212
#[allow(missing_doc)];
1313

1414
use prelude::*;

branches/try/src/libstd/num/f64.rs

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

11-
//! Operations and constants for `f64`
11+
//! Operations and constants for 64-bits floats (`f64` type)
1212
1313
#[allow(missing_doc)];
1414

branches/try/src/libstd/num/i16.rs

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

11-
//! Operations and constants for `i16`
11+
//! Operations and constants for signed 16-bits integers (`i16` type)
1212
1313
#[allow(non_uppercase_statics)];
1414

branches/try/src/libstd/num/i32.rs

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

11-
//! Operations and constants for `i32`
11+
//! Operations and constants for signed 32-bits integers (`i32` type)
1212
1313
#[allow(non_uppercase_statics)];
1414

branches/try/src/libstd/num/i64.rs

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

11-
//! Operations and constants for `i64`
11+
//! Operations and constants for signed 64-bits integers (`i64` type)
1212
1313
#[allow(non_uppercase_statics)];
1414

branches/try/src/libstd/num/i8.rs

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

11-
//! Operations and constants for `i8`
11+
//! Operations and constants for signed 8-bits integers (`i8` type)
1212
1313
#[allow(non_uppercase_statics)];
1414

branches/try/src/libstd/num/int.rs

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

11-
//! Operations and constants for `int`
11+
//! Operations and constants for architecture-sized signed integers (`int` type)
1212
1313
#[allow(non_uppercase_statics)];
1414

branches/try/src/libstd/num/mod.rs

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

11-
//! Numeric traits and functions for generic mathematics.
11+
//! Numeric traits and functions for generic mathematics
1212
//!
1313
//! These are implemented for the primitive numeric types in `std::{u8, u16,
1414
//! u32, u64, uint, i8, i16, i32, i64, int, f32, f64, float}`.

branches/try/src/libstd/num/u16.rs

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

11-
//! Operations and constants for `u16`
11+
//! Operations and constants for unsigned 16-bits integers (`u16` type)
1212
1313
#[allow(non_uppercase_statics)];
1414

branches/try/src/libstd/num/u32.rs

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

11-
//! Operations and constants for `u32`
11+
//! Operations and constants for unsigned 32-bits integers (`u32` type)
1212
1313
#[allow(non_uppercase_statics)];
1414

branches/try/src/libstd/num/u64.rs

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

11-
//! Operations and constants for `u64`
11+
//! Operations and constants for unsigned 64-bits integer (`u64` type)
1212
1313
#[allow(non_uppercase_statics)];
1414

branches/try/src/libstd/num/u8.rs

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

11-
//! Operations and constants for `u8`
11+
//! Operations and constants for unsigned 8-bits integers (`u8` type)
1212
1313
#[allow(non_uppercase_statics)];
1414

branches/try/src/libstd/num/uint.rs

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

11-
//! Operations and constants for `uint`
11+
//! Operations and constants for architecture-sized unsigned integers (`uint` type)
1212
1313
#[allow(non_uppercase_statics)];
1414

branches/try/src/libstd/ops.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@
1313

1414
/*!
1515
*
16-
* Traits for the built-in operators. Implementing these traits allows you to get
17-
* an effect similar to overloading operators.
16+
* Traits representing built-in operators, useful for overloading
17+
*
18+
* Implementing these traits allows you to get an effect similar to
19+
* overloading operators.
1820
*
1921
* The values for the right hand side of an operator are automatically
2022
* borrowed, so `a + b` is sugar for `a.add(&b)`.

branches/try/src/libstd/option.rs

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

11-
//! Operations on the ubiquitous `Option` type.
11+
//! Optionally nullable values (`Option` type)
1212
//!
1313
//! Type `Option` represents an optional value.
1414
//!

branches/try/src/libstd/prelude.rs

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

1111
/*!
1212
13+
The standard module imported by default into all Rust modules
14+
1315
Many programming languages have a 'prelude': a particular subset of the
1416
libraries that come with the language. Every program imports the prelude by
1517
default.

branches/try/src/libstd/rand/mod.rs

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

1111
/*!
12-
Random number generation.
12+
Utilities for random number generation
1313
1414
The key functions are `random()` and `Rng::gen()`. These are polymorphic
1515
and so can be used to generate any type that implements `Rand`. Type inference

0 commit comments

Comments
 (0)