File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
branches/tmp/src/librustc/metadata Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
25
25
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
26
26
refs/heads/beta: 83dee3dfbb452a7558193f3ce171b3c60bf4a499
27
27
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
28
- refs/heads/tmp: 7d32533eabb5321a0b2690bf16d07077b4f91562
28
+ refs/heads/tmp: 62cd3cc46b533c3d1b6c94cc1d13a3be8a8c23ab
29
29
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
30
30
refs/tags/homu-tmp: e58601ab085591c71a27ae82137fc313222c2270
31
31
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ use middle::def;
30
30
use middle:: lang_items;
31
31
use middle:: subst;
32
32
use middle:: ty:: { ImplContainer , TraitContainer } ;
33
- use middle:: ty:: { self , Ty } ;
33
+ use middle:: ty:: { self , RegionEscape , Ty } ;
34
34
use util:: nodemap:: FnvHashMap ;
35
35
36
36
use std:: cell:: { Cell , RefCell } ;
@@ -477,7 +477,13 @@ pub fn get_adt_def<'tcx>(intr: &IdentInterner,
477
477
variant. name,
478
478
ctor_ty) ;
479
479
let field_tys = match ctor_ty. sty {
480
- ty:: TyBareFn ( _, ref f) => & f. sig . skip_binder ( ) . inputs ,
480
+ ty:: TyBareFn ( _, & ty:: BareFnTy { sig : ty:: Binder ( ty:: FnSig {
481
+ ref inputs, ..
482
+ } ) , ..} ) => {
483
+ // tuple-struct constructors don't have escaping regions
484
+ assert ! ( !inputs. has_escaping_regions( ) ) ;
485
+ inputs
486
+ } ,
481
487
_ => tcx. sess . bug ( "tuple-variant ctor is not an ADT" )
482
488
} ;
483
489
for ( field, & ty) in variant. fields . iter ( ) . zip ( field_tys. iter ( ) ) {
You can’t perform that action at this time.
0 commit comments