Skip to content

Commit 883ad1a

Browse files
committed
---
yaml --- r: 218611 b: refs/heads/tmp c: ef8c377 h: refs/heads/master i: 218609: bedfbf8 218607: ac8bb73 v: v3
1 parent fa8ba5f commit 883ad1a

File tree

17 files changed

+86
-247
lines changed

17 files changed

+86
-247
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
2626
refs/heads/beta: c8bab9d06a179028a0d5129aa62f09d694d9cc49
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
28-
refs/heads/tmp: dcc64d113ccdd4ecfe33fb35267ef4533cfefb00
28+
refs/heads/tmp: ef8c3775afd735140a5a4f8c2fa30ac8e5ac51c7
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: 1b28ffa5216c845d1cef6b0cb3e5ac7db12025d0
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828

branches/tmp/mk/cfg/i686-unknown-freebsd.mk

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

branches/tmp/src/libcollections/vec_deque.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ impl<T> VecDeque<T> {
108108
ptr::write(self.ptr.offset(off as isize), t);
109109
}
110110

111-
/// Returns true if and only if the buffer is at capacity
111+
/// Returns true iff the buffer is at capacity
112112
#[inline]
113113
fn is_full(&self) -> bool { self.cap - self.len() == 1 }
114114

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -175,12 +175,6 @@ impl<'a, 'b: 'a> DebugTuple<'a, 'b> {
175175
fn is_pretty(&self) -> bool {
176176
self.fmt.flags() & (1 << (FlagV1::Alternate as usize)) != 0
177177
}
178-
179-
/// Returns the wrapped `Formatter`.
180-
#[unstable(feature = "debug_builder_formatter", reason = "recently added")]
181-
pub fn formatter(&mut self) -> &mut fmt::Formatter<'b> {
182-
&mut self.fmt
183-
}
184178
}
185179

