Skip to content

Commit 9623b9e

Browse files
committed
---
yaml --- r: 109848 b: refs/heads/master c: d03e647 h: refs/heads/master v: v3
1 parent 4961afb commit 9623b9e

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 2013488bee4a8aa61c8fda0006cfda698732f8f4
2+
refs/heads/master: d03e647a0aecf9ec68948b37b934286805ee76af
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: c7fac4471201977fdb1c0c0a26c87287e12dc644
55
refs/heads/try: f64fdf524a434f0e5cd0bc91d09c144723f3c90d

trunk/src/librustc/middle/const_eval.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -521,11 +521,3 @@ pub fn compare_const_vals(a: &const_val, b: &const_val) -> Option<int> {
521521
pub fn compare_lit_exprs(tcx: &ty::ctxt, a: &Expr, b: &Expr) -> Option<int> {
522522
compare_const_vals(&eval_const_expr(tcx, a), &eval_const_expr(tcx, b))
523523
}
524-
525-
pub fn lit_expr_eq(tcx: &ty::ctxt, a: &Expr, b: &Expr) -> Option<bool> {
526-
compare_lit_exprs(tcx, a, b).map(|val| val == 0)
527-
}
528-
529-
pub fn lit_eq(a: &Lit, b: &Lit) -> Option<bool> {
530-
compare_const_vals(&lit_to_const(a), &lit_to_const(b)).map(|val| val == 0)
531-
}

0 commit comments

Comments
 (0)