Skip to content

Commit 5efe764

Browse files
committed
---
yaml --- r: 60127 b: refs/heads/master c: 3affc6e h: refs/heads/master i: 60125: d4a58ca 60123: 18f877e 60119: aa345c5 60111: 49c66fe 60095: 973e1d0 v: v3
1 parent 727f024 commit 5efe764

File tree

4 files changed

+5
-16
lines changed

4 files changed

+5
-16
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: 9d011ebf67272879b9883013f7796b7639ecfda3
2+
refs/heads/master: 3affc6ed4071a183da81bcc2048fff82d3e35e81
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 2d28d645422c1617be58c8ca7ad9a457264ca850
55
refs/heads/try: c50a9d5b664478e533ba1d1d353213d70c8ad589

trunk/src/librustc/middle/lint.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -196,13 +196,6 @@ static lint_table: &'static [(&'static str, LintSpec)] = &[
196196
default: deny
197197
}),
198198

199-
("deprecated_mutable_fields",
200-
LintSpec {
201-
lint: deprecated_mutable_fields,
202-
desc: "deprecated mutable fields in structures",
203-
default: deny
204-
}),
205-
206199
("unused_unsafe",
207200
LintSpec {
208201
lint: unused_unsafe,

trunk/src/libsyntax/ext/deriving/generic.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -818,12 +818,8 @@ fn summarise_struct(cx: @ext_ctxt, span: span,
818818
let mut unnamed_count = 0;
819819
for struct_def.fields.each |field| {
820820
match field.node.kind {
821-
ast::named_field(ident, _, _) => {
822-
named_idents.push(ident)
823-
}
824-
ast::unnamed_field => {
825-
unnamed_count += 1;
826-
}
821+
ast::named_field(ident, _) => named_idents.push(ident),
822+
ast::unnamed_field => unnamed_count += 1,
827823
}
828824
}
829825

trunk/src/libsyntax/ext/deriving/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,8 @@ pub fn create_struct_pattern(cx: @ext_ctxt,
281281

282282
for struct_def.fields.eachi |i, struct_field| {
283283
let opt_id = match struct_field.node.kind {
284-
ast::named_field(ident, _, _) if (struct_type == Unknown ||
285-
struct_type == Record) => {
284+
ast::named_field(ident, _) if (struct_type == Unknown ||
285+
struct_type == Record) => {
286286
struct_type = Record;
287287
Some(ident)
288288
}

0 commit comments

Comments
 (0)