Skip to content

Commit f576ed0

Browse files
committed
fix for bug #9110
1 parent b9a8b37 commit f576ed0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/middle/ty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1757,7 +1757,7 @@ fn type_is_newtype_immediate(cx: ctxt, ty: t) -> bool {
17571757
ty_struct(def_id, ref substs) => {
17581758
let fields = struct_fields(cx, def_id, substs);
17591759
fields.len() == 1 &&
1760-
fields[0].ident == token::special_idents::unnamed_field &&
1760+
fields[0].ident.name == token::special_idents::unnamed_field.name &&
17611761
type_is_immediate(cx, fields[0].mt.ty)
17621762
}
17631763
_ => false

0 commit comments

Comments
 (0)