Skip to content

Commit 04e7af6

Browse files
committed
---
yaml --- r: 51990 b: refs/heads/dist-snap c: 10e8e3e h: refs/heads/master v: v3
1 parent d368139 commit 04e7af6

File tree

5 files changed

+2
-23
lines changed

5 files changed

+2
-23
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
99
refs/heads/incoming: 44d4d6de762f3f9aae1fedcf454c66b79b3ad58d
10-
refs/heads/dist-snap: 65839fa622c623393893b5610b6d3b4151abe233
10+
refs/heads/dist-snap: 10e8e3e2860bc78cb19158028404a8938f62b93c
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1313
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/src/librustc/middle/ty.rs

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,10 @@ export kind_is_durable;
144144
export meta_kind, kind_lteq, type_kind, type_kind_ext;
145145
export operators;
146146
export type_err, terr_vstore_kind;
147-
export terr_integer_as_char, terr_mismatch, terr_onceness_mismatch;
147+
export terr_mismatch, terr_onceness_mismatch;
148148
export type_err_to_str, note_and_explain_type_err;
149149
export expected_found;
150150
export type_needs_drop;
151-
export type_is_char;
152151
export type_is_empty;
153152
export type_is_integral;
154153
export type_is_numeric;
@@ -697,7 +696,6 @@ enum type_err {
697696
terr_in_field(@type_err, ast::ident),
698697
terr_sorts(expected_found<t>),
699698
terr_self_substs,
700-
terr_integer_as_char,
701699
terr_no_integral_type,
702700
terr_no_floating_point_type,
703701
}
@@ -2522,13 +2520,6 @@ fn type_is_integral(ty: t) -> bool {
25222520
}
25232521
}
25242522
2525-
fn type_is_char(ty: t) -> bool {
2526-
match get(ty).sty {
2527-
ty_int(ty_char) => true,
2528-
_ => false
2529-
}
2530-
}
2531-
25322523
fn type_is_fp(ty: t) -> bool {
25332524
match get(ty).sty {
25342525
ty_infer(FloatVar(_)) | ty_float(_) => true,
@@ -3498,10 +3489,6 @@ fn type_err_to_str(cx: ctxt, err: &type_err) -> ~str {
34983489
~"couldn't determine an appropriate integral type for integer \
34993490
literal"
35003491
}
3501-
terr_integer_as_char => {
3502-
~"integer literals can't be inferred to char type \
3503-
(try an explicit cast)"
3504-
}
35053492
terr_no_floating_point_type => {
35063493
~"couldn't determine an appropriate floating point type for \
35073494
floating point literal"

branches/dist-snap/src/librustc/middle/typeck/infer/unify.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -362,10 +362,6 @@ impl infer_ctxt {
362362
}
363363

364364
fn int_var_sub_t(a_id: ty::IntVid, b: ty::t) -> ures {
365-
if ty::type_is_char(b) {
366-
return Err(ty::terr_integer_as_char);
367-
}
368-
369365
assert ty::type_is_integral(b);
370366

371367
let vb = &self.int_var_bindings;

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

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

branches/dist-snap/src/test/run-pass/trait-composition-trivial.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// xfail-fast - ICE
1211
trait Foo {
1312
fn foo();
1413
}

0 commit comments

Comments
 (0)