Skip to content

Commit d571fc3

Browse files
committed
---
yaml --- r: 44655 b: refs/heads/master c: ad9c54c h: refs/heads/master i: 44653: 2928e33 44651: bb3e5da 44647: 80b1cd2 44639: da710e9 v: v3
1 parent e88d37d commit d571fc3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
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: f823d83718cf84cd9459b68726debd5463e31d97
2+
refs/heads/master: ad9c54c631a39bbaf926021f18d683feba49fc09
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a6d9689399d091c3265f00434a69c551a61c28dc
55
refs/heads/try: ef355f6332f83371e4acf04fc4eb940ab41d78d3

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ pub fn check_pat_variant(pcx: pat_ctxt, pat: @ast::pat, path: @ast::path,
131131
// Assign the pattern the type of the struct.
132132
let ctor_tpt = ty::lookup_item_type(tcx, s_def_id);
133133
let struct_tpt = if ty::is_fn_ty(ctor_tpt.ty) {
134-
{ty: ty::ty_fn_ret(ctor_tpt.ty), ..ctor_tpt}
134+
ty::ty_param_bounds_and_ty {ty: ty::ty_fn_ret(ctor_tpt.ty),
135+
..ctor_tpt}
135136
} else {
136137
ctor_tpt
137138
};

0 commit comments

Comments
 (0)