提交 3affc6ed 编写于 作者: P Patrick Walton

librustc: Fix merge fallout.

上级 9d011ebf
......@@ -196,13 +196,6 @@ struct LintSpec {
default: deny
}),
("deprecated_mutable_fields",
LintSpec {
lint: deprecated_mutable_fields,
desc: "deprecated mutable fields in structures",
default: deny
}),
("unused_unsafe",
LintSpec {
lint: unused_unsafe,
......
......@@ -818,12 +818,8 @@ fn summarise_struct(cx: @ext_ctxt, span: span,
let mut unnamed_count = 0;
for struct_def.fields.each |field| {
match field.node.kind {
ast::named_field(ident, _, _) => {
named_idents.push(ident)
}
ast::unnamed_field => {
unnamed_count += 1;
}
ast::named_field(ident, _) => named_idents.push(ident),
ast::unnamed_field => unnamed_count += 1,
}
}
......
......@@ -281,8 +281,8 @@ pub fn create_struct_pattern(cx: @ext_ctxt,
for struct_def.fields.eachi |i, struct_field| {
let opt_id = match struct_field.node.kind {
ast::named_field(ident, _, _) if (struct_type == Unknown ||
struct_type == Record) => {
ast::named_field(ident, _) if (struct_type == Unknown ||
struct_type == Record) => {
struct_type = Record;
Some(ident)
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册