Skip to content

Commit 195a45f

Browse files
committed
---
yaml --- r: 7942 b: refs/heads/snap-stage3 c: 45c1dfe h: refs/heads/master v: v3
1 parent 4f1aa7a commit 195a45f

File tree

4 files changed

+401
-17
lines changed

4 files changed

+401
-17
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
refs/heads/master: 2898dcc5d97da9427ac367542382b6239d9c0bbf
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: f7d756fcac7eeadc9050295ca6b0f45d8a74da69
4+
refs/heads/snap-stage3: 45c1dfe5b318dac6641dee439d6498209cae455a
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/snap-stage3/src/comp/middle/tstate/pre_post_conditions.rs

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -41,22 +41,7 @@ fn find_pre_post_method(ccx: crate_ctxt, m: @method) {
4141
fn find_pre_post_item(ccx: crate_ctxt, i: item) {
4242
alt i.node {
4343
item_const(_, e) {
44-
// make a fake fcx
45-
let v: @mutable [node_id] = @mutable [];
46-
let fake_fcx =
47-
{
48-
// just bogus
49-
enclosing:
50-
{constrs: new_def_hash::<constraint>(),
51-
num_constraints: 0u,
52-
cf: return_val,
53-
i_return: ninit(0, ""),
54-
i_diverge: ninit(0, ""),
55-
used_vars: v},
56-
id: 0,
57-
name: "",
58-
ccx: ccx};
59-
find_pre_post_expr(fake_fcx, e);
44+
// do nothing -- item_consts don't refer to local vars
6045
}
6146
item_fn(_, _, body) {
6247
assert (ccx.fm.contains_key(i.id));

0 commit comments

Comments
 (0)