Skip to content

Commit e902fc4

Browse files
committed
---
yaml --- r: 189852 b: refs/heads/tmp c: 8ac528b h: refs/heads/master v: v3
1 parent 6761785 commit e902fc4

File tree

10 files changed

+18
-21
lines changed

10 files changed

+18
-21
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
3434
refs/heads/beta: 522d09dfecbeca1595f25ac58c6d0178bbd21d7d
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3636
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
37-
refs/heads/tmp: 43984618eb5c56d69ef1659fd506e26a0fd2d9bb
37+
refs/heads/tmp: 8ac528bed1cc30eabe26a5acc345acd9cbcf7198
3838
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3939
refs/tags/homu-tmp: 7ce5a21b274ff53e77b561467177bc34c668f95e

branches/tmp/configure

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -430,10 +430,6 @@ case $CFG_OSTYPE in
430430
CFG_CPUTYPE=x86_64
431431
;;
432432

433-
# Win 8 # uname -s on 64-bit cygwin does not contain WOW64, so simply use uname -m to detect arch (works in my install)
434-
CYGWIN_NT-6.3)
435-
CFG_OSTYPE=pc-windows-gnu
436-
;;
437433
# We do not detect other OS such as XP/2003 using 64 bit using uname.
438434
# If we want to in the future, we will need to use Cygwin - Chuck's csih helper in /usr/lib/csih/winProductName.exe or alternative.
439435
*)

branches/tmp/src/doc/trpl/plugins.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ that implements Roman numeral integer literals.
6363

6464
```ignore
6565
#![crate_type="dylib"]
66-
#![feature(plugin_registrar, rustc_private)]
66+
#![feature(plugin_registrar)]
6767
6868
extern crate syntax;
6969
extern crate rustc;
@@ -92,13 +92,13 @@ fn expand_rn(cx: &mut ExtCtxt, sp: Span, args: &[TokenTree])
9292
}
9393
};
9494
95-
let mut text = &*text;
95+
let mut text = &text;
9696
let mut total = 0;
9797
while !text.is_empty() {
9898
match NUMERALS.iter().find(|&&(rn, _)| text.starts_with(rn)) {
9999
Some(&(rn, val)) => {
100100
total += val;
101-
text = &text[rn.len()..];
101+
text = text.slice_from(rn.len());
102102
}
103103
None => {
104104
cx.span_err(sp, "invalid Roman numeral");
@@ -107,7 +107,7 @@ fn expand_rn(cx: &mut ExtCtxt, sp: Span, args: &[TokenTree])
107107
}
108108
}
109109
110-
MacEager::expr(cx.expr_u32(sp, total))
110+
MacEager::expr(cx.expr_usize(sp, total))
111111
}
112112
113113
#[plugin_registrar]

branches/tmp/src/librustc_driver/driver.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -954,8 +954,11 @@ pub fn build_output_filenames(input: &Input,
954954
if *odir != None {
955955
sess.warn("ignoring --out-dir flag due to -o flag.");
956956
}
957+
958+
let cur_dir = Path::new("");
959+
957960
OutputFilenames {
958-
out_directory: out_file.parent().unwrap().to_path_buf(),
961+
out_directory: out_file.parent().unwrap_or(cur_dir).to_path_buf(),
959962
out_filestem: out_file.file_stem().unwrap()
960963
.to_str().unwrap().to_string(),
961964
single_output_file: ofile,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1633,7 +1633,7 @@ mod tests {
16331633
assert_eq!((3 as $T).is_power_of_two(), false);
16341634
assert_eq!((4 as $T).is_power_of_two(), true);
16351635
assert_eq!((5 as $T).is_power_of_two(), false);
1636-
assert_eq!(($T::MAX / 2 + 1).is_power_of_two(), true);
1636+
assert!(($T::MAX / 2 + 1).is_power_of_two(), true);
16371637
}
16381638
)
16391639
}

branches/tmp/src/libtest/lib.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,14 +1109,7 @@ impl Bencher {
11091109
return summ5;
11101110
}
11111111

1112-
// If we overflow here just return the results so far. We check a
1113-
// multiplier of 10 because we're about to multiply by 2 and the
1114-
// next iteration of the loop will also multiply by 5 (to calculate
1115-
// the summ5 result)
1116-
n = match n.checked_mul(10) {
1117-
Some(_) => n * 2,
1118-
None => return summ5,
1119-
};
1112+
n *= 2;
11201113
}
11211114
}
11221115
}

branches/tmp/src/test/parse-fail/issue-5806.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
// ignore-windows
1212
// ignore-freebsd
13-
// ignore-openbsd
1413

1514
#[path = "../compile-fail"]
1615
mod foo; //~ ERROR: a directory

branches/tmp/src/test/run-pass/issue-4759-1.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
10+
//
11+
// ignore-lexer-test FIXME #15877
1012

1113
trait U { fn f(self); }
12-
impl U for isize { fn f(self) {} }
14+
impl U for int { fn f(self) {} }
1315
pub fn main() { 4.f(); }

branches/tmp/src/test/run-pass/unsized.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
10+
//
11+
// ignore-lexer-test FIXME #15879
1012

1113
// Test syntax checks for `?Sized` syntax.
1214

branches/tmp/src/test/run-pass/unsized2.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
10+
//
11+
// ignore-lexer-test FIXME #15879
1012

1113
#![allow(unknown_features)]
1214
#![feature(box_syntax)]

0 commit comments

Comments
 (0)