librustc: Fix merge fallout.
This commit is contained in:
parent
9d011ebf67
commit
3affc6ed40
3 changed files with 4 additions and 15 deletions
|
@ -196,13 +196,6 @@ static lint_table: &'static [(&'static str, LintSpec)] = &[
|
||||||
default: deny
|
default: deny
|
||||||
}),
|
}),
|
||||||
|
|
||||||
("deprecated_mutable_fields",
|
|
||||||
LintSpec {
|
|
||||||
lint: deprecated_mutable_fields,
|
|
||||||
desc: "deprecated mutable fields in structures",
|
|
||||||
default: deny
|
|
||||||
}),
|
|
||||||
|
|
||||||
("unused_unsafe",
|
("unused_unsafe",
|
||||||
LintSpec {
|
LintSpec {
|
||||||
lint: unused_unsafe,
|
lint: unused_unsafe,
|
||||||
|
|
|
@ -818,12 +818,8 @@ fn summarise_struct(cx: @ext_ctxt, span: span,
|
||||||
let mut unnamed_count = 0;
|
let mut unnamed_count = 0;
|
||||||
for struct_def.fields.each |field| {
|
for struct_def.fields.each |field| {
|
||||||
match field.node.kind {
|
match field.node.kind {
|
||||||
ast::named_field(ident, _, _) => {
|
ast::named_field(ident, _) => named_idents.push(ident),
|
||||||
named_idents.push(ident)
|
ast::unnamed_field => unnamed_count += 1,
|
||||||
}
|
|
||||||
ast::unnamed_field => {
|
|
||||||
unnamed_count += 1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -281,7 +281,7 @@ pub fn create_struct_pattern(cx: @ext_ctxt,
|
||||||
|
|
||||||
for struct_def.fields.eachi |i, struct_field| {
|
for struct_def.fields.eachi |i, struct_field| {
|
||||||
let opt_id = match struct_field.node.kind {
|
let opt_id = match struct_field.node.kind {
|
||||||
ast::named_field(ident, _, _) if (struct_type == Unknown ||
|
ast::named_field(ident, _) if (struct_type == Unknown ||
|
||||||
struct_type == Record) => {
|
struct_type == Record) => {
|
||||||
struct_type = Record;
|
struct_type = Record;
|
||||||
Some(ident)
|
Some(ident)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue