Skip to content

Commit a8892e1

Browse files
committed
---
yaml --- r: 119173 b: refs/heads/dist-snap c: 1a98ec8 h: refs/heads/master i: 119171: 1750129 v: v3
1 parent d7fba61 commit a8892e1

File tree

2 files changed

+1
-23
lines changed

2 files changed

+1
-23
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: 1813e5aa1a03b0596b8de7abd1af31edf5d6098f
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: dcb01ff573b5f4404d2e4ef6700dca63e91f0eb4
9+
refs/heads/dist-snap: 1a98ec83c1a470ef18ee6fa9b2eedc237032d64c
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/src/librustc/middle/typeck/infer/combine.rs

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -373,28 +373,6 @@ pub fn eq_regions<C:Combine>(this: &C, a: ty::Region, b: ty::Region)
373373
})
374374
}
375375

376-
pub fn eq_opt_regions<C:Combine>(
377-
this: &C,
378-
a: Option<ty::Region>,
379-
b: Option<ty::Region>) -> cres<Option<ty::Region>> {
380-
381-
match (a, b) {
382-
(None, None) => Ok(None),
383-
(Some(a), Some(b)) => eq_regions(this, a, b).then(|| Ok(Some(a))),
384-
(_, _) => {
385-
// If these two substitutions are for the same type (and
386-
// they should be), then the type should either
387-
// consistently have a region parameter or not have a
388-
// region parameter.
389-
this.infcx().tcx.sess.bug(
390-
format!("substitution a had opt_region {} and \
391-
b had opt_region {}",
392-
a.inf_str(this.infcx()),
393-
b.inf_str(this.infcx())));
394-
}
395-
}
396-
}
397-
398376
pub fn super_fn_sigs<C:Combine>(this: &C, a: &ty::FnSig, b: &ty::FnSig) -> cres<ty::FnSig> {
399377

400378
fn argvecs<C:Combine>(this: &C, a_args: &[ty::t], b_args: &[ty::t]) -> cres<Vec<ty::t> > {

0 commit comments

Comments
 (0)