Skip to content

Commit 32b3d3e

Browse files
committed
tidy
1 parent 13df2ea commit 32b3d3e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/librustc/middle/typeck/check/_match.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,12 @@ pub fn check_pat_variant(pcx: &pat_ctxt, pat: @ast::pat, path: @ast::Path,
120120
let enum_tpt = ty::lookup_item_type(tcx, enm);
121121
instantiate_path(pcx.fcx, path, enum_tpt, pat.span, pat.id,
122122
pcx.block_region);
123-
123+
124124
// check that the type of the value being matched is a subtype
125125
// of the type of the pattern:
126126
let pat_ty = fcx.node_ty(pat.id);
127127
demand::subtype(fcx, pat.span, expected, pat_ty);
128-
128+
129129
// Get the expected types of the arguments.
130130
arg_types = {
131131
let vinfo =
@@ -143,18 +143,18 @@ pub fn check_pat_variant(pcx: &pat_ctxt, pat: @ast::pat, path: @ast::Path,
143143
}
144144
})
145145
};
146-
146+
147147
kind_name = "variant";
148148
}
149149
None => {
150150
let resolved_expected =
151151
fcx.infcx().ty_to_str(fcx.infcx().resolve_type_vars_if_possible(expected));
152152
fcx.infcx().type_error_message_str(pat.span,
153153
|actual| {
154-
fmt!("mismatched types: expected `%s` but found %s",
155-
resolved_expected, actual)},
156-
~"a structure pattern",
157-
None);
154+
fmt!("mismatched types: expected `%s` but found %s",
155+
resolved_expected, actual)},
156+
~"a structure pattern",
157+
None);
158158
fcx.write_error(pat.id);
159159
kind_name = "[error]";
160160
arg_types = (copy subpats).get_or_default(~[]).map(|_|

0 commit comments

Comments
 (0)