Skip to content

Commit a628f7f

Browse files
committed
make ccx/tcx/sess methods on bcx pure
1 parent 5a04069 commit a628f7f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/rustc/middle/trans/common.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -418,9 +418,9 @@ fn block_parent(cx: block) -> block {
418418
// Accessors
419419

420420
impl bcx_cxs for block {
421-
fn ccx() -> @crate_ctxt { self.fcx.ccx }
422-
fn tcx() -> ty::ctxt { self.fcx.ccx.tcx }
423-
fn sess() -> session { self.fcx.ccx.sess }
421+
pure fn ccx() -> @crate_ctxt { self.fcx.ccx }
422+
pure fn tcx() -> ty::ctxt { self.fcx.ccx.tcx }
423+
pure fn sess() -> session { self.fcx.ccx.sess }
424424

425425
fn val_str(val: ValueRef) -> str {
426426
val_str(self.ccx().tn, val)

0 commit comments

Comments
 (0)