Navigation Menu

Skip to content

Commit

Permalink
fix for bug #9110
Browse files Browse the repository at this point in the history
  • Loading branch information
jbclements committed Sep 12, 2013
1 parent b9a8b37 commit f576ed0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc/middle/ty.rs
Expand Up @@ -1757,7 +1757,7 @@ fn type_is_newtype_immediate(cx: ctxt, ty: t) -> bool {
ty_struct(def_id, ref substs) => {
let fields = struct_fields(cx, def_id, substs);
fields.len() == 1 &&
fields[0].ident == token::special_idents::unnamed_field &&
fields[0].ident.name == token::special_idents::unnamed_field.name &&
type_is_immediate(cx, fields[0].mt.ty)
}
_ => false
Expand Down

0 comments on commit f576ed0

Please sign in to comment.