Skip to content

Commit cbc2406

Browse files
author
Jorge Aparicio
committed
---
yaml --- r: 169887 b: refs/heads/auto c: 8d0d752 h: refs/heads/master i: 169885: 264f091 169883: fd77fb5 169879: 76235da 169871: d878cbd 169855: aa2c142 v: v3
1 parent fc45d14 commit cbc2406

File tree

4 files changed

+4
-24
lines changed

4 files changed

+4
-24
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: 643826150b502eddcc9b736e4320cb76ccedff8a
13+
refs/heads/auto: 8d0d7521d65eff290183e9d19858c6ca8779fe01
1414
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1515
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1616
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,18 @@
1313
use super::{check_fn, Expectation, FnCtxt};
1414

1515
use astconv;
16-
use middle::infer;
1716
use middle::region::CodeExtent;
1817
use middle::subst;
1918
use middle::ty::{self, ToPolyTraitRef, Ty};
2019
use rscope::RegionScope;
2120
use syntax::abi;
2221
use syntax::ast;
23-
use syntax::ast::CaptureClause::*;
2422
use syntax::ast_util;
2523
use util::ppaux::Repr;
2624

2725
pub fn check_expr_closure<'a,'tcx>(fcx: &FnCtxt<'a,'tcx>,
2826
expr: &ast::Expr,
29-
capture: ast::CaptureClause,
27+
_capture: ast::CaptureClause,
3028
opt_kind: Option<ast::UnboxedClosureKind>,
3129
decl: &ast::FnDecl,
3230
body: &ast::Block,

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -856,10 +856,8 @@ fn check_expr_fn_block(rcx: &mut Rcx,
856856

857857
fn constrain_callee(rcx: &mut Rcx,
858858
callee_id: ast::NodeId,
859-
call_expr: &ast::Expr,
860-
callee_expr: &ast::Expr) {
861-
let call_region = ty::ReScope(CodeExtent::from_node_id(call_expr.id));
862-
859+
_call_expr: &ast::Expr,
860+
_callee_expr: &ast::Expr) {
863861
let callee_ty = rcx.resolve_node_type(callee_id);
864862
match callee_ty.sty {
865863
ty::ty_bare_fn(..) => { }

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

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -319,22 +319,6 @@ impl<'a, 'tcx> Wf<'a, 'tcx> {
319319
}
320320
}
321321

322-
fn accumulate_from_closure_ty(&mut self,
323-
ty: Ty<'tcx>,
324-
c: &ty::ClosureTy<'tcx>)
325-
{
326-
match c.store {
327-
ty::RegionTraitStore(r_b, _) => {
328-
self.push_region_constraint_from_top(r_b);
329-
}
330-
ty::UniqTraitStore => { }
331-
}
332-
333-
let required_region_bounds =
334-
ty::object_region_bounds(self.tcx, None, c.bounds.builtin_bounds);
335-
self.accumulate_from_object_ty(ty, c.bounds.region_bound, required_region_bounds);
336-
}
337-
338322
fn accumulate_from_object_ty(&mut self,
339323
ty: Ty<'tcx>,
340324
region_bound: ty::Region,

0 commit comments

Comments
 (0)