Skip to content

Commit a92be2b

Browse files
committed
---
yaml --- r: 16327 b: refs/heads/try c: f4fb0f9 h: refs/heads/master i: 16325: 8af2066 16323: 83ac68e 16319: fe1e7e0 v: v3
1 parent 734c000 commit a92be2b

File tree

3 files changed

+20
-15
lines changed

3 files changed

+20
-15
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5-
refs/heads/try: 3b4cfdeee20eb54d43612fed461729ffa6f6d2ec
5+
refs/heads/try: f4fb0f9eea00c619c2b91f83072306e89549c260
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/src/rustc/middle/typeck/collect.rs

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -369,31 +369,23 @@ fn convert(ccx: @crate_ctxt, it: @ast::item) {
369369
let t_ctor =
370370
ty::mk_fn(
371371
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));
377374
write_ty_to_tcx(tcx, ctor.node.id, t_ctor);
378375
tcx.tcache.insert(local_def(ctor.node.id),
379376
{bounds: tpt.bounds,
380-
rp: ast::rp_none,
377+
rp: rp,
381378
ty: t_ctor});
382379
option::iter(m_dtor) {|dtor|
383380
// Write the dtor type
384381
let t_dtor = ty::mk_fn(
385382
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));
393385
write_ty_to_tcx(tcx, dtor.node.id, t_dtor);
394386
tcx.tcache.insert(local_def(dtor.node.id),
395387
{bounds: tpt.bounds,
396-
rp: ast::rp_none,
388+
rp: rp,
397389
ty: t_dtor});
398390
};
399391
ensure_iface_methods(ccx, it.id);
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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() { }

0 commit comments

Comments
 (0)