File tree Expand file tree Collapse file tree 3 files changed +20
-15
lines changed Expand file tree Collapse file tree 3 files changed +20
-15
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5
- refs/heads/try: 3b4cfdeee20eb54d43612fed461729ffa6f6d2ec
5
+ refs/heads/try: f4fb0f9eea00c619c2b91f83072306e89549c260
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
Original file line number Diff line number Diff line change @@ -369,31 +369,23 @@ fn convert(ccx: @crate_ctxt, it: @ast::item) {
369
369
let t_ctor =
370
370
ty:: mk_fn(
371
371
tcx,
372
- ty_of_fn_decl( ccx,
373
- empty_rscope,
374
- ast:: proto_any,
375
- ctor. node. dec,
376
- none) ) ;
372
+ ty_of_fn_decl( ccx, type_rscope( rp) , ast:: proto_any,
373
+ ctor. node. dec, none) ) ;
377
374
write_ty_to_tcx( tcx, ctor. node. id, t_ctor) ;
378
375
tcx. tcache. insert ( local_def( ctor. node. id) ,
379
376
{ bounds : tpt. bounds,
380
- rp : ast :: rp_none ,
377
+ rp : rp ,
381
378
ty : t_ctor} ) ;
382
379
option:: iter( m_dtor) { |dtor|
383
380
// Write the dtor type
384
381
let t_dtor = ty:: mk_fn(
385
382
tcx,
386
- // not sure about empty_rscope
387
- // FIXME
388
- ty_of_fn_decl( ccx,
389
- empty_rscope,
390
- ast:: proto_any,
391
- ast_util:: dtor_dec( ) ,
392
- none) ) ;
383
+ ty_of_fn_decl( ccx, type_rscope( rp) , ast:: proto_any,
384
+ ast_util:: dtor_dec( ) , none) ) ;
393
385
write_ty_to_tcx( tcx, dtor. node. id, t_dtor) ;
394
386
tcx. tcache. insert( local_def( dtor. node. id) ,
395
387
{ bounds: tpt. bounds,
396
- rp: ast :: rp_none ,
388
+ rp: rp ,
397
389
ty: t_dtor} ) ;
398
390
} ;
399
391
ensure_iface_methods( ccx, it. id) ;
Original file line number Diff line number Diff line change
1
+ class font/& {
2
+ let fontbuf: & self . [ u8 ] ;
3
+
4
+ new ( fontbuf: & self . [ u8] ) {
5
+ self . fontbuf = fontbuf;
6
+ }
7
+
8
+ fn buf ( ) -> & self . [ u8 ] {
9
+ self . fontbuf
10
+ }
11
+ }
12
+
13
+ fn main ( ) { }
You can’t perform that action at this time.
0 commit comments