Remove die!, raplace invocations with fail! Issue #4524 pt 3
This commit is contained in:
parent
c51ecc3223
commit
4445b38df2
363 changed files with 910 additions and 906 deletions
|
@ -812,7 +812,7 @@ fn mk_struct_fields(fields: ~[@ast::struct_field]) -> ~[field] {
|
|||
do fields.map |field| {
|
||||
let (ident, mutbl) = match field.node.kind {
|
||||
ast::named_field(ident, mutbl, _) => (ident, mutbl),
|
||||
_ => die!(~"[auto_encode] does not support \
|
||||
_ => fail!(~"[auto_encode] does not support \
|
||||
unnamed fields")
|
||||
};
|
||||
|
||||
|
@ -954,9 +954,9 @@ fn mk_enum_ser_body(
|
|||
ast::tuple_variant_kind(args) =>
|
||||
ser_variant(cx, span, variant.node.name, v_idx, args),
|
||||
ast::struct_variant_kind(*) =>
|
||||
die!(~"struct variants unimplemented"),
|
||||
fail!(~"struct variants unimplemented"),
|
||||
ast::enum_variant_kind(*) =>
|
||||
die!(~"enum variants unimplemented"),
|
||||
fail!(~"enum variants unimplemented"),
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -1047,9 +1047,9 @@ fn mk_enum_deser_body(
|
|||
}
|
||||
},
|
||||
ast::struct_variant_kind(*) =>
|
||||
die!(~"struct variants unimplemented"),
|
||||
fail!(~"struct variants unimplemented"),
|
||||
ast::enum_variant_kind(*) =>
|
||||
die!(~"enum variants unimplemented")
|
||||
fail!(~"enum variants unimplemented")
|
||||
};
|
||||
|
||||
let pat = @ast::pat {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue