Skip to content

Commit c960889

Browse files
committed
---
yaml --- r: 42287 b: refs/heads/master c: 31f6534 h: refs/heads/master i: 42285: 8c0671d 42283: c16e28a 42279: b345f70 42271: 023b127 v: v3
1 parent fab528c commit c960889

File tree

4 files changed

+24
-27
lines changed

4 files changed

+24
-27
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 6d5428cb4ee9117f16d3a5c7f36def4c60b364ed
2+
refs/heads/master: 31f6534952038a24045b53a3c52f750e1f25cc23
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 2f46b763da2c098913884f101b6d71d69af41b49
55
refs/heads/try: 3d5418789064fdb463e872a4e651af1c628a3650

trunk/src/librustc/middle/ty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2435,7 +2435,7 @@ pub fn type_structurally_contains_uniques(cx: ctxt, ty: t) -> bool {
24352435
24362436
pub fn type_is_integral(ty: t) -> bool {
24372437
match get(ty).sty {
2438-
ty_infer(IntVar(_)) | ty_int(_) | ty_uint(_) => true,
2438+
ty_infer(IntVar(_)) | ty_int(_) | ty_uint(_) | ty_bool => true,
24392439
_ => false
24402440
}
24412441
}

trunk/src/libsyntax/ast_util.rs

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -298,38 +298,38 @@ pub pure fn struct_field_visibility(field: ast::struct_field) -> visibility {
298298
}
299299

300300
pub trait inlined_item_utils {
301-
fn ident() -> ident;
302-
fn id() -> ast::node_id;
303-
fn accept<E>(e: E, v: visit::vt<E>);
301+
fn ident(&self) -> ident;
302+
fn id(&self) -> ast::node_id;
303+
fn accept<E>(&self, e: E, v: visit::vt<E>);
304304
}
305305

306306
pub impl inlined_item: inlined_item_utils {
307-
fn ident() -> ident {
308-
match self {
309-
ii_item(i) => /* FIXME (#2543) */ copy i.ident,
310-
ii_foreign(i) => /* FIXME (#2543) */ copy i.ident,
311-
ii_method(_, m) => /* FIXME (#2543) */ copy m.ident,
312-
ii_dtor(_, nm, _, _) => /* FIXME (#2543) */ copy nm
307+
fn ident(&self) -> ident {
308+
match *self {
309+
ii_item(i) => /* FIXME (#2543) */ copy i.ident,
310+
ii_foreign(i) => /* FIXME (#2543) */ copy i.ident,
311+
ii_method(_, m) => /* FIXME (#2543) */ copy m.ident,
312+
ii_dtor(_, nm, _, _) => /* FIXME (#2543) */ copy nm
313313
}
314314
}
315315

316-
fn id() -> ast::node_id {
317-
match self {
318-
ii_item(i) => i.id,
319-
ii_foreign(i) => i.id,
320-
ii_method(_, m) => m.id,
321-
ii_dtor(ref dtor, _, _, _) => (*dtor).node.id
316+
fn id(&self) -> ast::node_id {
317+
match *self {
318+
ii_item(i) => i.id,
319+
ii_foreign(i) => i.id,
320+
ii_method(_, m) => m.id,
321+
ii_dtor(ref dtor, _, _, _) => (*dtor).node.id
322322
}
323323
}
324324

325-
fn accept<E>(e: E, v: visit::vt<E>) {
326-
match self {
327-
ii_item(i) => (v.visit_item)(i, e, v),
328-
ii_foreign(i) => (v.visit_foreign_item)(i, e, v),
329-
ii_method(_, m) => visit::visit_method_helper(m, e, v),
330-
ii_dtor(ref dtor, _, tps, parent_id) => {
325+
fn accept<E>(&self, e: E, v: visit::vt<E>) {
326+
match *self {
327+
ii_item(i) => (v.visit_item)(i, e, v),
328+
ii_foreign(i) => (v.visit_foreign_item)(i, e, v),
329+
ii_method(_, m) => visit::visit_method_helper(m, e, v),
330+
ii_dtor(ref dtor, _, tps, parent_id) => {
331331
visit::visit_struct_dtor_helper((*dtor), tps, parent_id, e, v);
332-
}
332+
}
333333
}
334334
}
335335
}

trunk/src/test/compile-fail/unop-neg-bool.rs

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

0 commit comments

Comments
 (0)