Skip to content

Commit 63db4da

Browse files
committed
---
yaml --- r: 160662 b: refs/heads/master c: 21fe017 h: refs/heads/master v: v3
1 parent 5708b02 commit 63db4da

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
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: 09d67fd777be1a0ab751007e6787add2b927909f
2+
refs/heads/master: 21fe017ab0114160c27ead73cb8515074aae0e1d
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: c9f6d696420107f82304b992cf623b806995fe18
55
refs/heads/try: 225de0d60f8ca8dcc62ab2fd8818ebbda4b58cfe

trunk/src/librustc/middle/borrowck/mod.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -386,10 +386,11 @@ impl<'tcx> LoanPath<'tcx> {
386386
(&LpExtend(ref base, a, LpInterior(id)),
387387
&LpExtend(ref base2, _, LpInterior(id2))) => {
388388
if id == id2 {
389-
assert!(self.ty == other.ty);
390389
base.common(&**base2).map(|x| {
391390
let xd = x.depth();
392391
if base.depth() == xd && base2.depth() == xd {
392+
assert_eq!(base.ty, base2.ty);
393+
assert_eq!(self.ty, other.ty);
393394
LoanPath {
394395
kind: LpExtend(Rc::new(x), a, LpInterior(id)),
395396
ty: self.ty,
@@ -406,15 +407,15 @@ impl<'tcx> LoanPath<'tcx> {
406407
(_, &LpExtend(ref other, _, LpDeref(_))) => self.common(&**other),
407408
(&LpVar(id), &LpVar(id2)) => {
408409
if id == id2 {
409-
assert!(self.ty == other.ty);
410+
assert_eq!(self.ty, other.ty);
410411
Some(LoanPath { kind: LpVar(id), ty: self.ty })
411412
} else {
412413
None
413414
}
414415
}
415416
(&LpUpvar(id), &LpUpvar(id2)) => {
416417
if id == id2 {
417-
assert!(self.ty == other.ty);
418+
assert_eq!(self.ty, other.ty);
418419
Some(LoanPath { kind: LpUpvar(id), ty: self.ty })
419420
} else {
420421
None

0 commit comments

Comments
 (0)