Skip to content

Commit 81c8e29

Browse files
committed
---
yaml --- r: 276699 b: refs/heads/try c: cb5af89 h: refs/heads/master i: 276697: 45613bd 276695: e82dffe
1 parent 0600501 commit 81c8e29

Some content is hidden

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

88 files changed

+998
-823
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 6dbb0e86aec11050480beb76eade6fb805010ba7
33
refs/heads/snap-stage3: 235d77457d80b549dad3ac36d94f235208a1eafb
4-
refs/heads/try: 99501e6177b2614708dd30fe06109415015b1158
4+
refs/heads/try: cb5af8901ab2f4af231936473774df9a859ef256
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
77
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try/COMPILER_TESTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ fn test_foo() {
7777
}
7878
```
7979

80-
Note that not all headers have meaning when customized too a revision.
80+
Note that not all headers have meaning when customized to a revision.
8181
For example, the `ignore-test` header (and all "ignore" headers)
8282
currently only apply to the test as a whole, not to particular
8383
revisions. The only headers that are intended to really work when

branches/try/mk/crates.mk

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ RUSTC_CRATES := rustc rustc_typeck rustc_mir rustc_borrowck rustc_resolve rustc_
5858
rustc_trans rustc_back rustc_llvm rustc_privacy rustc_lint \
5959
rustc_data_structures rustc_front rustc_platform_intrinsics \
6060
rustc_plugin rustc_metadata rustc_passes rustc_save_analysis \
61-
rustc_const_eval
61+
rustc_const_eval rustc_const_math
6262
HOST_CRATES := syntax syntax_ext $(RUSTC_CRATES) rustdoc fmt_macros \
6363
flate arena graphviz rbml log serialize
6464
TOOLS := compiletest rustdoc rustc rustbook error_index_generator
@@ -92,36 +92,39 @@ DEPS_test := std getopts term native:rust_test_helpers
9292
DEPS_syntax := std term serialize log arena libc rustc_bitflags rustc_unicode
9393
DEPS_syntax_ext := syntax fmt_macros
9494

95-
DEPS_rustc_const_eval := std syntax
95+
DEPS_rustc_const_math := std syntax log serialize
96+
DEPS_rustc_const_eval := rustc_const_math rustc syntax log serialize rustc_front \
97+
rustc_back graphviz
9698

9799
DEPS_rustc := syntax fmt_macros flate arena serialize getopts rbml rustc_front\
98100
log graphviz rustc_back rustc_data_structures\
99-
rustc_const_eval
101+
rustc_const_math
100102
DEPS_rustc_back := std syntax rustc_front flate log libc
101103
DEPS_rustc_borrowck := rustc rustc_front rustc_mir log graphviz syntax
102104
DEPS_rustc_data_structures := std log serialize
103105
DEPS_rustc_driver := arena flate getopts graphviz libc rustc rustc_back rustc_borrowck \
104106
rustc_typeck rustc_mir rustc_resolve log syntax serialize rustc_llvm \
105107
rustc_trans rustc_privacy rustc_lint rustc_front rustc_plugin \
106-
rustc_metadata syntax_ext rustc_passes rustc_save_analysis
108+
rustc_metadata syntax_ext rustc_passes rustc_save_analysis rustc_const_eval
107109
DEPS_rustc_front := std syntax log serialize
108-
DEPS_rustc_lint := rustc log syntax
110+
DEPS_rustc_lint := rustc log syntax rustc_const_eval
109111
DEPS_rustc_llvm := native:rustllvm libc std rustc_bitflags
110-
DEPS_rustc_metadata := rustc rustc_front syntax rbml rustc_const_eval
111-
DEPS_rustc_passes := syntax rustc core rustc_front
112-
DEPS_rustc_mir := rustc rustc_front syntax rustc_const_eval
112+
DEPS_rustc_metadata := rustc rustc_front syntax rbml rustc_const_math
113+
DEPS_rustc_passes := syntax rustc core rustc_front rustc_const_eval
114+
DEPS_rustc_mir := rustc rustc_front syntax rustc_const_math rustc_const_eval
113115
DEPS_rustc_resolve := arena rustc rustc_front log syntax
114116
DEPS_rustc_platform_intrinsics := std
115117
DEPS_rustc_plugin := rustc rustc_metadata syntax rustc_mir
116118
DEPS_rustc_privacy := rustc rustc_front log syntax
117119
DEPS_rustc_trans := arena flate getopts graphviz libc rustc rustc_back rustc_mir \
118120
log syntax serialize rustc_llvm rustc_front rustc_platform_intrinsics \
119-
rustc_const_eval
121+
rustc_const_math rustc_const_eval
120122
DEPS_rustc_save_analysis := rustc log syntax rustc_front
121-
DEPS_rustc_typeck := rustc syntax rustc_front rustc_platform_intrinsics rustc_const_eval
123+
DEPS_rustc_typeck := rustc syntax rustc_front rustc_platform_intrinsics rustc_const_math \
124+
rustc_const_eval
122125

123126
DEPS_rustdoc := rustc rustc_driver native:hoedown serialize getopts \
124-
test rustc_lint rustc_front
127+
test rustc_lint rustc_front rustc_const_eval
125128

126129

127130
TOOL_DEPS_compiletest := test getopts log

branches/try/src/doc/book/no-stdlib.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ fn start(_argc: isize, _argv: *const *const u8) -> isize {
3838
// for a bare-bones hello world. These are normally
3939
// provided by libstd.
4040
#[lang = "eh_personality"] extern fn eh_personality() {}
41-
#[lang = "panic_fmt"] fn panic_fmt() -> ! { loop {} }
41+
#[lang = "panic_fmt"] extern fn panic_fmt() -> ! { loop {} }
4242
# #[lang = "eh_unwind_resume"] extern fn rust_eh_unwind_resume() {}
4343
# #[no_mangle] pub extern fn rust_eh_register_frames () {}
4444
# #[no_mangle] pub extern fn rust_eh_unregister_frames () {}
@@ -65,7 +65,7 @@ pub extern fn main(argc: i32, argv: *const *const u8) -> i32 {
6565
}
6666

6767
#[lang = "eh_personality"] extern fn eh_personality() {}
68-
#[lang = "panic_fmt"] fn panic_fmt() -> ! { loop {} }
68+
#[lang = "panic_fmt"] extern fn panic_fmt() -> ! { loop {} }
6969
# #[lang = "eh_unwind_resume"] extern fn rust_eh_unwind_resume() {}
7070
# #[no_mangle] pub extern fn rust_eh_register_frames () {}
7171
# #[no_mangle] pub extern fn rust_eh_unregister_frames () {}

branches/try/src/doc/book/vectors.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ You can iterate the vector multiple times by taking a reference to the vector wh
120120
For example, the following code does not compile.
121121

122122
```rust,ignore
123-
let mut v = vec![1, 2, 3, 4, 5];
123+
let v = vec![1, 2, 3, 4, 5];
124124
125125
for i in v {
126126
println!("Take ownership of the vector and its element {}", i);
@@ -134,7 +134,7 @@ for i in v {
134134
Whereas the following works perfectly,
135135

136136
```rust
137-
let mut v = vec![1, 2, 3, 4, 5];
137+
let v = vec![1, 2, 3, 4, 5];
138138

139139
for i in &v {
140140
println!("This is a reference to {}", i);

branches/try/src/libcollections/binary_heap.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ use vec::{self, Vec};
173173
/// ```
174174
/// use std::collections::BinaryHeap;
175175
///
176-
/// // type inference lets us omit an explicit type signature (which
176+
/// // Type inference lets us omit an explicit type signature (which
177177
/// // would be `BinaryHeap<i32>` in this example).
178178
/// let mut heap = BinaryHeap::new();
179179
///
@@ -194,7 +194,7 @@ use vec::{self, Vec};
194194
///
195195
/// // We can iterate over the items in the heap, although they are returned in
196196
/// // a random order.
197-
/// for x in heap.iter() {
197+
/// for x in &heap {
198198
/// println!("{}", x);
199199
/// }
200200
///

branches/try/src/libcore/convert.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@
1919
//!
2020
//! - Impl the `As*` traits for reference-to-reference conversions
2121
//! - Impl the `Into` trait when you want to consume the value in the conversion
22-
//! - The `From` trait is the most flexible, useful for values _and_ references conversions
22+
//! - The `From` trait is the most flexible, useful for value _and_ reference conversions
2323
//!
24-
//! As a library writer, you should prefer implementing `From<T>` rather than
25-
//! `Into<U>`, as `From` provides greater flexibility and offer the equivalent `Into`
24+
//! As a library author, you should prefer implementing `From<T>` rather than
25+
//! `Into<U>`, as `From` provides greater flexibility and offers an equivalent `Into`
2626
//! implementation for free, thanks to a blanket implementation in the standard library.
2727
//!
2828
//! **Note: these traits must not fail**. If the conversion can fail, you must use a dedicated
29-
//! method which return an `Option<T>` or a `Result<T, E>`.
29+
//! method which returns an `Option<T>` or a `Result<T, E>`.
3030
//!
3131
//! # Generic impl
3232
//!
@@ -49,7 +49,7 @@ use marker::Sized;
4949
/// [book]: ../../book/borrow-and-asref.html
5050
///
5151
/// **Note: this trait must not fail**. If the conversion can fail, use a dedicated method which
52-
/// return an `Option<T>` or a `Result<T, E>`.
52+
/// returns an `Option<T>` or a `Result<T, E>`.
5353
///
5454
/// # Examples
5555
///
@@ -82,7 +82,7 @@ pub trait AsRef<T: ?Sized> {
8282
/// A cheap, mutable reference-to-mutable reference conversion.
8383
///
8484
/// **Note: this trait must not fail**. If the conversion can fail, use a dedicated method which
85-
/// return an `Option<T>` or a `Result<T, E>`.
85+
/// returns an `Option<T>` or a `Result<T, E>`.
8686
///
8787
/// # Generic Impls
8888
///
@@ -99,10 +99,10 @@ pub trait AsMut<T: ?Sized> {
9999
/// A conversion that consumes `self`, which may or may not be expensive.
100100
///
101101
/// **Note: this trait must not fail**. If the conversion can fail, use a dedicated method which
102-
/// return an `Option<T>` or a `Result<T, E>`.
102+
/// returns an `Option<T>` or a `Result<T, E>`.
103103
///
104-
/// Library writer should not implement directly this trait, but should prefer the implementation
105-
/// of the `From` trait, which offer greater flexibility and provide the equivalent `Into`
104+
/// Library authors should not directly implement this trait, but should prefer implementing
105+
/// the `From` trait, which offers greater flexibility and provides an equivalent `Into`
106106
/// implementation for free, thanks to a blanket implementation in the standard library.
107107
///
108108
/// # Examples
@@ -134,7 +134,7 @@ pub trait Into<T>: Sized {
134134
/// Construct `Self` via a conversion.
135135
///
136136
/// **Note: this trait must not fail**. If the conversion can fail, use a dedicated method which
137-
/// return an `Option<T>` or a `Result<T, E>`.
137+
/// returns an `Option<T>` or a `Result<T, E>`.
138138
///
139139
/// # Examples
140140
///

branches/try/src/librustc/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ log = { path = "../liblog" }
1818
rbml = { path = "../librbml" }
1919
rustc_back = { path = "../librustc_back" }
2020
rustc_bitflags = { path = "../librustc_bitflags" }
21-
rustc_const_eval = { path = "../librustc_const_eval" }
21+
rustc_const_math = { path = "../librustc_const_math" }
2222
rustc_data_structures = { path = "../librustc_data_structures" }
2323
rustc_front = { path = "../librustc_front" }
2424
serialize = { path = "../libserialize" }

0 commit comments

Comments
 (0)