Skip to content

Commit d0e4ec6

Browse files
committed
---
yaml --- r: 273388 b: refs/heads/beta c: e094593 h: refs/heads/master
1 parent 5bcc1ec commit d0e4ec6

File tree

108 files changed

+1026
-2503
lines changed

Some content is hidden

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

108 files changed

+1026
-2503
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ refs/tags/0.9: 36870b185fc5f5486636d4515f0e22677493f225
2323
refs/tags/0.10: ac33f2b15782272ae348dbd7b14b8257b2148b5a
2424
refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
26-
refs/heads/beta: 6c4b1f18f3c2a2de17c3562d6557a445b627bcc1
26+
refs/heads/beta: e0945937c4d6786af0b03a11c8cec2c34cde7662
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
2828
refs/heads/tmp: e06d2ad9fcd5027bcaac5b08fc9aa39a49d0ecd3
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f

branches/beta/RELEASES.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ Compatibility Notes
116116
that were not intended. In this release, [defaulted type parameters
117117
appearing outside of type definitions will generate a
118118
warning][1.7d], which will become an error in future releases.
119-
* [Parsing "." as a float results in an error instead of 0][1.7p].
120-
That is, `".".parse::<f32>()` returns `Err`, not `Ok(0.0)`.
119+
* [Parsing "." as a float results in an error instead of
120+
0][1.7p]. That is, `".".parse::<f32>()` returns `Err`, not `Ok(0)`.
121121
* [Borrows of closure parameters may not outlive the closure][1.7bc].
122122

123123
[1.7a]: https://github.com/rust-lang/rust/pull/30928

branches/beta/mk/cfg/i586-unknown-linux-gnu.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ CFG_LIB_NAME_i586-unknown-linux-gnu=lib$(1).so
77
CFG_STATIC_LIB_NAME_i586-unknown-linux-gnu=lib$(1).a
88
CFG_LIB_GLOB_i586-unknown-linux-gnu=lib$(1)-*.so
99
CFG_LIB_DSYM_GLOB_i586-unknown-linux-gnu=lib$(1)-*.dylib.dSYM
10-
CFG_JEMALLOC_CFLAGS_i586-unknown-linux-gnu := -m32 $(CFLAGS) -march=pentium
11-
CFG_GCCISH_CFLAGS_i586-unknown-linux-gnu := -Wall -Werror -g -fPIC -m32 $(CFLAGS) -march=pentium
12-
CFG_GCCISH_CXXFLAGS_i586-unknown-linux-gnu := -fno-rtti $(CXXFLAGS) -march=pentium
10+
CFG_JEMALLOC_CFLAGS_i586-unknown-linux-gnu := -m32 $(CFLAGS)
11+
CFG_GCCISH_CFLAGS_i586-unknown-linux-gnu := -Wall -Werror -g -fPIC -m32 $(CFLAGS)
12+
CFG_GCCISH_CXXFLAGS_i586-unknown-linux-gnu := -fno-rtti $(CXXFLAGS)
1313
CFG_GCCISH_LINK_FLAGS_i586-unknown-linux-gnu := -shared -fPIC -ldl -pthread -lrt -g -m32
1414
CFG_GCCISH_DEF_FLAG_i586-unknown-linux-gnu := -Wl,--export-dynamic,--dynamic-list=
1515
CFG_LLC_FLAGS_i586-unknown-linux-gnu :=

