Skip to content

Commit 5bf2622

Browse files
committed
---
yaml --- r: 110082 b: refs/heads/auto c: 1a98ec8 h: refs/heads/master v: v3
1 parent bc121eb commit 5bf2622

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
@@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1313
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1414
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1515
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16-
refs/heads/auto: dcb01ff573b5f4404d2e4ef6700dca63e91f0eb4
16+
refs/heads/auto: 1a98ec83c1a470ef18ee6fa9b2eedc237032d64c
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/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)