186180
struct DebugInner<'a, 'b: 'a> {

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1488,19 +1488,20 @@ macro_rules! tuple {
14881488
impl<$($name:Debug),*> Debug for ($($name,)*) {
14891489
#[allow(non_snake_case, unused_assignments)]
14901490
fn fmt(&self, f: &mut Formatter) -> Result {
1491-
let mut builder = f.debug_tuple("");
1491+
try!(write!(f, "("));
14921492
let ($(ref $name,)*) = *self;
14931493
let mut n = 0;
14941494
$(
1495-
builder.field($name);
1495+
if n > 0 {
1496+
try!(write!(f, ", "));
1497+
}
1498+
try!(write!(f, "{:?}", *$name));
14961499
n += 1;
14971500
)*
1498-
14991501
if n == 1 {
1500-
try!(write!(builder.formatter(), ","));
1502+
try!(write!(f, ","));
15011503
}
1502-
1503-
builder.finish()
1504+
write!(f, ")")
15041505
}
15051506
}
15061507
peel! { $($name,)* }

branches/tmp/src/libcore/num/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1126,7 +1126,7 @@ macro_rules! uint_impl {
11261126
acc
11271127
}
11281128

1129-
/// Returns `true` if and only if `self == 2^k` for some `k`.
1129+
/// Returns `true` iff `self == 2^k` for some `k`.
11301130
#[stable(feature = "rust1", since = "1.0.0")]
11311131
#[inline]
11321132
pub fn is_power_of_two(self) -> bool {

branches/tmp/src/libcore/option.rs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
//! // The division was valid
4747
//! Some(x) => println!("Result: {}", x),
4848
//! // The division was invalid
49-
//! None => println!("Cannot divide by 0"),
49+
//! None => println!("Cannot divide by 0")
5050
//! }
5151
//! ```
5252
//!
@@ -75,7 +75,7 @@
7575
//! fn check_optional(optional: &Option<Box<i32>>) {
7676
//! match *optional {
7777
//! Some(ref p) => println!("have value {}", p),
78-
//! None => println!("have no value"),
78+
//! None => println!("have no value")
7979
//! }
8080
//! }
8181
//! ```
@@ -95,13 +95,13 @@
9595
//! // Take a reference to the contained string
9696
//! match msg {
9797
//! Some(ref m) => println!("{}", *m),
98-
//! None => (),
98+
//! None => ()
9999
//! }
100100
//!
101101
//! // Remove the contained string, destroying the Option
102102
//! let unwrapped_msg = match msg {
103103
//! Some(m) => m,
104-
//! None => "default message",
104+
//! None => "default message"
105105
//! };
106106
//! ```
107107
//!
@@ -137,7 +137,7 @@
137137
//!
138138
//! match name_of_biggest_animal {
139139
//! Some(name) => println!("the biggest animal is {}", name),
140-
//! None => println!("there are no animals :("),
140+
//! None => println!("there are no animals :(")
141141
//! }
142142
//! ```
143143
@@ -198,7 +198,7 @@ impl<T> Option<T> {
198198
pub fn is_some(&self) -> bool {
199199
match *self {
200200
Some(_) => true,
201-
None => false,
201+
None => false
202202
}
203203
}
204204

@@ -244,7 +244,7 @@ impl<T> Option<T> {
244244
pub fn as_ref<'r>(&'r self) -> Option<&'r T> {
245245
match *self {
246246
Some(ref x) => Some(x),
247-
None => None,
247+
None => None
248248
}
249249
}
250250

@@ -265,7 +265,7 @@ impl<T> Option<T> {
265265
pub fn as_mut<'r>(&'r mut self) -> Option<&'r mut T> {
266266
match *self {
267267
Some(ref mut x) => Some(x),
268-
None => None,
268+
None => None
269269
}
270270
}
271271

@@ -376,7 +376,7 @@ impl<T> Option<T> {
376376
pub fn unwrap_or(self, def: T) -> T {
377377
match self {
378378
Some(x) => x,
379-
None => def,
379+
None => def
380380
}
381381
}
382382

@@ -394,7 +394,7 @@ impl<T> Option<T> {
394394
pub fn unwrap_or_else<F: FnOnce() -> T>(self, f: F) -> T {
395395
match self {
396396
Some(x) => x,
397-
None => f(),
397+
None => f()
398398
}
399399
}
400400

@@ -420,7 +420,7 @@ impl<T> Option<T> {
420420
pub fn map<U, F: FnOnce(T) -> U>(self, f: F) -> Option<U> {
421421
match self {
422422
Some(x) => Some(f(x)),
423-
None => None,
423+
None => None
424424
}
425425
}
426426

@@ -464,7 +464,7 @@ impl<T> Option<T> {
464464
pub fn map_or_else<U, D: FnOnce() -> U, F: FnOnce(T) -> U>(self, default: D, f: F) -> U {
465465
match self {
466466
Some(t) => f(t),
467-
None => default(),
467+
None => default()
468468
}
469469
}
470470

@@ -637,7 +637,7 @@ impl<T> Option<T> {
637637
pub fn or(self, optb: Option<T>) -> Option<T> {
638638
match self {
639639
Some(_) => self,
640-
None => optb,
640+
None => optb
641641
}
642642
}
643643

@@ -659,7 +659,7 @@ impl<T> Option<T> {
659659
pub fn or_else<F: FnOnce() -> Option<T>>(self, f: F) -> Option<T> {
660660
match self {
661661
Some(_) => self,
662-
None => f(),
662+
None => f()
663663
}
664664
}
665665

@@ -736,7 +736,7 @@ impl<T: Default> Option<T> {
736736
pub fn unwrap_or_default(self) -> T {
737737
match self {
738738
Some(x) => x,
739-
None => Default::default(),
739+
None => Default::default()
740740
}
741741
}
742742
}

branches/tmp/src/liblibc/lib.rs

Lines changed: 0 additions & 94 deletions
Original file line numberDiff line numberDiff line change
@@ -960,100 +960,6 @@ pub mod types {
960960
}
961961
}
962962

963-
#[cfg(target_arch = "x86")]
964-
pub mod arch {
965-
pub mod c95 {
966-
pub type c_char = i8;
967-
pub type c_schar = i8;
968-
pub type c_uchar = u8;
969-
pub type c_short = i16;
970-
pub type c_ushort = u16;
971-
pub type c_int = i32;
972-
pub type c_uint = u32;
973-
pub type c_long = i32;
974-
pub type c_ulong = u32;
975-
pub type c_float = f32;
976-
pub type c_double = f64;
977-
pub type size_t = u32;
978-
pub type ptrdiff_t = i32;
979-
pub type clock_t = i32;
980-
pub type time_t = i32;
981-
pub type suseconds_t = i32;
982-
pub type wchar_t = i32;
983-
}
984-
pub mod c99 {
985-
pub type c_longlong = i64;
986-
pub type c_ulonglong = u64;
987-
pub type intptr_t = i32;
988-
pub type uintptr_t = u32;
989-
pub type intmax_t = i64;
990-
pub type uintmax_t = u64;
991-
}
992-
pub mod posix88 {
993-
pub type off_t = i64;
994-
pub type dev_t = u32;
995-
pub type ino_t = u32;
996-
pub type pid_t = i32;
997-
pub type uid_t = u32;
998-
pub type gid_t = u32;
999-
pub type useconds_t = u32;
1000-
pub type mode_t = u16;
1001-
pub type ssize_t = i32;
1002-
}
1003-
pub mod posix01 {
1004-
use types::common::c95::{c_void};
1005-
use types::common::c99::{uint8_t, uint32_t, int32_t};
1006-
use types::os::arch::c95::{c_long, time_t};
1007-
use types::os::arch::posix88::{dev_t, gid_t, ino_t};
1008-
use types::os::arch::posix88::{mode_t, off_t};
1009-
use types::os::arch::posix88::{uid_t};
1010-
1011-
pub type nlink_t = u16;
1012-
pub type blksize_t = i32;
1013-
pub type blkcnt_t = i64;
1014-
pub type fflags_t = u32;
1015-
#[repr(C)]
1016-
#[derive(Copy, Clone)] pub struct stat {
1017-
pub st_dev: dev_t,
1018-
pub st_ino: ino_t,
1019-
pub st_mode: mode_t,
1020-
pub st_nlink: nlink_t,
1021-
pub st_uid: uid_t,
1022-
pub st_gid: gid_t,
1023-
pub st_rdev: dev_t,
1024-
pub st_atime: time_t,
1025-
pub st_atime_nsec: c_long,
1026-
pub st_mtime: time_t,
1027-
pub st_mtime_nsec: c_long,
1028-
pub st_ctime: time_t,
1029-
pub st_ctime_nsec: c_long,
1030-
pub st_size: off_t,
1031-
pub st_blocks: blkcnt_t,
1032-
pub st_blksize: blksize_t,
1033-
pub st_flags: fflags_t,
1034-
pub st_gen: uint32_t,
1035-
pub st_lspare: int32_t,
1036-
pub st_birthtime: time_t,
1037-
pub st_birthtime_nsec: c_long,
1038-
pub __unused: [uint8_t; 2],
1039-
}
1040-
1041-
#[repr(C)]
1042-
#[derive(Copy, Clone)] pub struct utimbuf {
1043-
pub actime: time_t,
1044-
pub modtime: time_t,
1045-
}
1046-
1047-
pub type pthread_attr_t = *mut c_void;
1048-
}
1049-
pub mod posix08 {
1050-
}
1051-
pub mod bsd44 {
1052-
}
1053-
pub mod extra {
1054-
}
1055-
}
1056-
1057963
#[cfg(target_arch = "x86_64")]
1058964
pub mod arch {
1059965
pub mod c95 {

branches/tmp/src/librustc/diagnostics.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -791,8 +791,7 @@ trait Foo {
791791
fn bar(&self);
792792
}
793793
794-
// we now declare a function which takes an object with Foo trait implemented
795-
// as parameter
794+
// we now declare a function which takes an object implementing the Foo trait
796795
fn some_func<T: Foo>(foo: T) {
797796
foo.bar();
798797
}
@@ -1006,7 +1005,7 @@ a compile-time constant.
10061005

10071006
E0308: r##"
10081007
This error occurs when the compiler was unable to infer the concrete type of a
1009-
variable. It can occur for several cases, the most common of which is a
1008+
variable. This error can occur for several cases, the most common of which is a
10101009
mismatch in the expected type that the compiler inferred for a variable's
10111010
initializing expression, and the actual type explicitly assigned to the
10121011
variable.

branches/tmp/src/librustc_back/target/i686_unknown_freebsd.rs

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

branches/tmp/src/librustc_back/target/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,6 @@ impl Target {
368368
arm_linux_androideabi,
369369
aarch64_linux_android,
370370

371-
i686_unknown_freebsd,
372371
x86_64_unknown_freebsd,
373372

374373
i686_unknown_dragonfly,

0 commit comments

Comments
 (0)