Skip to content

Commit c6f391a

Browse files
committed
---
yaml --- r: 172667 b: refs/heads/try c: 3248bc5 h: refs/heads/master i: 172665: cc5bee3 172663: 9041f87 v: v3
1 parent 940b405 commit c6f391a

File tree

840 files changed

+2197
-2467
lines changed

Some content is hidden

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

840 files changed

+2197
-2467
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: 170c4399e614fe599c3d41306b3429ca8b3b68c6
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 5b3cd3900ceda838f5798c30ab96ceb41f962534
5-
refs/heads/try: 705b92bdfe33d0d6febdf945340262514e1b3b5c
5+
refs/heads/try: 3248bc5bd0384712e70f67eb90daa38ae5e5a21f
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
88
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try/src/compiletest/compiletest.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#![allow(unknown_features)]
1313
#![feature(slicing_syntax, unboxed_closures)]
1414
#![feature(box_syntax)]
15-
#![feature(int_uint)]
1615

1716
#![deny(warnings)]
1817

branches/try/src/liballoc/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@
6868
#![allow(unknown_features)]
6969
#![feature(lang_items, unsafe_destructor)]
7070
#![feature(box_syntax)]
71-
#![allow(unknown_features)] #![feature(int_uint)]
7271

7372
#[macro_use]
7473
extern crate core;

branches/try/src/libarena/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
#![feature(unsafe_destructor)]
3333
#![feature(unboxed_closures)]
3434
#![feature(box_syntax)]
35-
#![allow(unknown_features)] #![feature(int_uint)]
3635
#![allow(missing_docs)]
3736

3837
extern crate alloc;

branches/try/src/libcollections/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
#![feature(box_syntax)]
2828
#![feature(unboxed_closures)]
2929
#![feature(old_impl_check)]
30-
#![allow(unknown_features)] #![feature(int_uint)]
3130
#![no_std]
3231

3332
#[macro_use]

branches/try/src/libcollections/string.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -932,7 +932,7 @@ pub trait ToString {
932932
fn to_string(&self) -> String;
933933
}
934934