branches/beta/src/bootstrap/build/native.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,7 @@ pub fn llvm(build: &Build, target: &str) {
3939

4040
let _ = fs::remove_dir_all(&dst.join("build"));
4141
t!(fs::create_dir_all(&dst.join("build")));
42-
let mut assertions = if build.config.llvm_assertions {"ON"} else {"OFF"};
43-
44-
// Disable LLVM assertions on ARM compilers until #32360 is fixed
45-
if target.contains("arm") && target.contains("gnu") {
46-
assertions = "OFF";
47-
}
42+
let assertions = if build.config.llvm_assertions {"ON"} else {"OFF"};
4843

4944
// http://llvm.org/docs/CMake.html
5045
let mut cfg = cmake::Config::new(build.src.join("src/llvm"));
@@ -119,8 +114,7 @@ pub fn compiler_rt(build: &Build, target: &str) {
119114
let arch = target.split('-').next().unwrap();
120115
let mode = if build.config.rust_optimize {"Release"} else {"Debug"};
121116
let (dir, build_target, libname) = if target.contains("linux") ||
122-
target.contains("freebsd") ||
123-
target.contains("netbsd") {
117+
target.contains("freebsd") {
124118
let os = if target.contains("android") {"-android"} else {""};
125119
let arch = if arch.starts_with("arm") && target.contains("eabihf") {
126120
"armhf"

branches/beta/src/compiletest/runtest.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,10 +1025,6 @@ fn check_expected_errors(revision: Option<&str>,
10251025
expected.replace(r"\", "/")
10261026
}).collect::<Vec<String>>();
10271027

1028-
// If the testcase being checked contains at least one expected "help"
1029-
// message, then we'll ensure that all "help" messages are expected.
1030-
// Otherwise, all "help" messages reported by the compiler will be ignored.
1031-
// This logic also applies to "note" messages.
10321028
let (expect_help, expect_note) =
10331029
expected_errors.iter()
10341030
.fold((false, false),

branches/beta/src/doc/book/getting-started.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ unofficial locations.
9393
| `armv7-apple-ios` || | | ARM iOS |
9494
| `armv7s-apple-ios` || | | ARM iOS |
9595
| `aarch64-apple-ios` || | | ARM64 iOS |
96-
| `i686-unknown-freebsd` ||| | 32-bit FreeBSD |
97-
| `x86_64-unknown-freebsd` ||| | 64-bit FreeBSD |
96+
| `i686-unknown-freebsd` ||| | 32-bit FreeBSD |
97+
| `x86_64-unknown-freebsd` ||| | 64-bit FreeBSD |
9898
| `x86_64-unknown-openbsd` ||| | 64-bit OpenBSD |
9999
| `x86_64-unknown-netbsd` ||| | 64-bit NetBSD |
100100
| `x86_64-unknown-bitrig` ||| | 64-bit Bitrig |

branches/beta/src/doc/book/guessing-game.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,7 @@ returned by `parse()`, this is an `enum` like `Ordering`, but in this case,
912912
each variant has some data associated with it: `Ok` is a success, and `Err` is a
913913
failure. Each contains more information: the successfully parsed integer, or an
914914
error type. In this case, we `match` on `Ok(num)`, which sets the name `num` to
915-
the unwrapped `Ok` value (the integer), and then we return it on the
915+
the unwrapped `Ok` value (ythe integer), and then we return it on the
916916
right-hand side. In the `Err` case, we don’t care what kind of error it is, so
917917
we just use the catch all `_` instead of a name. This catches everything that
918918
isn't `Ok`, and `continue` lets us move to the next iteration of the loop; in

branches/beta/src/doc/book/references-and-borrowing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,8 @@ both at the same time:
163163
* exactly one mutable reference (`&mut T`).
164164

165165

166-
You may notice that this is very similar to, though not exactly the same as,
167-
the definition of a data race:
166+
You may notice that this is very similar, though not exactly the same as,
167+
to the definition of a data race:
168168

169169
> There is a ‘data race’ when two or more pointers access the same memory
170170
> location at the same time, where at least one of them is writing, and the

branches/beta/src/doc/book/variable-bindings.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ function, rather than leaving it off. Otherwise, you’ll get an error.
1818

1919
In many languages, a variable binding would be called a *variable*, but Rust’s
2020
variable bindings have a few tricks up their sleeves. For example the
21-
left-hand side of a `let` statement is a ‘[pattern][pattern]’, not a
21+
left-hand side of a `let` expression is a ‘[pattern][pattern]’, not a
2222
variable name. This means we can do things like:
2323

2424
```rust
2525
let (x, y) = (1, 2);
2626
```
2727

28-
After this statement is evaluated, `x` will be one, and `y` will be two.
28+
After this expression is evaluated, `x` will be one, and `y` will be two.
2929
Patterns are really powerful, and have [their own section][pattern] in the
3030
book. We don’t need those features for now, so we’ll keep this in the back
3131
of our minds as we go forward.

branches/beta/src/libcore/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
authors = ["The Rust Project Developers"]
33
name = "core"
44
version = "0.0.0"
5-
build = "build.rs"
65

76
[lib]
87
name = "core"

branches/beta/src/libcore/build.rs

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

branches/beta/src/libcore/char.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -416,14 +416,14 @@ pub fn encode_utf16_raw(mut ch: u32, dst: &mut [u16]) -> Option<usize> {
416416
///
417417
/// [`escape_unicode()`]: ../../std/primitive.char.html#method.escape_unicode
418418
/// [`char`]: ../../std/primitive.char.html
419-
#[derive(Clone)]
419+
#[derive(Clone, Debug)]
420420
#[stable(feature = "rust1", since = "1.0.0")]
421421
pub struct EscapeUnicode {
422422
c: char,
423423
state: EscapeUnicodeState
424424
}
425425

426-
#[derive(Clone)]
426+
#[derive(Clone, Debug)]
427427
enum EscapeUnicodeState {
428428
Backslash,
429429
Type,
@@ -496,13 +496,13 @@ impl Iterator for EscapeUnicode {
496496
///
497497
/// [`escape_default()`]: ../../std/primitive.char.html#method.escape_default
498498
/// [`char`]: ../../std/primitive.char.html
499-
#[derive(Clone)]
499+
#[derive(Clone, Debug)]
500500
#[stable(feature = "rust1", since = "1.0.0")]
501501
pub struct EscapeDefault {
502502
state: EscapeDefaultState
503503
}
504504

505-
#[derive(Clone)]
505+
#[derive(Clone, Debug)]
506506
enum EscapeDefaultState {
507507
Backslash(char),
508508
Char(char),

branches/beta/src/libcore/fmt/builders.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ impl<'a, 'b: 'a> fmt::Write for PadAdapter<'a, 'b> {
5454
///
5555
/// Constructed by the `Formatter::debug_struct` method.
5656
#[must_use]
57+
#[allow(missing_debug_implementations)]
5758
#[stable(feature = "debug_builders", since = "1.2.0")]
5859
pub struct DebugStruct<'a, 'b: 'a> {
5960
fmt: &'a mut fmt::Formatter<'b>,
@@ -120,6 +121,7 @@ impl<'a, 'b: 'a> DebugStruct<'a, 'b> {
120121
///
121122
/// Constructed by the `Formatter::debug_tuple` method.
122123
#[must_use]
124+
#[allow(missing_debug_implementations)]
123125
#[stable(feature = "debug_builders", since = "1.2.0")]
124126
pub struct DebugTuple<'a, 'b: 'a> {
125127
fmt: &'a mut fmt::Formatter<'b>,
@@ -231,6 +233,7 @@ impl<'a, 'b: 'a> DebugInner<'a, 'b> {
231233
///
232234
/// Constructed by the `Formatter::debug_set` method.
233235
#[must_use]
236+
#[allow(missing_debug_implementations)]
234237
#[stable(feature = "debug_builders", since = "1.2.0")]
235238
pub struct DebugSet<'a, 'b: 'a> {
236239
inner: DebugInner<'a, 'b>,
@@ -279,6 +282,7 @@ impl<'a, 'b: 'a> DebugSet<'a, 'b> {
279282
///
280283
/// Constructed by the `Formatter::debug_list` method.
281284
#[must_use]
285+
#[allow(missing_debug_implementations)]
282286
#[stable(feature = "debug_builders", since = "1.2.0")]
283287
pub struct DebugList<'a, 'b: 'a> {
284288
inner: DebugInner<'a, 'b>,
@@ -327,6 +331,7 @@ impl<'a, 'b: 'a> DebugList<'a, 'b> {
327331
///
328332
/// Constructed by the `Formatter::debug_map` method.
329333
#[must_use]
334+
#[allow(missing_debug_implementations)]
330335
#[stable(feature = "debug_builders", since = "1.2.0")]
331336
pub struct DebugMap<'a, 'b: 'a> {
332337
fmt: &'a mut fmt::Formatter<'b>,

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

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
use prelude::v1::*;
1616

17-
use cell::{Cell, RefCell, Ref, RefMut, BorrowState};
17+
use cell::{UnsafeCell, Cell, RefCell, Ref, RefMut, BorrowState};
1818
use marker::PhantomData;
1919
use mem;
2020
use num::flt2dec;
@@ -25,6 +25,7 @@ use str;
2525

2626
#[unstable(feature = "fmt_flags_align", issue = "27726")]
2727
/// Possible alignments returned by `Formatter::align`
28+
#[derive(Debug)]
2829
pub enum Alignment {
2930
/// Indication that contents should be left-aligned.
3031
Left,
@@ -152,6 +153,7 @@ impl<'a, W: Write + ?Sized> Write for &'a mut W {
152153
/// A struct to represent both where to emit formatting strings to and how they
153154
/// should be formatted. A mutable version of this is passed to all formatting
154155
/// traits.
156+
#[allow(missing_debug_implementations)]
155157
#[stable(feature = "rust1", since = "1.0.0")]
156158
pub struct Formatter<'a> {
157159
flags: u32,
@@ -175,6 +177,7 @@ enum Void {}
175177
/// compile time it is ensured that the function and the value have the correct
176178
/// types, and then this struct is used to canonicalize arguments to one type.
177179
#[derive(Copy)]
180+
#[allow(missing_debug_implementations)]
178181
#[unstable(feature = "fmt_internals", reason = "internal to format_args!",
179182
issue = "0")]
180183
#[doc(hidden)]
@@ -1585,7 +1588,9 @@ impl<T: ?Sized> Debug for PhantomData<T> {
15851588
#[stable(feature = "rust1", since = "1.0.0")]
15861589
impl<T: Copy + Debug> Debug for Cell<T> {
15871590
fn fmt(&self, f: &mut Formatter) -> Result {
1588-
write!(f, "Cell {{ value: {:?} }}", self.get())
1591+
f.debug_struct("Cell")
1592+
.field("value", &self.get())
1593+
.finish()
15891594
}
15901595
}
15911596

@@ -1594,9 +1599,15 @@ impl<T: ?Sized + Debug> Debug for RefCell<T> {
15941599
fn fmt(&self, f: &mut Formatter) -> Result {
15951600
match self.borrow_state() {
15961601
BorrowState::Unused | BorrowState::Reading => {
1597-
write!(f, "RefCell {{ value: {:?} }}", self.borrow())
1602+
f.debug_struct("RefCell")
1603+
.field("value", &self.borrow())
1604+
.finish()
1605+
}
1606+
BorrowState::Writing => {
1607+
f.debug_struct("RefCell")
1608+
.field("value", &"<borrowed>")
1609+
.finish()
15981610
}
1599-
BorrowState::Writing => write!(f, "RefCell {{ <borrowed> }}"),
16001611
}
16011612
}
16021613
}
@@ -1615,5 +1626,12 @@ impl<'b, T: ?Sized + Debug> Debug for RefMut<'b, T> {
16151626
}
16161627
}
16171628

1629+
#[stable(feature = "core_impl_debug", since = "1.9.0")]
1630+
impl<T: ?Sized + Debug> Debug for UnsafeCell<T> {
1631+
fn fmt(&self, f: &mut Formatter) -> Result {
1632+
f.pad("UnsafeCell")
1633+
}
1634+
}
1635+
16181636
// If you expected tests to be here, look instead at the run-pass/ifmt.rs test,
16191637
// it's a lot easier than creating all of the rt::Piece structures here.

branches/beta/src/libcore/fmt/rt/v1.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
//!
1414
//! These definitions are similar to their `ct` equivalents, but differ in that
1515
//! these can be statically allocated and are slightly optimized for the runtime
16+
#![allow(missing_debug_implementations)]
1617

1718
#[derive(Copy, Clone)]
1819
pub struct Argument {

branches/beta/src/libcore/hash/mod.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373

7474
use prelude::v1::*;
7575

76+
use fmt;
7677
use marker;
7778
use mem;
7879

@@ -215,6 +216,13 @@ pub trait BuildHasher {
215216
#[stable(since = "1.7.0", feature = "build_hasher")]
216217
pub struct BuildHasherDefault<H>(marker::PhantomData<H>);
217218

219+
#[stable(since = "1.9.0", feature = "core_impl_debug")]
220+
impl<H> fmt::Debug for BuildHasherDefault<H> {
221+
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
222+
f.pad("BuildHasherDefault")
223+
}
224+
}
225+
218226
#[stable(since = "1.7.0", feature = "build_hasher")]
219227
impl<H: Default + Hasher> BuildHasher for BuildHasherDefault<H> {
220228
type Hasher = H;

branches/beta/src/libcore/hash/sip.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ use super::Hasher;
3030
/// Although the SipHash algorithm is considered to be generally strong,
3131
/// it is not intended for cryptographic purposes. As such, all
3232
/// cryptographic uses of this implementation are _strongly discouraged_.
33+
#[derive(Debug)]
3334
#[stable(feature = "rust1", since = "1.0.0")]
3435
pub struct SipHasher {
3536
k0: u64,

0 commit comments

Comments
 (0)