Skip to content

Commit 0b29a3f

Browse files
committed
---
yaml --- r: 106029 b: refs/heads/auto c: 0ba5f1b h: refs/heads/master i: 106027: bca4233 v: v3
1 parent d26bc7f commit 0b29a3f

File tree

4 files changed

+72
-72
lines changed

4 files changed

+72
-72
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1313
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1414
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1515
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16-
refs/heads/auto: 9b1fee898f03b50113549b74da4c6d19eca4728e
16+
refs/heads/auto: 0ba5f1b8f42b25e213b67305cdbea798abec7a81
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/src/librustc/metadata/encoder.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ fn encode_trait_ref(ebml_w: &mut writer::Encoder,
129129
ecx: &EncodeContext,
130130
trait_ref: &ty::TraitRef,
131131
tag: uint) {
132-
let ty_str_ctxt = @tyencode::ctxt {
132+
let ty_str_ctxt = &tyencode::ctxt {
133133
diag: ecx.diag,
134134
ds: def_to_str,
135135
tcx: ecx.tcx,
@@ -165,7 +165,7 @@ fn encode_ty_type_param_defs(ebml_w: &mut writer::Encoder,
165165
ecx: &EncodeContext,
166166
params: &[ty::TypeParameterDef],
167167
tag: uint) {
168-
let ty_str_ctxt = @tyencode::ctxt {
168+
let ty_str_ctxt = &tyencode::ctxt {
169169
diag: ecx.diag,
170170
ds: def_to_str,
171171
tcx: ecx.tcx,
@@ -222,7 +222,7 @@ fn encode_variant_id(ebml_w: &mut writer::Encoder, vid: DefId) {
222222
pub fn write_type(ecx: &EncodeContext,
223223
ebml_w: &mut writer::Encoder,
224224
typ: ty::t) {
225-
let ty_str_ctxt = @tyencode::ctxt {
225+
let ty_str_ctxt = &tyencode::ctxt {
226226
diag: ecx.diag,
227227
ds: def_to_str,
228228
tcx: ecx.tcx,
@@ -234,7 +234,7 @@ pub fn write_type(ecx: &EncodeContext,
234234
pub fn write_vstore(ecx: &EncodeContext,
235235
ebml_w: &mut writer::Encoder,
236236
vstore: ty::vstore) {
237-
let ty_str_ctxt = @tyencode::ctxt {
237+
let ty_str_ctxt = &tyencode::ctxt {
238238
diag: ecx.diag,
239239
ds: def_to_str,
240240
tcx: ecx.tcx,
@@ -256,7 +256,7 @@ fn encode_method_fty(ecx: &EncodeContext,
256256
typ: &ty::BareFnTy) {
257257
ebml_w.start_tag(tag_item_method_fty);
258258

259-
let ty_str_ctxt = @tyencode::ctxt {
259+
let ty_str_ctxt = &tyencode::ctxt {
260260
diag: ecx.diag,
261261
ds: def_to_str,
262262
tcx: ecx.tcx,
@@ -1900,7 +1900,7 @@ fn encode_metadata_inner(wr: &mut MemWriter, parms: EncodeParams, krate: &Crate)
19001900

19011901
// Get the encoded string for a type
19021902
pub fn encoded_ty(tcx: &ty::ctxt, t: ty::t) -> ~str {
1903-
let cx = @tyencode::ctxt {
1903+
let cx = &tyencode::ctxt {
19041904
diag: tcx.diag,
19051905
ds: def_to_str,
19061906
tcx: tcx,

branches/auto/src/librustc/metadata/tyencode.rs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ fn mywrite(w: &mut MemWriter, fmt: &fmt::Arguments) {
6262
fmt::write(&mut *w as &mut io::Writer, fmt);
6363
}
6464

65-
pub fn enc_ty(w: &mut MemWriter, cx: @ctxt, t: ty::t) {
65+
pub fn enc_ty(w: &mut MemWriter, cx: &ctxt, t: ty::t) {
6666
match cx.abbrevs {
6767
ac_no_abbrevs => {
6868
let result_str_opt;
@@ -131,7 +131,7 @@ fn enc_mutability(w: &mut MemWriter, mt: ast::Mutability) {
131131
}
132132
}
133133

134-
fn enc_mt(w: &mut MemWriter, cx: @ctxt, mt: ty::mt) {
134+
fn enc_mt(w: &mut MemWriter, cx: &ctxt, mt: ty::mt) {
135135
enc_mutability(w, mt.mutbl);
136136
enc_ty(w, cx, mt.ty);
137137
}
@@ -146,15 +146,15 @@ fn enc_opt<T>(w: &mut MemWriter, t: Option<T>, enc_f: |&mut MemWriter, T|) {
146146
}
147147
}
148148

149-
pub fn enc_substs(w: &mut MemWriter, cx: @ctxt, substs: &ty::substs) {
149+
pub fn enc_substs(w: &mut MemWriter, cx: &ctxt, substs: &ty::substs) {
150150
enc_region_substs(w, cx, &substs.regions);
151151
enc_opt(w, substs.self_ty, |w, t| enc_ty(w, cx, t));
152152
mywrite!(w, "[");
153153
for t in substs.tps.iter() { enc_ty(w, cx, *t); }
154154
mywrite!(w, "]");
155155
}
156156

157-
fn enc_region_substs(w: &mut MemWriter, cx: @ctxt, substs: &ty::RegionSubsts) {
157+
fn enc_region_substs(w: &mut MemWriter, cx: &ctxt, substs: &ty::RegionSubsts) {
158158
match *substs {
159159
ty::ErasedRegions => {
160160
mywrite!(w, "e");
@@ -169,7 +169,7 @@ fn enc_region_substs(w: &mut MemWriter, cx: @ctxt, substs: &ty::RegionSubsts) {
169169
}
170170
}
171171

172-
fn enc_region(w: &mut MemWriter, cx: @ctxt, r: ty::Region) {
172+
fn enc_region(w: &mut MemWriter, cx: &ctxt, r: ty::Region) {
173173
match r {
174174
ty::ReLateBound(id, br) => {
175175
mywrite!(w, "b[{}|", id);
@@ -203,7 +203,7 @@ fn enc_region(w: &mut MemWriter, cx: @ctxt, r: ty::Region) {
203203
}
204204
}
205205

206-
fn enc_bound_region(w: &mut MemWriter, cx: @ctxt, br: ty::BoundRegion) {
206+
fn enc_bound_region(w: &mut MemWriter, cx: &ctxt, br: ty::BoundRegion) {
207207
match br {
208208
ty::BrAnon(idx) => {
209209
mywrite!(w, "a{}|", idx);
@@ -219,7 +219,7 @@ fn enc_bound_region(w: &mut MemWriter, cx: @ctxt, br: ty::BoundRegion) {
219219
}
220220
}
221221

222-
pub fn enc_vstore(w: &mut MemWriter, cx: @ctxt, v: ty::vstore) {
222+
pub fn enc_vstore(w: &mut MemWriter, cx: &ctxt, v: ty::vstore) {
223223
mywrite!(w, "/");
224224
match v {
225225
ty::vstore_fixed(u) => mywrite!(w, "{}|", u),
@@ -231,12 +231,12 @@ pub fn enc_vstore(w: &mut MemWriter, cx: @ctxt, v: ty::vstore) {
231231
}
232232
}
233233

234-
pub fn enc_trait_ref(w: &mut MemWriter, cx: @ctxt, s: &ty::TraitRef) {
234+
pub fn enc_trait_ref(w: &mut MemWriter, cx: &ctxt, s: &ty::TraitRef) {
235235
mywrite!(w, "{}|", (cx.ds)(s.def_id));
236236
enc_substs(w, cx, &s.substs);
237237
}
238238

239-
pub fn enc_trait_store(w: &mut MemWriter, cx: @ctxt, s: ty::TraitStore) {
239+
pub fn enc_trait_store(w: &mut MemWriter, cx: &ctxt, s: ty::TraitStore) {
240240
match s {
241241
ty::UniqTraitStore => mywrite!(w, "~"),
242242
ty::RegionTraitStore(re) => {
@@ -246,7 +246,7 @@ pub fn enc_trait_store(w: &mut MemWriter, cx: @ctxt, s: ty::TraitStore) {
246246
}
247247
}
248248

249-
fn enc_sty(w: &mut MemWriter, cx: @ctxt, st: &ty::sty) {
249+
fn enc_sty(w: &mut MemWriter, cx: &ctxt, st: &ty::sty) {
250250
match *st {
251251
ty::ty_nil => mywrite!(w, "n"),
252252
ty::ty_bot => mywrite!(w, "z"),
@@ -372,13 +372,13 @@ fn enc_onceness(w: &mut MemWriter, o: Onceness) {
372372
}
373373
}
374374

375-
pub fn enc_bare_fn_ty(w: &mut MemWriter, cx: @ctxt, ft: &ty::BareFnTy) {
375+
pub fn enc_bare_fn_ty(w: &mut MemWriter, cx: &ctxt, ft: &ty::BareFnTy) {
376376
enc_purity(w, ft.purity);
377377
enc_abi_set(w, ft.abis);
378378
enc_fn_sig(w, cx, &ft.sig);
379379
}
380380

381-
fn enc_closure_ty(w: &mut MemWriter, cx: @ctxt, ft: &ty::ClosureTy) {
381+
fn enc_closure_ty(w: &mut MemWriter, cx: &ctxt, ft: &ty::ClosureTy) {
382382
enc_sigil(w, ft.sigil);
383383
enc_purity(w, ft.purity);
384384
enc_onceness(w, ft.onceness);
@@ -389,7 +389,7 @@ fn enc_closure_ty(w: &mut MemWriter, cx: @ctxt, ft: &ty::ClosureTy) {
389389
enc_fn_sig(w, cx, &ft.sig);
390390
}
391391

392-
fn enc_fn_sig(w: &mut MemWriter, cx: @ctxt, fsig: &ty::FnSig) {
392+
fn enc_fn_sig(w: &mut MemWriter, cx: &ctxt, fsig: &ty::FnSig) {
393393
mywrite!(w, "[{}|", fsig.binder_id);
394394
for ty in fsig.inputs.iter() {
395395
enc_ty(w, cx, *ty);
@@ -403,7 +403,7 @@ fn enc_fn_sig(w: &mut MemWriter, cx: @ctxt, fsig: &ty::FnSig) {
403403
enc_ty(w, cx, fsig.output);
404404
}
405405

406-
fn enc_bounds(w: &mut MemWriter, cx: @ctxt, bs: &ty::ParamBounds) {
406+
fn enc_bounds(w: &mut MemWriter, cx: &ctxt, bs: &ty::ParamBounds) {
407407
for bound in bs.builtin_bounds.iter() {
408408
match bound {
409409
ty::BoundSend => mywrite!(w, "S"),
@@ -422,7 +422,7 @@ fn enc_bounds(w: &mut MemWriter, cx: @ctxt, bs: &ty::ParamBounds) {
422422
mywrite!(w, ".");
423423
}
424424

425-
pub fn enc_type_param_def(w: &mut MemWriter, cx: @ctxt, v: &ty::TypeParameterDef) {
425+
pub fn enc_type_param_def(w: &mut MemWriter, cx: &ctxt, v: &ty::TypeParameterDef) {
426426
mywrite!(w, "{}:{}|", token::get_ident(v.ident), (cx.ds)(v.def_id));
427427
enc_bounds(w, cx, v.bounds);
428428
enc_opt(w, v.default, |w, t| enc_ty(w, cx, t));

0 commit comments

Comments
 (0)