935-
impl<T: fmt::String + ?Sized> ToString for T {
935+
impl<T: fmt::String> ToString for T {
936936
fn to_string(&self) -> String {
937937
use core::fmt::Writer;
938938
let mut buf = String::new();
@@ -994,12 +994,6 @@ mod tests {
994994
assert_eq!(owned.as_ref().map(|s| s.as_slice()), Some("string"));
995995
}
996996

997-
#[test]
998-
fn test_unsized_to_string() {
999-
let s: &str = "abc";
1000-
let _: String = (*s).to_string();
1001-
}
1002-
1003997
#[test]
1004998
fn test_from_utf8() {
1005999
let xs = b"hello".to_vec();

branches/try/src/libcollections/vec.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@
4444
//! let two = xs.pop();
4545
//! ```
4646
47-
#![stable]
48-
4947
use core::prelude::*;
5048

5149
use alloc::boxed::Box;

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
//! Utilities for formatting and printing strings
1212
1313
#![allow(unused_variables)]
14-
#![stable]
1514

1615
use any;
1716
use cell::{Cell, RefCell, Ref, RefMut};

branches/try/src/libcore/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,9 @@
5959
#![no_std]
6060
#![allow(unknown_features, raw_pointer_derive)]
6161
#![cfg_attr(stage0, allow(unused_attributes))]
62-
#![allow(unknown_features)] #![feature(intrinsics, lang_items)]
62+
#![feature(intrinsics, lang_items)]
6363
#![feature(simd, unsafe_destructor, slicing_syntax)]
6464
#![feature(unboxed_closures)]
65-
#![allow(unknown_features)] #![feature(int_uint)]
6665
#![deny(missing_docs)]
6766

6867
#[macro_use]

branches/try/src/libcore/macros.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ macro_rules! panic {
1515
panic!("explicit panic")
1616
);
1717
($msg:expr) => ({
18-
static _MSG_FILE_LINE: (&'static str, &'static str, usize) = ($msg, file!(), line!());
18+
static _MSG_FILE_LINE: (&'static str, &'static str, uint) = ($msg, file!(), line!());
1919
::core::panicking::panic(&_MSG_FILE_LINE)
2020
});
2121
($fmt:expr, $($arg:tt)*) => ({
2222
// The leading _'s are to avoid dead code warnings if this is
2323
// used inside a dead function. Just `#[allow(dead_code)]` is
2424
// insufficient, since the user may have
2525
// `#[forbid(dead_code)]` and which cannot be overridden.
26-
static _FILE_LINE: (&'static str, usize) = (file!(), line!());
26+
static _FILE_LINE: (&'static str, uint) = (file!(), line!());
2727
::core::panicking::panic_fmt(format_args!($fmt, $($arg)*), &_FILE_LINE)
2828
});
2929
}

branches/try/src/libcoretest/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#![feature(unsafe_destructor, slicing_syntax)]
1212
#![feature(unboxed_closures)]
1313
#![feature(box_syntax)]
14-
#![allow(unknown_features)] #![feature(int_uint)]
1514

1615
extern crate core;
1716
extern crate test;

branches/try/src/libflate/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
#![crate_name = "flate"]
1818
#![experimental]
1919
#![staged_api]
20-
#![allow(unknown_features)] #![feature(int_uint)]
2120
#![crate_type = "rlib"]
2221
#![crate_type = "dylib"]
2322
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",

branches/try/src/libfmt_macros/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
html_playground_url = "http://play.rust-lang.org/")]
2626

2727
#![feature(slicing_syntax)]
28-
#![allow(unknown_features)] #![feature(int_uint)]
2928

3029
pub use self::Piece::*;
3130
pub use self::Position::*;

branches/try/src/libgetopts/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@
8787
html_root_url = "http://doc.rust-lang.org/nightly/",
8888
html_playground_url = "http://play.rust-lang.org/")]
8989
#![feature(slicing_syntax)]
90-
#![allow(unknown_features)] #![feature(int_uint)]
9190
#![deny(missing_docs)]
9291

9392
#[cfg(test)] #[macro_use] extern crate log;

branches/try/src/libgraphviz/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,6 @@
273273
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
274274
html_root_url = "http://doc.rust-lang.org/nightly/")]
275275
#![feature(slicing_syntax)]
276-
#![allow(unknown_features)] #![feature(int_uint)]
277276

278277
use self::LabelText::*;
279278

branches/try/src/liblibc/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#![crate_type = "rlib"]
1313
#![cfg_attr(not(feature = "cargo-build"), experimental)]
1414
#![cfg_attr(not(feature = "cargo-build"), staged_api)]
15-
#![allow(unknown_features)] #![feature(int_uint)]
1615
#![no_std]
1716
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
1817
html_favicon_url = "http://www.rust-lang.org/favicon.ico",

branches/try/src/liblog/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,6 @@
168168
#![allow(unknown_features)]
169169
#![feature(slicing_syntax)]
170170
#![feature(box_syntax)]
171-
#![allow(unknown_features)] #![feature(int_uint)]
172171
#![deny(missing_docs)]
173172

174173
extern crate regex;

branches/try/src/librand/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
2323
html_root_url = "http://doc.rust-lang.org/nightly/",
2424
html_playground_url = "http://play.rust-lang.org/")]
25-
#![allow(unknown_features)] #![feature(int_uint)]
25+
2626
#![no_std]
2727
#![experimental]
2828
#![staged_api]

branches/try/src/librbml/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
html_playground_url = "http://play.rust-lang.org/")]
2727
#![allow(unknown_features)]
2828
#![feature(slicing_syntax)]
29-
#![allow(unknown_features)] #![feature(int_uint)]
3029

3130
extern crate serialize;
3231
#[macro_use] extern crate log;

