Skip to content

Commit d1f50e2

Browse files
committed
---
yaml --- r: 181858 b: refs/heads/auto c: df92fe3 h: refs/heads/master v: v3
1 parent d85b317 commit d1f50e2

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1010
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1111
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1212
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
13-
refs/heads/auto: dfc5c0f1e8799f47f9033bdcc8a7cd8a217620a5
13+
refs/heads/auto: df92fe3c964492a22a2c81896b951ef649438e3b
1414
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1515
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1616
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/src/librustc_typeck/check/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ pub mod dropck;
131131
pub mod _match;
132132
pub mod vtable;
133133
pub mod writeback;
134-
pub mod regionmanip;
134+
pub mod implicator;
135135
pub mod regionck;
136136
pub mod coercion;
137137
pub mod demand;

branches/auto/src/librustc_typeck/check/regionck.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
use astconv::AstConv;
8686
use check::dropck;
8787
use check::FnCtxt;
88-
use check::regionmanip;
88+
use check::implicator;
8989
use check::vtable;
9090
use middle::def;
9191
use middle::mem_categorization as mc;
@@ -336,24 +336,24 @@ impl<'a, 'tcx> Rcx<'a, 'tcx> {
336336
let body_scope = CodeExtent::from_node_id(body_id);
337337
let body_scope = ty::ReScope(body_scope);
338338
let constraints =
339-
regionmanip::region_wf_constraints(
339+
implicator::region_wf_constraints(
340340
tcx,
341341
ty,
342342
body_scope);
343343
for constraint in &constraints {
344344
debug!("constraint: {}", constraint.repr(tcx));
345345
match *constraint {
346-
regionmanip::RegionSubRegionConstraint(_,
346+
implicator::RegionSubRegionConstraint(_,
347347
ty::ReFree(free_a),
348348
ty::ReFree(free_b)) => {
349349
tcx.region_maps.relate_free_regions(free_a, free_b);
350350
}
351-
regionmanip::RegionSubRegionConstraint(_,
351+
implicator::RegionSubRegionConstraint(_,
352352
ty::ReFree(free_a),
353353
ty::ReInfer(ty::ReVar(vid_b))) => {
354354
self.fcx.inh.infcx.add_given(free_a, vid_b);
355355
}
356-
regionmanip::RegionSubRegionConstraint(..) => {
356+
implicator::RegionSubRegionConstraint(..) => {
357357
// In principle, we could record (and take
358358
// advantage of) every relationship here, but
359359
// we are also free not to -- it simply means
@@ -364,7 +364,7 @@ impl<'a, 'tcx> Rcx<'a, 'tcx> {
364364
// relationship that arises here, but
365365
// presently we do not.)
366366
}
367-
regionmanip::RegionSubGenericConstraint(_, r_a, ref generic_b) => {
367+
implicator::RegionSubGenericConstraint(_, r_a, ref generic_b) => {
368368
debug!("RegionSubGenericConstraint: {} <= {}",
369369
r_a.repr(tcx), generic_b.repr(tcx));
370370

@@ -1482,24 +1482,24 @@ pub fn type_must_outlive<'a, 'tcx>(rcx: &mut Rcx<'a, 'tcx>,
14821482
region.repr(rcx.tcx()));
14831483

14841484
let constraints =
1485-
regionmanip::region_wf_constraints(
1485+
implicator::region_wf_constraints(
14861486
rcx.tcx(),
14871487
ty,
14881488
region);
14891489
for constraint in &constraints {
14901490
debug!("constraint: {}", constraint.repr(rcx.tcx()));
14911491
match *constraint {
1492-
regionmanip::RegionSubRegionConstraint(None, r_a, r_b) => {
1492+
implicator::RegionSubRegionConstraint(None, r_a, r_b) => {
14931493
rcx.fcx.mk_subr(origin.clone(), r_a, r_b);
14941494
}
1495-
regionmanip::RegionSubRegionConstraint(Some(ty), r_a, r_b) => {
1495+
implicator::RegionSubRegionConstraint(Some(ty), r_a, r_b) => {
14961496
let o1 = infer::ReferenceOutlivesReferent(ty, origin.span());
14971497
rcx.fcx.mk_subr(o1, r_a, r_b);
14981498
}
1499-
regionmanip::RegionSubGenericConstraint(None, r_a, ref generic_b) => {
1499+
implicator::RegionSubGenericConstraint(None, r_a, ref generic_b) => {
15001500
generic_must_outlive(rcx, origin.clone(), r_a, generic_b);
15011501
}
1502-
regionmanip::RegionSubGenericConstraint(Some(ty), r_a, ref generic_b) => {
1502+
implicator::RegionSubGenericConstraint(Some(ty), r_a, ref generic_b) => {
15031503
let o1 = infer::ReferenceOutlivesReferent(ty, origin.span());
15041504
generic_must_outlive(rcx, o1, r_a, generic_b);
15051505
}

0 commit comments

Comments
 (0)