Skip to content

Commit a8e912a

Browse files
author
Jorge Aparicio
committed
---
yaml --- r: 271419 b: refs/heads/auto c: 0f02309 h: refs/heads/master i: 271417: fc722c2 271415: 6faea15
1 parent d222a35 commit a8e912a

File tree

148 files changed

+3985
-4665
lines changed

Some content is hidden

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

148 files changed

+3985
-4665
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
88
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
99
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1010
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
11-
refs/heads/auto: 26cfc269a0ec6a7c895c38954e9701b62940df07
11+
refs/heads/auto: 0f02309e4b0ea05ee905205278fb6d131341c41f
1212
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1313
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336
1414
refs/tags/0.2: 1754d02027f2924bed83b0160ee340c7f41d5ea1

branches/auto/src/bootstrap/build/check.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,3 @@ pub fn linkcheck(build: &Build, stage: u32, host: &str) {
1616
build.run(build.tool_cmd(&compiler, "linkchecker")
1717
.arg(build.out.join(host).join("doc")));
1818
}
19-
20-
pub fn cargotest(build: &Build, stage: u32, host: &str) {
21-
let ref compiler = Compiler::new(stage, host);
22-
build.run(build.tool_cmd(compiler, "cargotest")
23-
.env("RUSTC", build.compiler_path(compiler))
24-
.env("RUSTDOC", build.rustdoc(compiler))
25-
.arg(&build.cargo));
26-
}