branches/try/src/libregex/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
#![allow(unknown_features)]
2727
#![feature(slicing_syntax)]
2828
#![feature(box_syntax)]
29-
#![allow(unknown_features)] #![feature(int_uint)]
3029
#![deny(missing_docs)]
3130

3231
#[cfg(test)]

branches/try/src/librustc/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
#![feature(quote)]
2828
#![feature(slicing_syntax, unsafe_destructor)]
2929
#![feature(box_syntax)]
30-
#![allow(unknown_features)] #![feature(int_uint)]
3130
#![feature(rustc_diagnostic_macros)]
3231
#![feature(old_impl_check)]
3332

branches/try/src/librustc/lint/builtin.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ impl LintPass for TypeLimits {
216216
match lit.node {
217217
ast::LitInt(v, ast::SignedIntLit(_, ast::Plus)) |
218218
ast::LitInt(v, ast::UnsuffixedIntLit(ast::Plus)) => {
219-
let int_type = if let ast::TyIs(_) = t {
219+
let int_type = if t == ast::TyIs {
220220
cx.sess().target.int_type
221221
} else { t };
222222
let (min, max) = int_ty_range(int_type);
@@ -233,7 +233,7 @@ impl LintPass for TypeLimits {
233233
};
234234
},
235235
ty::ty_uint(t) => {
236-
let uint_type = if let ast::TyUs(_) = t {
236+
let uint_type = if t == ast::TyUs {
237237
cx.sess().target.uint_type
238238
} else { t };
239239
let (min, max) = uint_ty_range(uint_type);
@@ -296,7 +296,7 @@ impl LintPass for TypeLimits {
296296
// warnings are consistent between 32- and 64-bit platforms
297297
fn int_ty_range(int_ty: ast::IntTy) -> (i64, i64) {
298298
match int_ty {
299-
ast::TyIs(_) => (i64::MIN, i64::MAX),
299+
ast::TyIs=> (i64::MIN, i64::MAX),
300300
ast::TyI8 => (i8::MIN as i64, i8::MAX as i64),
301301
ast::TyI16 => (i16::MIN as i64, i16::MAX as i64),
302302
ast::TyI32 => (i32::MIN as i64, i32::MAX as i64),
@@ -306,7 +306,7 @@ impl LintPass for TypeLimits {
306306

307307
fn uint_ty_range(uint_ty: ast::UintTy) -> (u64, u64) {
308308
match uint_ty {
309-
ast::TyUs(_) => (u64::MIN, u64::MAX),
309+
ast::TyUs=> (u64::MIN, u64::MAX),
310310
ast::TyU8 => (u8::MIN as u64, u8::MAX as u64),
311311
ast::TyU16 => (u16::MIN as u64, u16::MAX as u64),
312312
ast::TyU32 => (u32::MIN as u64, u32::MAX as u64),
@@ -323,7 +323,7 @@ impl LintPass for TypeLimits {
323323

324324
fn int_ty_bits(int_ty: ast::IntTy, target_int_ty: ast::IntTy) -> u64 {
325325
match int_ty {
326-
ast::TyIs(_) => int_ty_bits(target_int_ty, target_int_ty),
326+
ast::TyIs=> int_ty_bits(target_int_ty, target_int_ty),
327327
ast::TyI8 => i8::BITS as u64,
328328
ast::TyI16 => i16::BITS as u64,
329329
ast::TyI32 => i32::BITS as u64,
@@ -333,7 +333,7 @@ impl LintPass for TypeLimits {
333333

334334
fn uint_ty_bits(uint_ty: ast::UintTy, target_uint_ty: ast::UintTy) -> u64 {
335335
match uint_ty {
336-
ast::TyUs(_) => uint_ty_bits(target_uint_ty, target_uint_ty),
336+
ast::TyUs=> uint_ty_bits(target_uint_ty, target_uint_ty),
337337
ast::TyU8 => u8::BITS as u64,
338338
ast::TyU16 => u16::BITS as u64,
339339
ast::TyU32 => u32::BITS as u64,
@@ -404,12 +404,12 @@ struct ImproperCTypesVisitor<'a, 'tcx: 'a> {
404404
impl<'a, 'tcx> ImproperCTypesVisitor<'a, 'tcx> {
405405
fn check_def(&mut self, sp: Span, ty_id: ast::NodeId, path_id: ast::NodeId) {
406406
match self.cx.tcx.def_map.borrow()[path_id].clone() {
407-
def::DefPrimTy(ast::TyInt(ast::TyIs(_))) => {
407+
def::DefPrimTy(ast::TyInt(ast::TyIs)) => {
408408
self.cx.span_lint(IMPROPER_CTYPES, sp,
409409
"found rust type `isize` in foreign module, while \
410410
libc::c_int or libc::c_long should be used");
411411
}
412-
def::DefPrimTy(ast::TyUint(ast::TyUs(_))) => {
412+
def::DefPrimTy(ast::TyUint(ast::TyUs)) => {
413413
self.cx.span_lint(IMPROPER_CTYPES, sp,
414414
"found rust type `usize` in foreign module, while \
415415
libc::c_uint or libc::c_ulong should be used");

branches/try/src/librustc/metadata/tyencode.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ pub fn enc_ty<'a, 'tcx>(w: &mut SeekableMemWriter, cx: &ctxt<'a, 'tcx>, t: Ty<'t
6161
ty::ty_char => mywrite!(w, "c"),
6262
ty::ty_int(t) => {
6363
match t {
64-
ast::TyIs(_) => mywrite!(w, "is"),
64+
ast::TyIs => mywrite!(w, "is"),
6565
ast::TyI8 => mywrite!(w, "MB"),
6666
ast::TyI16 => mywrite!(w, "MW"),
6767
ast::TyI32 => mywrite!(w, "ML"),
@@ -70,7 +70,7 @@ pub fn enc_ty<'a, 'tcx>(w: &mut SeekableMemWriter, cx: &ctxt<'a, 'tcx>, t: Ty<'t
7070
}
7171
ty::ty_uint(t) => {
7272
match t {
73-
ast::TyUs(_) => mywrite!(w, "us"),
73+
ast::TyUs => mywrite!(w, "us"),
7474
ast::TyU8 => mywrite!(w, "Mb"),
7575
ast::TyU16 => mywrite!(w, "Mw"),
7676
ast::TyU32 => mywrite!(w, "Ml"),

branches/try/src/librustc/middle/const_eval.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -528,12 +528,12 @@ pub fn eval_const_expr_partial(tcx: &ty::ctxt, e: &Expr) -> Result<const_val, St
528528

529529
eval_const_expr_partial(tcx, &**base)
530530
.and_then(|val| define_casts!(val, {
531-
ty::ty_int(ast::TyIs(_)) => (int, const_int, i64),
531+
ty::ty_int(ast::TyIs) => (int, const_int, i64),
532532
ty::ty_int(ast::TyI8) => (i8, const_int, i64),
533533
ty::ty_int(ast::TyI16) => (i16, const_int, i64),
534534
ty::ty_int(ast::TyI32) => (i32, const_int, i64),
535535
ty::ty_int(ast::TyI64) => (i64, const_int, i64),
536-
ty::ty_uint(ast::TyUs(_)) => (uint, const_uint, u64),
536+
ty::ty_uint(ast::TyUs) => (uint, const_uint, u64),
537537
ty::ty_uint(ast::TyU8) => (u8, const_uint, u64),
538538
ty::ty_uint(ast::TyU16) => (u16, const_uint, u64),
539539
ty::ty_uint(ast::TyU32) => (u32, const_uint, u64),

branches/try/src/librustc/middle/ty.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2341,12 +2341,12 @@ impl<'tcx> CommonTypes<'tcx> {
23412341
bool: intern_ty(arena, interner, ty_bool),
23422342
char: intern_ty(arena, interner, ty_char),
23432343
err: intern_ty(arena, interner, ty_err),
2344-
int: intern_ty(arena, interner, ty_int(ast::TyIs(false))),
2344+
int: intern_ty(arena, interner, ty_int(ast::TyIs)),
23452345
i8: intern_ty(arena, interner, ty_int(ast::TyI8)),
23462346
i16: intern_ty(arena, interner, ty_int(ast::TyI16)),
23472347
i32: intern_ty(arena, interner, ty_int(ast::TyI32)),
23482348
i64: intern_ty(arena, interner, ty_int(ast::TyI64)),
2349-
uint: intern_ty(arena, interner, ty_uint(ast::TyUs(false))),
2349+
uint: intern_ty(arena, interner, ty_uint(ast::TyUs)),
23502350
u8: intern_ty(arena, interner, ty_uint(ast::TyU8)),
23512351
u16: intern_ty(arena, interner, ty_uint(ast::TyU16)),
23522352
u32: intern_ty(arena, interner, ty_uint(ast::TyU32)),
@@ -2692,7 +2692,7 @@ impl FlagComputation {
26922692

26932693
pub fn mk_mach_int<'tcx>(tcx: &ctxt<'tcx>, tm: ast::IntTy) -> Ty<'tcx> {
26942694
match tm {
2695-
ast::TyIs(_) => tcx.types.int,
2695+
ast::TyIs => tcx.types.int,
26962696
ast::TyI8 => tcx.types.i8,
26972697
ast::TyI16 => tcx.types.i16,
26982698
ast::TyI32 => tcx.types.i32,
@@ -2702,7 +2702,7 @@ pub fn mk_mach_int<'tcx>(tcx: &ctxt<'tcx>, tm: ast::IntTy) -> Ty<'tcx> {
27022702

27032703
pub fn mk_mach_uint<'tcx>(tcx: &ctxt<'tcx>, tm: ast::UintTy) -> Ty<'tcx> {
27042704
match tm {
2705-
ast::TyUs(_) => tcx.types.uint,
2705+
ast::TyUs => tcx.types.uint,
27062706
ast::TyU8 => tcx.types.u8,
27072707
ast::TyU16 => tcx.types.u16,
27082708
ast::TyU32 => tcx.types.u32,
@@ -3363,7 +3363,7 @@ pub fn type_contents<'tcx>(cx: &ctxt<'tcx>, ty: Ty<'tcx>) -> TypeContents {
33633363

33643364
let result = match ty.sty {
33653365
// uint and int are ffi-unsafe
3366-
ty_uint(ast::TyUs(_)) | ty_int(ast::TyIs(_)) => {
3366+
ty_uint(ast::TyUs) | ty_int(ast::TyIs) => {
33673367
TC::ReachesFfiUnsafe
33683368
}
33693369

@@ -3937,7 +3937,7 @@ pub fn type_is_fresh(ty: Ty) -> bool {
39373937

39383938
pub fn type_is_uint(ty: Ty) -> bool {
39393939
match ty.sty {
3940-
ty_infer(IntVar(_)) | ty_uint(ast::TyUs(_)) => true,
3940+
ty_infer(IntVar(_)) | ty_uint(ast::TyUs) => true,
39413941
_ => false
39423942
}
39433943
}
@@ -3983,7 +3983,7 @@ pub fn type_is_signed(ty: Ty) -> bool {
39833983

39843984
pub fn type_is_machine(ty: Ty) -> bool {
39853985
match ty.sty {
3986-
ty_int(ast::TyIs(_)) | ty_uint(ast::TyUs(_)) => false,
3986+
ty_int(ast::TyIs) | ty_uint(ast::TyUs) => false,
39873987
ty_int(..) | ty_uint(..) | ty_float(..) => true,
39883988
_ => false
39893989
}

0 commit comments

Comments
 (0)