Skip to content

Commit 523bb4e

Browse files
committed
---
yaml --- r: 161288 b: refs/heads/snap-stage3 c: 21fe017 h: refs/heads/master v: v3
1 parent 77f19f4 commit 523bb4e

File tree

2 files changed

+5
-4
lines changed
  • branches/snap-stage3/src/librustc/middle/borrowck

2 files changed

+5
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 4eb72d268f337a8f117c86a2ac1b98336cab9e9d
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 09d67fd777be1a0ab751007e6787add2b927909f
4+
refs/heads/snap-stage3: 21fe017ab0114160c27ead73cb8515074aae0e1d
55
refs/heads/try: 0f0d21c1eb5c7be04d323e0b06faf252ad790af6
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d

branches/snap-stage3/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)