Skip to content

Commit 2497201

Browse files
committed
---
yaml --- r: 95216 b: refs/heads/dist-snap c: 3b26bb9 h: refs/heads/master v: v3
1 parent 1a56ecb commit 2497201

File tree

7 files changed

+6
-76
lines changed

7 files changed

+6
-76
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: c274a6888410ce3e357e014568b43310ed787d36
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: acf9783879dca0db0721c10ac79c9078f2dec425
9+
refs/heads/dist-snap: 3b26bb9022e057084f357bafbcda39cab4cda55f
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/src/libextra/time.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,8 @@ pub fn strptime(s: &str, format: &str) -> Result<Tm, ~str> {
600600
None => Err(~"Invalid day of week")
601601
}
602602
}
603+
//'X' {}
604+
//'x' {}
603605
'Y' => {
604606
match match_digits(s, pos, 4u, false) {
605607
Some(item) => {

branches/dist-snap/src/librustc/middle/typeck/check/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3054,8 +3054,7 @@ pub fn check_block_with_expected(fcx: @mut FnCtxt,
30543054
},
30553055
Some(e) => {
30563056
if any_bot && !warned {
3057-
fcx.ccx.tcx.sess.add_lint(unreachable_code, e.id, e.span,
3058-
~"unreachable expression");
3057+
fcx.ccx.tcx.sess.span_warn(e.span, "unreachable expression");
30593058
}
30603059
check_expr_with_opt_hint(fcx, e, expected);
30613060
let ety = fcx.expr_ty(e);

branches/dist-snap/src/librustc/middle/typeck/check/regionmanip.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@ pub fn replace_bound_regions_in_fn_sig(
3232
{
3333
let mut all_tys = ty::tys_in_fn_sig(fn_sig);
3434

35-
for &self_ty in opt_self_ty.iter() {
36-
all_tys.push(self_ty);
37-
}
38-
3935
for &t in opt_self_ty.iter() { all_tys.push(t) }
4036

4137
debug2!("replace_bound_regions_in_fn_sig(self_ty={:?}, fn_sig={}, \

branches/dist-snap/src/test/compile-fail/issue-2149.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ impl<A> vec_monad<A> for ~[A] {
1616
fn bind<B>(&self, f: &fn(A) -> ~[B]) {
1717
let mut r = fail2!();
1818
for elt in self.iter() { r = r + f(*elt); }
19-
//~^ ERROR the type of this value must be known
19+
//~^ WARNING unreachable expression
20+
//~^^ ERROR the type of this value must be known
2021
}
2122
}
2223
fn main() {

branches/dist-snap/src/test/compile-fail/issue-7246.rs

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

branches/dist-snap/src/test/compile-fail/issue-7573.rs

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

0 commit comments

Comments
 (0)