branches/auto/src/bootstrap/build/mod.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,6 @@ impl Build {
183183
compile::tool(self, stage, target.target,
184184
"error_index_generator");
185185
}
186-
ToolCargoTest { stage } => {
187-
compile::tool(self, stage, target.target, "cargotest");
188-
}
189186
DocBook { stage } => {
190187
doc::rustbook(self, stage, target.target, "book", &doc_out);
191188
}
@@ -213,9 +210,6 @@ impl Build {
213210
CheckLinkcheck { stage } => {
214211
check::linkcheck(self, stage, target.target);
215212
}
216-
CheckCargoTest { stage } => {
217-
check::cargotest(self, stage, target.target);
218-
}
219213

220214
DistDocs { stage } => dist::docs(self, stage, target.target),
221215
DistMingw { _dummy } => dist::mingw(self, target.target),

branches/auto/src/bootstrap/build/step.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ macro_rules! targets {
4747
(tool_linkchecker, ToolLinkchecker { stage: u32 }),
4848
(tool_rustbook, ToolRustbook { stage: u32 }),
4949
(tool_error_index, ToolErrorIndex { stage: u32 }),
50-
(tool_cargotest, ToolCargoTest { stage: u32 }),
5150

5251
// Steps for long-running native builds. Ideally these wouldn't
5352
// actually exist and would be part of build scripts, but for now
@@ -74,7 +73,6 @@ macro_rules! targets {
7473
// target to depend on a bunch of others.
7574
(check, Check { stage: u32, compiler: Compiler<'a> }),
7675
(check_linkcheck, CheckLinkcheck { stage: u32 }),
77-
(check_cargotest, CheckCargoTest { stage: u32 }),
7876

7977
// Distribution targets, creating tarballs
8078
(dist, Dist { stage: u32 }),
@@ -294,9 +292,6 @@ impl<'a> Step<'a> {
294292
Source::CheckLinkcheck { stage } => {
295293
vec![self.tool_linkchecker(stage), self.doc(stage)]
296294
}
297-
Source::CheckCargoTest { stage } => {
298-
vec![self.tool_cargotest(stage)]
299-
}
300295

301296
Source::ToolLinkchecker { stage } => {
302297
vec![self.libstd(self.compiler(stage))]
@@ -305,9 +300,6 @@ impl<'a> Step<'a> {
305300
Source::ToolRustbook { stage } => {
306301
vec![self.librustc(self.compiler(stage))]
307302
}
308-
Source::ToolCargoTest { stage } => {
309-
vec![self.libstd(self.compiler(stage))]
310-
}
311303

312304
Source::DistDocs { stage } => vec![self.doc(stage)],
313305
Source::DistMingw { _dummy: _ } => Vec::new(),

branches/auto/src/bootstrap/mk/Makefile.in

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ standalone-docs:
3838
$(Q)$(BOOTSTRAP) --step doc-standalone
3939
check:
4040
$(Q)$(BOOTSTRAP) --step check
41-
cargotest:
42-
$(Q)$(BOOTSTRAP) --step cargotest
4341
dist:
4442
$(Q)$(BOOTSTRAP) --step dist
4543

branches/auto/src/compiletest/compiletest.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -280,16 +280,16 @@ fn collect_tests_from_dir(config: &Config,
280280
-> io::Result<()> {
281281
// Ignore directories that contain a file
282282
// `compiletest-ignore-dir`.
283-
for file in try!(fs::read_dir(dir)) {
284-
let file = try!(file);
283+
for file in fs::read_dir(dir)? {
284+
let file = file?;
285285
if file.file_name() == *"compiletest-ignore-dir" {
286286
return Ok(());
287287
}
288288
}
289289

290-
let dirs = try!(fs::read_dir(dir));
290+
let dirs = fs::read_dir(dir)?;
291291
for file in dirs {
292-
let file = try!(file);
292+
let file = file?;
293293
let file_path = file.path();
294294
debug!("inspecting file {:?}", file_path.display());
295295
if is_test(config, &file_path) {
@@ -310,11 +310,11 @@ fn collect_tests_from_dir(config: &Config,
310310
tests.push(make_test(config, &paths))
311311
} else if file_path.is_dir() {
312312
let relative_file_path = relative_dir_path.join(file.file_name());
313-
try!(collect_tests_from_dir(config,
313+
collect_tests_from_dir(config,
314314
base,
315315
&file_path,
316316
&relative_file_path,
317-
tests));
317+
tests)?;
318318
}
319319
}
320320
Ok(())

branches/auto/src/doc/reference.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1905,8 +1905,6 @@ type int8_t = i8;
19051905
- `should_panic` - indicates that this test function should panic, inverting the success condition.
19061906
- `cold` - The function is unlikely to be executed, so optimize it (and calls
19071907
to it) differently.
1908-
- `naked` - The function utilizes a custom ABI or custom inline ASM that requires
1909-
epilogue and prologue to be skipped.
19101908

19111909
### Static-only attributes
19121910

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ impl<'a, 'b: 'a> fmt::Write for PadAdapter<'a, 'b> {
2929
fn write_str(&mut self, mut s: &str) -> fmt::Result {
3030
while !s.is_empty() {
3131
if self.on_newline {
32-
try!(self.fmt.write_str(" "));
32+
self.fmt.write_str(" ")?;
3333
}
3434

3535
let split = match s.find('\n') {
@@ -42,7 +42,7 @@ impl<'a, 'b: 'a> fmt::Write for PadAdapter<'a, 'b> {
4242
s.len()
4343
}
4444
};
45-
try!(self.fmt.write_str(&s[..split]));
45+
self.fmt.write_str(&s[..split])?;
4646
s = &s[split..];
4747
}
4848

@@ -169,10 +169,10 @@ impl<'a, 'b: 'a> DebugTuple<'a, 'b> {
169169
if self.fields > 0 {
170170
self.result = self.result.and_then(|_| {
171171
if self.is_pretty() {
172-
try!(self.fmt.write_str("\n"));
172+
self.fmt.write_str("\n")?;
173173
}
174174
if self.fields == 1 && self.empty_name {
175-
try!(self.fmt.write_str(","));
175+
self.fmt.write_str(",")?;
176176
}
177177
self.fmt.write_str(")")
178178
});

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

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -795,24 +795,24 @@ pub fn write(output: &mut Write, args: Arguments) -> Result {
795795
None => {
796796
// We can use default formatting parameters for all arguments.
797797
for (arg, piece) in args.args.iter().zip(pieces.by_ref()) {
798-
try!(formatter.buf.write_str(*piece));
799-
try!((arg.formatter)(arg.value, &mut formatter));
798+
formatter.buf.write_str(*piece)?;
799+
(arg.formatter)(arg.value, &mut formatter)?;
800800
}
801801
}
802802
Some(fmt) => {
803803
// Every spec has a corresponding argument that is preceded by
804804
// a string piece.
805805
for (arg, piece) in fmt.iter().zip(pieces.by_ref()) {
806-
try!(formatter.buf.write_str(*piece));
807-
try!(formatter.run(arg));
806+
formatter.buf.write_str(*piece)?;
807+
formatter.run(arg)?;
808808
}
809809
}
810810
}
811811

812812
// There can be only one trailing string piece left.
813813
match pieces.next() {
814814
Some(piece) => {
815-
try!(formatter.buf.write_str(*piece));
815+
formatter.buf.write_str(*piece)?;
816816
}
817817
None => {}
818818
}
@@ -897,9 +897,9 @@ impl<'a> Formatter<'a> {
897897
// Writes the sign if it exists, and then the prefix if it was requested
898898
let write_prefix = |f: &mut Formatter| {
899899
if let Some(c) = sign {
900-
try!(f.buf.write_str(unsafe {
900+
f.buf.write_str(unsafe {
901901
str::from_utf8_unchecked(c.encode_utf8().as_slice())
902-
}));
902+
})?;
903903
}
904904
if prefixed { f.buf.write_str(prefix) }
905905
else { Ok(()) }
@@ -910,26 +910,26 @@ impl<'a> Formatter<'a> {
910910
// If there's no minimum length requirements then we can just
911911
// write the bytes.
912912
None => {
913-
try!(write_prefix(self)); self.buf.write_str(buf)
913+
write_prefix(self)?; self.buf.write_str(buf)
914914
}
915915
// Check if we're over the minimum width, if so then we can also
916916
// just write the bytes.
917917
Some(min) if width >= min => {
918-
try!(write_prefix(self)); self.buf.write_str(buf)
918+
write_prefix(self)?; self.buf.write_str(buf)
919919
}
920920
// The sign and prefix goes before the padding if the fill character
921921
// is zero
922922
Some(min) if self.sign_aware_zero_pad() => {
923923
self.fill = '0';
924-
try!(write_prefix(self));
924+
write_prefix(self)?;
925925
self.with_padding(min - width, rt::v1::Alignment::Right, |f| {
926926
f.buf.write_str(buf)
927927
})
928928
}
929929
// Otherwise, the sign and prefix goes after the padding
930930
Some(min) => {
931931
self.with_padding(min - width, rt::v1::Alignment::Right, |f| {
932-
try!(write_prefix(f)); f.buf.write_str(buf)
932+
write_prefix(f)?; f.buf.write_str(buf)
933933
})
934934
}
935935
}
@@ -1008,13 +1008,13 @@ impl<'a> Formatter<'a> {
10081008
};
10091009

10101010
for _ in 0..pre_pad {
1011-
try!(self.buf.write_str(fill));
1011+
self.buf.write_str(fill)?;
10121012
}
10131013

1014-
try!(f(self));
1014+
f(self)?;
10151015

10161016
for _ in 0..post_pad {
1017-
try!(self.buf.write_str(fill));
1017+
self.buf.write_str(fill)?;
10181018
}
10191019

10201020
Ok(())
@@ -1033,7 +1033,7 @@ impl<'a> Formatter<'a> {
10331033
if self.sign_aware_zero_pad() {
10341034
// a sign always goes first
10351035
let sign = unsafe { str::from_utf8_unchecked(formatted.sign) };
1036-
try!(self.buf.write_str(sign));
1036+
self.buf.write_str(sign)?;
10371037

10381038
// remove the sign from the formatted parts
10391039
formatted.sign = b"";
@@ -1065,19 +1065,19 @@ impl<'a> Formatter<'a> {
10651065
}
10661066

10671067
if !formatted.sign.is_empty() {
1068-
try!(write_bytes(self.buf, formatted.sign));
1068+
write_bytes(self.buf, formatted.sign)?;
10691069
}
10701070
for part in formatted.parts {
10711071
match *part {
10721072
flt2dec::Part::Zero(mut nzeroes) => {
10731073
const ZEROES: &'static str = // 64 zeroes
10741074
"0000000000000000000000000000000000000000000000000000000000000000";
10751075
while nzeroes > ZEROES.len() {
1076-
try!(self.buf.write_str(ZEROES));
1076+
self.buf.write_str(ZEROES)?;
10771077
nzeroes -= ZEROES.len();
10781078
}
10791079
if nzeroes > 0 {
1080-
try!(self.buf.write_str(&ZEROES[..nzeroes]));
1080+
self.buf.write_str(&ZEROES[..nzeroes])?;
10811081
}
10821082
}
10831083
flt2dec::Part::Num(mut v) => {
@@ -1087,10 +1087,10 @@ impl<'a> Formatter<'a> {
10871087
*c = b'0' + (v % 10) as u8;
10881088
v /= 10;
10891089
}
1090-
try!(write_bytes(self.buf, &s[..len]));
1090+
write_bytes(self.buf, &s[..len])?;
10911091
}
10921092
flt2dec::Part::Copy(buf) => {
1093-
try!(write_bytes(self.buf, buf));
1093+
write_bytes(self.buf, buf)?;
10941094
}
10951095
}
10961096
}
@@ -1349,20 +1349,20 @@ impl Display for bool {
13491349
#[stable(feature = "rust1", since = "1.0.0")]
13501350
impl Debug for str {
13511351
fn fmt(&self, f: &mut Formatter) -> Result {
1352-
try!(f.write_char('"'));
1352+
f.write_char('"')?;
13531353
let mut from = 0;
13541354
for (i, c) in self.char_indices() {
13551355
let esc = c.escape_default();
13561356
// If char needs escaping, flush backlog so far and write, else skip
13571357
if esc.size_hint() != (1, Some(1)) {
1358-
try!(f.write_str(&self[from..i]));
1358+
f.write_str(&self[from..i])?;
13591359
for c in esc {
1360-
try!(f.write_char(c));
1360+
f.write_char(c)?;
13611361
}
13621362
from = i + c.len_utf8();
13631363
}
13641364
}
1365-
try!(f.write_str(&self[from..]));
1365+
f.write_str(&self[from..])?;
13661366
f.write_char('"')
13671367
}
13681368
}
@@ -1377,9 +1377,9 @@ impl Display for str {
13771377
#[stable(feature = "rust1", since = "1.0.0")]
13781378
impl Debug for char {
13791379
fn fmt(&self, f: &mut Formatter) -> Result {
1380-
try!(f.write_char('\''));
1380+
f.write_char('\'')?;
13811381
for c in self.escape_default() {
1382-
try!(f.write_char(c))
1382+
f.write_char(c)?
13831383
}
13841384
f.write_char('\'')
13851385
}

branches/auto/src/libcore/num/dec2flt/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ fn dec2flt<T: RawFloat>(s: &str) -> Result<T, ParseFloatError> {
214214
}
215215
let (sign, s) = extract_sign(s);
216216
let flt = match parse_decimal(s) {
217-
ParseResult::Valid(decimal) => try!(convert(decimal)),
217+
ParseResult::Valid(decimal) => convert(decimal)?,
218218
ParseResult::ShortcutToInf => T::infinity(),
219219
ParseResult::ShortcutToZero => T::zero(),
220220
ParseResult::Invalid => match s {

branches/auto/src/libcore/str/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ impl Utf8Error {
240240
/// ```
241241
#[stable(feature = "rust1", since = "1.0.0")]
242242
pub fn from_utf8(v: &[u8]) -> Result<&str, Utf8Error> {
243-
try!(run_utf8_validation(v));
243+
run_utf8_validation(v)?;
244244
Ok(unsafe { from_utf8_unchecked(v) })
245245
}
246246

0 commit comments

Comments
 (0)